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 #17 received at 32672 <at> debbugs.gnu.org (full text, mbox):
> It's not straightforward to find a hook that covers all cases, it seems
> at least it should be called when an image-mode buffer comes to the top
> of buffer-list, and the closest hook for that is buffer-list-update-hook.
I still don't get why you need to know whether the image-mode buffer
comes to top in order to decide on resizing the image.
> I see that when it's buffer-local, then it guarantees that the affected
> image-mode buffer is always current-buffer at the time of hook invocation.
There should not be any such guarantee.
> It's fired every time the image-mode buffer comes to the top, even when
> calling quit-window on another buffer that gives way to the image-mode buffer.
>
> The only case when buffer-list-update-hook doesn't run is when the
> image-mode buffer comes to the top by `C-x <C-left>' (previous-buffer),
> whereas `C-x <right>' (next-buffer) works fine.
This must be a bug but I don't understand how it could happen.
'switch-to-prev-buffer' calls 'set-window-buffer-start-and-point'
which calls 'set-window-buffer' which calls 'record-window-buffer'
which should call 'buffer-list-update-hook'. Can you trace while it
fails for you?
Thanks, 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.