[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: "C-x 5 5" vs "C-x 4 1" inconsistency
From: |
Juri Linkov |
Subject: |
Re: "C-x 5 5" vs "C-x 4 1" inconsistency |
Date: |
Sun, 10 Oct 2021 20:15:14 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) |
>> >> I think this inconsistency is unfortunate and unjustified. Can we
>> >> please move same-window-prefix to "C-x 4 5" for consistency with the
>> >> equivalent frame command?
>> >
>> > Sorry, I meant "C-x 4 4" and other-window-prefix.
>>
>> Please explain where do you think is inconsistency.
>> 'C-x 4 4' is already bound to 'other-window-prefix'.
>
> But other-frame-prefix is "C-x 5 5". This is inconsistent with other
> uses of these prefixes, specifically "C-x 5 2", "C-x 5 b", C-x 5 f",
> which have their "C-x 4" counterparts.
The prefix 'C-x 5' is for frames, so 'C-x 5 5' creates a new frame.
The prefix 'C-x 4' is for windows, so 'C-x 4 4' creates a new window.
Also like 'C-x 1' keeps the selected window, 'C-x 4 1' shows the next
buffer in the same window while keeping it selected.
Recently Drew mentioned that there is the command 'tear-off-window'.
It would perfectly fit into the keybinding 'C-x 4 5' with mnemonics
that '4' (window) is detached to '5' (frame):
diff --git a/lisp/window.el b/lisp/window.el
index 971264b634..2fd9c970b0 100644
--- a/lisp/window.el
+++ b/lisp/window.el
@@ -10381,6 +10381,7 @@ ctl-x-map
(define-key ctl-x-4-map "0" 'kill-buffer-and-window)
(define-key ctl-x-4-map "1" 'same-window-prefix)
(define-key ctl-x-4-map "4" 'other-window-prefix)
+(define-key ctl-x-4-map "5" 'tear-off-window)
(defvar other-window-repeat-map
(let ((map (make-sparse-keymap)))
--
- "C-x 5 5" vs "C-x 4 1" inconsistency, Eli Zaretskii, 2021/10/09
- Re: "C-x 5 5" vs "C-x 4 1" inconsistency, Eli Zaretskii, 2021/10/09
- Re: "C-x 5 5" vs "C-x 4 1" inconsistency, Juri Linkov, 2021/10/10
- Re: "C-x 5 5" vs "C-x 4 1" inconsistency, Eli Zaretskii, 2021/10/10
- Re: "C-x 5 5" vs "C-x 4 1" inconsistency, Daniel Martín, 2021/10/10
- Re: "C-x 5 5" vs "C-x 4 1" inconsistency,
Juri Linkov <=
- Re: "C-x 5 5" vs "C-x 4 1" inconsistency, Eli Zaretskii, 2021/10/10
- Re: "C-x 5 5" vs "C-x 4 1" inconsistency, Juri Linkov, 2021/10/10
- Re: "C-x 5 5" vs "C-x 4 1" inconsistency, Eli Zaretskii, 2021/10/10
- Re: "C-x 5 5" vs "C-x 4 1" inconsistency, Juri Linkov, 2021/10/11
- Re: "C-x 5 5" vs "C-x 4 1" inconsistency, Stefan Kangas, 2021/10/10
- Re: "C-x 5 5" vs "C-x 4 1" inconsistency, Eli Zaretskii, 2021/10/10
- Re: "C-x 5 5" vs "C-x 4 1" inconsistency, Kévin Le Gouguec, 2021/10/11
- Re: "C-x 5 5" vs "C-x 4 1" inconsistency, Eli Zaretskii, 2021/10/11
- Re: "C-x 5 5" vs "C-x 4 1" inconsistency, Kévin Le Gouguec, 2021/10/11