unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Re: Key binding M-g should really be goto-line
@ 2005-03-09  7:05 Juri Linkov
  2005-03-09  7:53 ` Miles Bader
                   ` (4 more replies)
  0 siblings, 5 replies; 40+ messages in thread
From: Juri Linkov @ 2005-03-09  7:05 UTC (permalink / raw)
  Cc: Jari Aalto+mail.emacs

I see `goto-line' finally bound to M-g in CVS.  Good news!
After such a big change, it is time now for a few improvements.

1. Before this change, font-lock-fontify-block was bound to `M-g M-g'.
Now it is bound to `M-o M-g'.  I suspect that the reason to bind it
to `M-g M-g' was to make it easier to run this frequent command
by typing the same key twice.  If this is true then now perhaps it
should be rebound to `M-o M-o'.

2. goto-line is not too frequent command to deserve the sole
M-g key.  There are many other goto-related commands that could
share the same mnemonics and have the common M-g prefix key.
Since goto-line is still the most frequent among them, it could
have also the most easily typed key binding `M-g M-g'.

Other commands that deserve a key binding with a `M-g' prefix are:

2.1. next-error (alias goto-next-locus), previous-error

The current key binding C-x ` is too hard to type on
many keyboards, and it is the constant cause of complaints.
The prefix key M-g will allow to add natural key bindings
for these commands and to reduce complaints in future.

2.2. dired-goto-file

This command is used to move point to the specified file name in
dired buffers.  It would be useful to run this command not only
in dired buffers, but in any buffer, with a new key binding.

2.3. goto-char is much less used command than goto-line,
but sometimes it's needed and could have a key binding too.

2.4. The M-g prefix key will also reserve a space for adding
other goto-related commands later.  Similarly to facemenu-keymap
which currently displays the message after typing M-o:

Set face: default, bold, italic, l = bold-italic, underline, Other...

M-g could display a message:

Go to: line, M-g = line, char, file, next error, prev error, Other...

and have a keymap with the following key bindings:

M-g M-g   - goto-line
M-g l     - goto-line
M-g c     - goto-char
M-g f     - dired-goto-file
M-g n     - next-error (goto-next-locus)
M-g M-n   - next-error (goto-next-locus)
M-g p     - previous-error
M-g M-p   - previous-error

-- 
Juri Linkov
http://www.jurta.org/emacs/

^ permalink raw reply	[flat|nested] 40+ messages in thread

end of thread, other threads:[~2005-03-21  1:18 UTC | newest]

Thread overview: 40+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-09  7:05 Key binding M-g should really be goto-line Juri Linkov
2005-03-09  7:53 ` Miles Bader
2005-03-09  8:32 ` Kim F. Storm
2005-03-10  6:28   ` Juri Linkov
2005-03-09  9:58 ` David Kastrup
2005-03-09 10:47   ` Miles Bader
2005-03-09 13:17     ` David Kastrup
2005-03-09 11:27   ` Kim F. Storm
2005-03-10  9:18     ` Piet van Oostrum
2005-03-10 10:16       ` Miles Bader
2005-03-10 10:47       ` Kim F. Storm
2005-03-10 12:21         ` M-g binding in Gnus (was: Key binding M-g should really be goto-line) Reiner Steib
2005-03-10 12:59           ` M-g binding in Gnus Kim F. Storm
2005-03-10 13:34             ` Reiner Steib
2005-03-10 15:18               ` Kim F. Storm
2005-03-10  2:03   ` Key binding M-g should really be goto-line Richard Stallman
2005-03-10  7:28   ` Key binding M-g should really be goto-line (To M-g M-g or not to M-g) Jari Aalto
2005-03-10 10:49     ` David Kastrup
2005-03-11  7:07     ` Jari Aalto
2005-03-09 21:51 ` Key binding M-g should really be goto-line Romain Francoise
2005-03-09 22:34   ` David Kastrup
2005-03-10  0:33     ` Miles Bader
2005-03-10  0:54       ` David Kastrup
2005-03-10  1:28       ` Johan Bockgård
2005-03-10  6:29         ` Juri Linkov
2005-03-10  7:24           ` Romain Francoise
2005-03-10 10:48             ` David Kastrup
2005-03-10 11:41               ` Romain Francoise
2005-03-10 13:23                 ` Andreas Schwab
2005-03-10 15:19                   ` Kim F. Storm
2005-03-18 10:27 ` Romain Francoise
2005-03-18 12:11   ` M-g suffixes. Was: " David Kastrup
2005-03-18 12:59     ` Romain Francoise
2005-03-18 13:17       ` David Kastrup
2005-03-18 13:58     ` Stefan Monnier
2005-03-18 18:59       ` Gaetan Leurent
2005-03-19  3:09   ` Richard Stallman
2005-03-19  9:20     ` David Kastrup
2005-03-20 14:41     ` Romain Francoise
2005-03-21  1:18       ` Richard Stallman

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).