GNU bug report logs -
#32850
27.0.50; window-swap-states doesn't swap window prev/next-buffers
Previous Next
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
View this message in rfc822 format
>>> Right, we need to support prefix args of C-x <left> and C-x <right>.
>>
>> Could you do that please?
>
> Like this?
I doubt that
! (while (<= 0 (setq arg (1- arg)))
! (switch-to-next-buffer))))))
and
! (while (<= 0 (setq arg (1- arg)))
! (switch-to-prev-buffer))))))
will DTRT. They pretend that all these buffers were actually shown in
the window and thus "presented" to the user. As a consequence,
switching from a buffer B to the fourth previous buffer and
subsequently switching to the next buffer would not get us back to B
but to the third previous buffer of B at the time we switched to the
previous buffer. I suppose you won't like that.
What we should probably do instead here is to get the fourth buffer of
what 'window-prev-buffers' returns and try to switch to that buffer
either via 'switch-to-buffer' or 'pop-to-buffer-same-window'.
martin
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.