GithubHelp home page GithubHelp logo

Comments (3)

karthink avatar karthink commented on August 10, 2024 1

Just updated, it appears to be fixed. Thank you!

from activities.el.

alphapapa avatar alphapapa commented on August 10, 2024

Hi Karthik,

Believe me, I have encountered this myself, usually at the most inconvenient time, so I forgot to file an issue about it.

I thought that the new activities-anti-save-predicates option would solve this:

activities.el/activities.el

Lines 277 to 285 in 6ef5924

(defcustom activities-anti-save-predicates
'(active-minibuffer-window activities--backtrace-visible-p)
"Predicates which prevent an activity's state from being saved.
Each predicate is called without arguments, with the activity to
be saved having been activated. If any predicate returns
non-nil, the activity's state is not saved."
:type '(set (function-item active-minibuffer-window)
(function-item activities--backtrace-visible-p)
(function :tag "Other predicate")))

It calls this function:

activities.el/activities.el

Lines 734 to 740 in 6ef5924

(defun activities--backtrace-visible-p ()
"Return non-nil if a visible window is in `backtrace-mode'."
(catch :found
(walk-windows (lambda (window)
(with-selected-window window
(when (derived-mode-p 'backtrace-mode)
(throw :found t)))))))

Which should prevent it from trying to save an activity if a backtrace is visible.

Since adding that, I haven't seen the problem again. Are you sure you're using the latest version?

from activities.el.

alphapapa avatar alphapapa commented on August 10, 2024

Well, it just happened to me again, so now I understand what you meant. :) I think the fix I just pushed should solve it. Please let me know if it happens again.

from activities.el.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.