emacs-devel
[Top][All Lists]
Advanced

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

Re: Possible support for buffer local idle timers?


From: Eli Zaretskii
Subject: Re: Possible support for buffer local idle timers?
Date: Tue, 21 Sep 2021 13:43:59 +0300

> From: Campbell Barton <ideasman42@gmail.com>
> Date: Tue, 21 Sep 2021 20:19:44 +1000
> Cc: emacs-devel@gnu.org
> 
> On Tue, Sep 21, 2021 at 4:07 PM Eli Zaretskii <eliz@gnu.org> wrote:
> >
> > > Date: Tue, 21 Sep 2021 10:36:05 +1000
> > > From: Campbell Barton <ideasman42@gmail.com>
> > >
> > > >    . does the timer start measuring idle time only when the buffer is
> > > >      the current buffer, or regardless of that?
> > >
> > > would just go with default behavior of global idle timers since a user
> > > switching buffers will typically reset idle timers.
> >
> > What do you mean by "reset timers" here?
> 
> I assume that the the act of switching the buffer will cause Emacs not
> to be idle, so after switching buffers idle timers will begin to run
> again as their deadlines are met.

No, that is not necessarily true.  "Idle" means there's no input for
Emacs to process, but it doesn't mean Emacs is not doing anything.  It
could run some timer-related code which switches buffers, for example.



reply via email to

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