GNU bug report logs - #32850
27.0.50; window-swap-states doesn't swap window prev/next-buffers

Previous Next

Package: emacs;

Reported by: Juri Linkov <juri <at> linkov.net>

Date: Thu, 27 Sep 2018 00:06:02 UTC

Severity: minor

Found in version 27.0.50

Done: Juri Linkov <juri <at> linkov.net>

Bug is archived. No further changes may be made.

Full log


Message #235 received at 32850 <at> debbugs.gnu.org (full text, mbox):

From: Juri Linkov <juri <at> linkov.net>
To: martin rudalics <rudalics <at> gmx.at>
Cc: "Charles A. Roelli" <charles <at> aurox.ch>, 32850 <at> debbugs.gnu.org
Subject: Re: bug#32850: 27.0.50;
 window-swap-states doesn't swap window prev/next-buffers
Date: Thu, 22 Nov 2018 01:44:34 +0200
>>> Also note that the overhead induced by executing these functions then
>>> becomes proportional to the value of the prefix argument (for each
>>> single switch you call 'set-window-prev-buffers',
>>> 'set-window-next-buffers' 'record-window-buffer',
>>> 'unrecord-window-buffer' and run 'buffer-list-update-hook',
>>> 'window-scroll-functions' and 'window-configuration-change-hook').
>>
>> Aren't hooks intended to run only once when the command is finished?
>
> 'post-command-hook' only.  'window-size-change-functions' is currently
> run once for each redisplay.  The three I cited above are run for
> every set_window_buffer when the buffer changes.  Note that you are
> your own client here since you want to pretend that all these buffers
> were indeed displayed.

We could let-bind these hooks to nil in the loop, and let to call them
only for the last 'previous-buffer' call.




This bug report was last modified 6 years and 183 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.