[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#69993: Wrap window buffers while cycling
From: |
Juri Linkov |
Subject: |
bug#69993: Wrap window buffers while cycling |
Date: |
Fri, 05 Apr 2024 09:45:46 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) |
>>> (defcustom switch-to-prev-buffer-wrap nil
>>
>> The only problem is that this doesn't mention wrapping.
>
> Isn't the paragraph starting with "If this is t, ..." enough?
No, because this feature is about wrapping buffers
visible on the tab-line.
>>> But I still think that the '-wrap' postfix creates a misnomer. The
>>> primary intention of this option is to restrict the set of candidate
>>> buffers ...
>>
>> The real misnomer is 'tab-line-switch-cycling'.
>> It should be renamed 'tab-line-switch-wrap'.
>
> For me "cycling" and "wrapping" stand for the same effect. The major
> difference is that when the above option is made non-nil, the set of
> candidate buffers changes. OTOH, when it's nil, Emacs wraps/cycles
> while when it's 'stop' it doesn't. That's confusing.
Ok, since this feature is intended for the users of the tab-line, who
intuitively understand what it's doing, so it's not confusing for them,
here is what I'm going to do: I'll rebind 'C-x C-left' and 'C-x C-right'
in 'tab-line-mode' and will use tab-line functions to implement wrapping
of visible tabs/buffers. Basically this means just adding a new map:
(defvar-keymap tab-line-mode-map
"C-x <left>" #'tab-line-switch-to-prev-tab
"C-x C-<left>" #'tab-line-switch-to-prev-tab
"C-x <right>" #'tab-line-switch-to-next-tab
"C-x C-<right>" #'tab-line-switch-to-next-tab)
So no problem, tab-line.el is the right place since later I could
also implement drag'n'drop of tabs to allow manually changing
the order of buffers in the window buffers list.
- bug#69993: Wrap window buffers while cycling, Juri Linkov, 2024/04/02
- bug#69993: Wrap window buffers while cycling, martin rudalics, 2024/04/02
- bug#69993: Wrap window buffers while cycling, Juri Linkov, 2024/04/02
- bug#69993: Wrap window buffers while cycling, martin rudalics, 2024/04/03
- bug#69993: Wrap window buffers while cycling, Juri Linkov, 2024/04/03
- bug#69993: Wrap window buffers while cycling, martin rudalics, 2024/04/04
- bug#69993: Wrap window buffers while cycling,
Juri Linkov <=
- bug#69993: Wrap window buffers while cycling, martin rudalics, 2024/04/05
- bug#69993: Wrap window buffers while cycling, Juri Linkov, 2024/04/05
- bug#69993: Wrap window buffers while cycling, Juri Linkov, 2024/04/06
- bug#69993: Wrap window buffers while cycling, martin rudalics, 2024/04/07
- bug#69993: Wrap window buffers while cycling, Juri Linkov, 2024/04/09
- bug#69993: Wrap window buffers while cycling, martin rudalics, 2024/04/09
- bug#69993: Wrap window buffers while cycling, Juri Linkov, 2024/04/09
- bug#69993: Wrap window buffers while cycling, martin rudalics, 2024/04/10
- bug#69993: Wrap window buffers while cycling, Juri Linkov, 2024/04/10
- bug#69993: Wrap window buffers while cycling, martin rudalics, 2024/04/11