emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Should timers run in the initial frame?


From: Daniel Colascione
Subject: Re: Should timers run in the initial frame?
Date: Sat, 16 Jun 2018 14:07:04 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0

On 06/11/2018 08:42 AM, Stefan Monnier wrote:
So, I wonder: would it be good if timers ran in the context of the
initially opened Emacs frame, rather than in whichever frame was most
recently active?

Elisp code has a lot of context, and which context needs to be saved
depends on ...hmm... context.

I don't think it can break anything to do what you suggest, but it's
a slippery slope: we could also try and preserve the current buffer,
selected window, ...

The specific problem in your case is that the change your package
imposes on buffer-list is pretty drastic (the original semantics of
buffer-list is to return *all* buffers)

I suppose we could expose running_asynch_code to lisp so that modes like the OP's would know to turn off some of their customization.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]