unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: David Kastrup <dak@gnu.org>
Cc: rms@gnu.org, emacs-devel@gnu.org
Subject: Re: Keybinding nit
Date: Thu, 19 Oct 2006 23:37:01 +0200	[thread overview]
Message-ID: <85mz7souma.fsf@lola.goethe.zz> (raw)
In-Reply-To: <17719.60358.608003.415676@kahikatea.snap.net.nz> (Nick Roberts's message of "Fri\, 20 Oct 2006 10\:19\:02 +1300")

Nick Roberts <nickrob@snap.net.nz> 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	other threads:[~2006-10-19 21:37 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-18 15:37 Keybinding nit David Kastrup
2006-10-18 18:29 ` Peter Lee
2006-10-18 23:22   ` Miles Bader
2006-10-19 16:53     ` Kevin Rodgers
2006-10-23  1:43       ` Miles Bader
2006-10-24 22:11         ` Kevin Rodgers
2006-10-24 23:29           ` Miles Bader
2006-10-25 21:38             ` Kevin Rodgers
2006-10-19 12:56 ` Richard Stallman
2006-10-19 13:07   ` David Kastrup
2006-10-19 20:06     ` Nick Roberts
2006-10-19 20:46       ` David Kastrup
2006-10-19 21:19         ` Nick Roberts
2006-10-19 21:37           ` David Kastrup [this message]
2006-10-20 16:09         ` Stuart D. Herring
2006-10-20  5:40     ` Jan D.
2006-10-20  7:43       ` David Kastrup
2006-10-20 19:13         ` Drew Adams

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=85mz7souma.fsf@lola.goethe.zz \
    --to=dak@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=rms@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).