emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Keybinding nit


From: David Kastrup
Subject: Re: Keybinding nit
Date: Thu, 19 Oct 2006 23:37:01 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Nick Roberts <address@hidden> writes:

>  > > If you mean move C-x 4 0 to C-x 5 k, I agree.  (I'm not sure
>  > > what you want C-x 4 k to do).
>  > 
>  > Serves me right.  If it weren't for disagreement, I'd have no
>  > agreement at all.  I'd have proposed to move C-x 4 0
>  > (`kill-buffer-and-window') to C-x 4 k and have C-x 5 k be mapped to
>  > `kill-buffer-and-frame' (which does not yet exist).
>
> Sorry, I misunderstood what C-x 4 0 does (I don't use it).  Yes, C-x
> 5 k for kill-buffer-and-frame seems a good idea.

Well, I checked the age of the binding C-x 4 0, and it is about 10
years old, so it has quite a bit of history and should probably not be
removed in one step, but rather get a companion binding.  I think I
might have discovered `kill-buffer-and-window' quite sooner would it
have had the proposed binding C-x 4 k which I find easier to remember
(that's where I would have suspected the binding to be in the first
place).

Whether or not we do this for Emacs 22 (it would imply messing with
the refcards, but it should be sufficient to just replace the binding
itself and none of the text), I think this should be done eventually.
Keybindings are hard enough to remember, and when they get more
logical, people are more likely to use them.  I find the relation
between C-x k and C-x 4 k much more logical than that of C-x 0 and C-x
4 0 (C-x 4 k implies "do something similar to C-x k, but involving a
window" which is better than C-x 4 0 implying something similar to C-x
0, but involving a buffer).

In fact we have:

`iswitchb-mode' Minor Mode Bindings Starting With C-x 4:
key             binding
---             -------

C-x 4 C-o       iswitchb-display-buffer
C-x 4 b         iswitchb-buffer-other-window

Global Bindings Starting With C-x 4:

---             -------

C-x 4 C-f       find-file-other-window
C-x 4 C-j       dired-jump-other-window
C-x 4 .         find-tag-other-window
C-x 4 0         kill-buffer-and-window
C-x 4 a         add-change-log-entry-other-window
C-x 4 c         clone-indirect-buffer-other-window
C-x 4 d         dired-other-window
C-x 4 f         find-file-other-window
C-x 4 m         compose-mail-other-window
C-x 4 r         find-file-read-only-other-window

[back]

And most commands starting with C-x 4 are variations of C-x or C-x C-
on a window.


-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum




reply via email to

[Prev in Thread] Current Thread [Next in Thread]