bug#81561: 31.0.91; speedbar-window-mode creates stale idle timers

Daniel Mendler via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <[email protected]>
Newsgroups gmane.emacs.bugs
Message-ID <[email protected]>
Vincenzo Pupillo <[email protected]> writes:

> Ciao Daniel,
>
> In data mercoledì 12 agosto 2026 22:11:23 Ora legale dell’Europa centrale, 
> Daniel Mendler ha scritto:
>> Vincenzo Pupillo <[email protected]> writes:
>> > Ciao, I wasn’t able to reproduce the problem reported by Daniel. The only
>> > way was to kill the 'speedbar-buffer' process. So I added a
>> > 'kill-buffer-hook' to handle this event. I also eliminated a few other
>> > causes of  stale idle timers.
>> > 
>> > @Daniel, could you please try this patch?
>> 
>> Would it make sense to instead move the (with-current-buffer
>> speedbar-buffer ...) into speedbar-set-timer instead of replicating it
>> so often?
> That's right, I added the calls to 'with-current-buffer' one at a time, but in 
> the end, it's needed everywhere...
>
> Attached is the new version of the patch.

Thanks. So far it seems to work well.

Daniel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.