GNU bug report logs -
#32672
27.0.50; image resize on window resizing
Previous Next
Reported by: Juri Linkov <juri <at> linkov.net>
Date: Sun, 9 Sep 2018 16:11:02 UTC
Severity: wishlist
Tags: fixed
Fixed in version 27.0.50
Done: Juri Linkov <juri <at> linkov.net>
Bug is archived. No further changes may be made.
Full log
Message #59 received at 32672 <at> debbugs.gnu.org (full text, mbox):
>> Shouldn't you debounce the call to 'image-size-buffer-change' as well?
>> After all, the buffer list seems to change more often than the size of
>> windows.
>
> When I tried debounce for buffer-list-update-hook, it used the last call
> in sequence:
>
> 1 ... current: *scratch* ... window-buffer: *scratch*
> 2 ... current: *scratch* ... window-buffer: *info*
>
> that was unsuitable for the logic of 'image-size-buffer-change'.
I'm afraid that 'buffer-list-update-hook' is too coarse for your
purpose - it gets called too often for unrelated events like creating
or killing some completely unrelated buffer. If you think that
running a hook after selecting a window with NORECORD nil would fit
the bill better, let's try it. Many people have asked for such a hook
and we always rejected it (Bug#7381, Bug#16436). Maybe it is time to
reconsider.
> So maybe instead of 'debounce', we need to implement and use 'throttle'
> or at least implement the 'immediate' option that uses the first call:
>
> https://css-tricks.com/debouncing-throttling-explained-examples/
We'd probably need to come up with examples from our code base in
order to decide what to implement and how.
martin
This bug report was last modified 5 years and 170 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.