[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Support for explicitly resetting the idle timer?
From: |
Eli Zaretskii |
Subject: |
Re: Support for explicitly resetting the idle timer? |
Date: |
Sat, 27 Nov 2021 11:01:23 +0200 |
> From: Campbell Barton <ideasman42@gmail.com>
> Date: Sat, 27 Nov 2021 19:42:15 +1100
> Cc: Emacs developers <emacs-devel@gnu.org>
>
> > The cleanest solution in this case would be to call timer_stop_idle if
> > Emacs is executing a command, no matter how it was invoked. In fact,
> > I'm surprised that we don't stop idle timers when track-mouse invokes
> > commands: it sounds like a bug we should fix.
>
> Not sure if this would solve my case (is there some formal definition
> of what is meant by a command?).
> I'm changing the scroll position using `set-window-vscroll` - so I'm
> not sure if that counts as a command.
Which code invokes set-window-vscroll, and what triggers that code?
> As a workaround it may be possible to define a dummy command that does
> nothing but reset the idle timer.
Btw, what do you mean by "reset" here? timer_stop_idle has a
counterpart, timer_resume_idle. Would the resumption work under your
proposal, and if so, how?
- Support for explicitly resetting the idle timer?, Campbell Barton, 2021/11/27
- Re: Support for explicitly resetting the idle timer?, Eli Zaretskii, 2021/11/27
- Re: Support for explicitly resetting the idle timer?, Campbell Barton, 2021/11/27
- Re: Support for explicitly resetting the idle timer?,
Eli Zaretskii <=
- Re: Support for explicitly resetting the idle timer?, Campbell Barton, 2021/11/27
- Re: Support for explicitly resetting the idle timer?, Eli Zaretskii, 2021/11/27
- Re: Support for explicitly resetting the idle timer?, Campbell Barton, 2021/11/27
- Re: Support for explicitly resetting the idle timer?, Eli Zaretskii, 2021/11/27
- Re: Support for explicitly resetting the idle timer?, Campbell Barton, 2021/11/27
- Re: Support for explicitly resetting the idle timer?, Eli Zaretskii, 2021/11/27