* 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; 71+ 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] 71+ messages in thread
* Re: Key binding M-g should really be goto-line
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
` (3 subsequent siblings)
4 siblings, 0 replies; 71+ messages in thread
From: Miles Bader @ 2005-03-09 7:53 UTC (permalink / raw)
Cc: Jari Aalto+mail.emacs, emacs-devel
On Wed, 09 Mar 2005 09:05:33 +0200, Juri Linkov <juri@jurta.org> wrote:
> 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.
Hmmm, not a bad idea. I especially like the fact that next-error &c
could have a less annoying binding that C-x ` (also completely
unintuitive).
> Since goto-line is still the most frequent among them, it could
> have also the most easily typed key binding `M-g M-g'.
It would be good to also have a plain "g" binding for goto-line, for
those people that use ESC instead of a real meta key -- it's much
easier to hit `ESC g g' than `ESC g ESC g' (you've already done this
for the other "meta" commands in the keymap).
[I suppose it's people that use ESC that might object most strenuously
to the prefix-key idea.]
-Miles
p.s. I have M-g bound to `fill-paragraph' myself... :-)
--
Do not taunt Happy Fun Ball.
^ permalink raw reply [flat|nested] 71+ messages in thread
* Re: Key binding M-g should really be goto-line
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
` (2 subsequent siblings)
4 siblings, 1 reply; 71+ messages in thread
From: Kim F. Storm @ 2005-03-09 8:32 UTC (permalink / raw)
Cc: emacs-devel
Juri Linkov <juri@jurta.org> writes:
> 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.
Brilliant ideas!! I second ALL of your suggestions.
One command I use quite often is "find-file-and-line-near-point" which
takes something like FILE:LINE "near" the cursor and jumps to LINE in
FILE.
I use this when I look at backtraces in bug-reports (of course, I
already have code which can do this, but a logical binding would be
nice).
M-g j would be an excellent binding for this.
--
Kim F. Storm <storm@cua.dk> http://www.cua.dk
^ permalink raw reply [flat|nested] 71+ messages in thread
* Re: Key binding M-g should really be goto-line
2005-03-09 8:32 ` Kim F. Storm
@ 2005-03-10 6:28 ` Juri Linkov
0 siblings, 0 replies; 71+ messages in thread
From: Juri Linkov @ 2005-03-10 6:28 UTC (permalink / raw)
Cc: emacs-devel
storm@cua.dk (Kim F. Storm) writes:
> One command I use quite often is "find-file-and-line-near-point"
> which takes something like FILE:LINE "near" the cursor and jumps to
> LINE in FILE.
This is what `goto-line' is supposed to do. Since it was already
completely modified recently with the complex logic of getting
a line number from the buffer and jumping to the most recently
displayed other buffer, why not modify it further to get a file
name from the buffer (before colon and the line number) and to
visit it before moving to the specified line number.
--
Juri Linkov
http://www.jurta.org/emacs/
^ permalink raw reply [flat|nested] 71+ messages in thread
* Re: Key binding M-g should really be goto-line
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-09 9:58 ` David Kastrup
2005-03-09 10:47 ` Miles Bader
` (3 more replies)
2005-03-09 21:51 ` Key binding M-g should really be goto-line Romain Francoise
2005-03-18 10:27 ` Romain Francoise
4 siblings, 4 replies; 71+ messages in thread
From: David Kastrup @ 2005-03-09 9:58 UTC (permalink / raw)
Cc: Jari Aalto+mail.emacs, emacs-devel
Juri Linkov <juri@jurta.org> writes:
> 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.
Can you spell "Can-Of-Worms"? Can you spell "feature freeze"?
> 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'.
So far, I can agree.
> 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.
Forget it. No precedence, no previous desire, not fitting the feature
freeze. Is this a plot to distract people from releasing?
> 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.
C-x ` completely sucks as a keybinding on many international
keyboards. We need a new keybinding alternative at some point of
time. But M-g is clean out, in my opinion. Really.
My proposal for an C-x ` alternative would be C-x ? which appears to
be free at the moment. ? is a frequent character in all languages I
know, and so it should be more accessible than ` on most keyboards.
It also is connotated with "error" somewhat.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
^ permalink raw reply [flat|nested] 71+ messages in thread
* Re: Key binding M-g should really be goto-line
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
` (2 subsequent siblings)
3 siblings, 1 reply; 71+ messages in thread
From: Miles Bader @ 2005-03-09 10:47 UTC (permalink / raw)
Cc: Juri Linkov, emacs-devel, Jari Aalto+mail.emacs
> My proposal for an C-x ` alternative would be C-x ? which appears to
> be free at the moment. ? is a frequent character in all languages I
> know, and so it should be more accessible than ` on most keyboards.
> It also is connotated with "error" somewhat.
That's really no better than C-x ` so what's the point (the "also
connotated with error" thing is so tenuous as to be worthless)?
Either we should change it to something good, or just leave it as is
until the next release.
[My personal binding for next-error is `C-x C-n', which just
completely rocks; but Juri's suggestion is pretty good too.]
-Miles
--
Do not taunt Happy Fun Ball.
^ permalink raw reply [flat|nested] 71+ messages in thread
* Re: Key binding M-g should really be goto-line
2005-03-09 10:47 ` Miles Bader
@ 2005-03-09 13:17 ` David Kastrup
0 siblings, 0 replies; 71+ messages in thread
From: David Kastrup @ 2005-03-09 13:17 UTC (permalink / raw)
Cc: Juri Linkov, Jari Aalto+mail.emacs, emacs-devel, miles
Miles Bader <snogglethorpe@gmail.com> writes:
>> My proposal for an C-x ` alternative would be C-x ? which appears to
>> be free at the moment. ? is a frequent character in all languages I
>> know, and so it should be more accessible than ` on most keyboards.
>> It also is connotated with "error" somewhat.
>
> That's really no better than C-x ` so what's the point (the "also
> connotated with error" thing is so tenuous as to be worthless)?
As a user of an American keyboard, you would not understand. On
almost all keyboards of the world, getting ` is at best tedious, at
worst impossible or at least error-prone, usually yielding an accent
instead of a backquote. For example, on a German keyboard you get `
by typing Shift-= SPC (where = means the American position for =), so
the whole sequence becomes C-x Shift-= SPC.
On a French keyboard, it is Right-Alt-7. And so on.
> Either we should change it to something good, or just leave it as is
> until the next release.
For most languages of the world, ` is one heck of a nuisance.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
^ permalink raw reply [flat|nested] 71+ messages in thread
* Re: Key binding M-g should really be goto-line
2005-03-09 9:58 ` David Kastrup
2005-03-09 10:47 ` Miles Bader
@ 2005-03-09 11:27 ` Kim F. Storm
2005-03-10 9:18 ` Piet van Oostrum
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
3 siblings, 1 reply; 71+ messages in thread
From: Kim F. Storm @ 2005-03-09 11:27 UTC (permalink / raw)
Cc: Juri Linkov, emacs-devel, Jari Aalto+mail.emacs
David Kastrup <dak@gnu.org> writes:
> Juri Linkov <juri@jurta.org> writes:
>
>> 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.
>
> Forget it. No precedence,
Huh? M-g was a prefix key before the change...
> no previous desire, not fitting the feature
> freeze. Is this a plot to distract people from releasing?
IMO, it is a reasonable opportunity to DTRT before locking M-g down as
a single command-key only.
> C-x ` completely sucks as a keybinding on many international
> keyboards. We need a new keybinding alternative at some point of
> time. But M-g is clean out, in my opinion. Really.
Why? I think it is excellent. Good mnemonic.
> My proposal for an C-x ` alternative would be C-x ? which appears to
> be free at the moment. ? is a frequent character in all languages I
> know, and so it should be more accessible than ` on most keyboards.
That is C-x S-? on my keyboard which is still cumbersome for
something you type very frequently.
M-g-n (hold M while pressing g + n) is just so much better, and
allows you to go back as well M-g-p ...
And it is also easy to repeat M-g-n-g-n-g-p (ups, got one too far).
--
Kim F. Storm <storm@cua.dk> http://www.cua.dk
^ permalink raw reply [flat|nested] 71+ messages in thread
* Re: Key binding M-g should really be goto-line
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
0 siblings, 2 replies; 71+ messages in thread
From: Piet van Oostrum @ 2005-03-10 9:18 UTC (permalink / raw)
>>>>> storm@cua.dk (Kim F. Storm) (KFS) wrote:
>KFS> David Kastrup <dak@gnu.org> writes:
>>> Juri Linkov <juri@jurta.org> writes:
>>>
>>>> 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.
>>>
>>> Forget it. No precedence,
>KFS> Huh? M-g was a prefix key before the change...
Was it? In gnus it is bound to gnus-summary-rescan-group. At least in the
version a month or so ago.
--
Piet van Oostrum <piet@cs.uu.nl>
URL: http://www.cs.uu.nl/~piet [PGP]
Private email: piet@vanoostrum.org
^ permalink raw reply [flat|nested] 71+ messages in thread
* Re: Key binding M-g should really be goto-line
2005-03-10 9:18 ` Piet van Oostrum
@ 2005-03-10 10:16 ` Miles Bader
2005-03-10 10:47 ` Kim F. Storm
1 sibling, 0 replies; 71+ messages in thread
From: Miles Bader @ 2005-03-10 10:16 UTC (permalink / raw)
Cc: emacs-devel
On Thu, 10 Mar 2005 10:18:49 +0100, Piet van Oostrum <piet@cs.uu.nl> wrote:
> >KFS> Huh? M-g was a prefix key before the change...
>
> Was it? In gnus it is bound to gnus-summary-rescan-group. At least in the
> version a month or so ago.
Yup. You're allowed to bind over prefix keys... :-)
Of course the usefulness of Gnus' local binding will have to be
re-evaluated with the new global binding in mind (the old global
binding of M-g was not at all useful for Gnus).
-Miles
--
Do not taunt Happy Fun Ball.
^ permalink raw reply [flat|nested] 71+ messages in thread
* Re: Key binding M-g should really be goto-line
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
1 sibling, 1 reply; 71+ messages in thread
From: Kim F. Storm @ 2005-03-10 10:47 UTC (permalink / raw)
Cc: emacs-devel
Piet van Oostrum <piet@cs.uu.nl> writes:
>>>>>> storm@cua.dk (Kim F. Storm) (KFS) wrote:
>
>>KFS> David Kastrup <dak@gnu.org> writes:
>>>> Juri Linkov <juri@jurta.org> writes:
>>>>
>>>>> 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.
>>>>
>>>> Forget it. No precedence,
>
>>KFS> Huh? M-g was a prefix key before the change...
>
> Was it? In gnus it is bound to gnus-summary-rescan-group. At least in the
> version a month or so ago.
I'm talking about the global binding, not some buffer local binding.
IMO, the gnus M-g binding should definitely be removed in the
*Article* buffer, as is makes good sense to use goto-line to another
buffer based on a file:linenumber found in a mail message (e.g. a
backtrace in a bug report).
The M-g binding can remain in gnus summary buffers if people prefer...
--
Kim F. Storm <storm@cua.dk> http://www.cua.dk
^ permalink raw reply [flat|nested] 71+ messages in thread
* M-g binding in Gnus (was: Key binding M-g should really be goto-line)
2005-03-10 10:47 ` Kim F. Storm
@ 2005-03-10 12:21 ` Reiner Steib
2005-03-10 12:59 ` M-g binding in Gnus Kim F. Storm
0 siblings, 1 reply; 71+ messages in thread
From: Reiner Steib @ 2005-03-10 12:21 UTC (permalink / raw)
On Thu, Mar 10 2005, Miles Bader wrote:
> Of course the usefulness of Gnus' local binding will have to be
> re-evaluated with the new global binding in mind (the old global
> binding of M-g was not at all useful for Gnus).
I don't think that goto-line (and friends) are important enough *in
Gnus* to change the current `M-g' bindings there.
On Thu, Mar 10 2005, Kim F. Storm wrote:
> IMO, the gnus M-g binding should definitely be removed in the
> *Article* buffer, as is makes good sense to use goto-line to another
> buffer based on a file:linenumber found in a mail message (e.g. a
> backtrace in a bug report).
Wouldn't the "file:linenumber" feature require an absolute filename
unless the buffer local value `default-directory' happens to be
appropriate? I'd guess that such situations are rare (sender and
recipient often have different file locations).
> The M-g binding can remain in gnus summary buffers if people prefer...
Bye, Reiner.
--
,,,
(o o)
---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/
^ permalink raw reply [flat|nested] 71+ messages in thread
* Re: M-g binding in Gnus
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 ` Kim F. Storm
2005-03-10 13:34 ` Reiner Steib
0 siblings, 1 reply; 71+ messages in thread
From: Kim F. Storm @ 2005-03-10 12:59 UTC (permalink / raw)
Reiner Steib <reinersteib+gmane@imap.cc> writes:
> Wouldn't the "file:linenumber" feature require an absolute filename
> unless the buffer local value `default-directory' happens to be
> appropriate? I'd guess that such situations are rare (sender and
> recipient often have different file locations).
I always start gnus in emacs/src directory -- so I can quickly look at
backtraces...
Otherwise, M-x cd is your friend.
--
Kim F. Storm <storm@cua.dk> http://www.cua.dk
^ permalink raw reply [flat|nested] 71+ messages in thread
* Re: M-g binding in Gnus
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
0 siblings, 1 reply; 71+ messages in thread
From: Reiner Steib @ 2005-03-10 13:34 UTC (permalink / raw)
Cc: emacs-devel
On Thu, Mar 10 2005, Kim F. Storm wrote:
> Reiner Steib <reinersteib+gmane@imap.cc> writes:
>
>> Wouldn't the "file:linenumber" feature require an absolute filename
>> unless the buffer local value `default-directory' happens to be
>> appropriate? I'd guess that such situations are rare (sender and
>> recipient often have different file locations).
>
> I always start gnus in emacs/src directory -- so I can quickly look at
> backtraces...
I see. But do you really think that this situation is so common that
it's relevant for the _default_ binding of M-g in Gnus? I don't think
so.
(Probably it would even be sufficient _for you_ to change M-g to goto
only in the Emacs related groups.)
Bye, Reiner.
--
,,,
(o o)
---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/
^ permalink raw reply [flat|nested] 71+ messages in thread
* Re: M-g binding in Gnus
2005-03-10 13:34 ` Reiner Steib
@ 2005-03-10 15:18 ` Kim F. Storm
0 siblings, 0 replies; 71+ messages in thread
From: Kim F. Storm @ 2005-03-10 15:18 UTC (permalink / raw)
Reiner Steib <reinersteib+gmane@imap.cc> writes:
> On Thu, Mar 10 2005, Kim F. Storm wrote:
>
>> Reiner Steib <reinersteib+gmane@imap.cc> writes:
>>
>>> Wouldn't the "file:linenumber" feature require an absolute filename
>>> unless the buffer local value `default-directory' happens to be
>>> appropriate? I'd guess that such situations are rare (sender and
>>> recipient often have different file locations).
>>
>> I always start gnus in emacs/src directory -- so I can quickly look at
>> backtraces...
>
> I see. But do you really think that this situation is so common that
> it's relevant for the _default_ binding of M-g in Gnus? I don't think
> so.
>
> (Probably it would even be sufficient _for you_ to change M-g to goto
> only in the Emacs related groups.)
I'm not talking about M-g => goto-line, but M-g as a prefix key for
various goto-xxx commands.
IMO, the FILE:LINE format should not be recognized by the ordinary
goto-line command -- it should be a separate command on, e.g. M-g f.
Mnemonic: M-g f => goto file at point
In the future, there may be many useful "goto" commands with the M-g
prefix. Gnus shouldn't assume that none of those bindings will be
useful in a gnus-related window.
For example, if M-g m did something like "goto *Messages* buffer", and
M-g c was "goto *compilation* buffer", gnus shouldn't hide those
bindings.
--
Kim F. Storm <storm@cua.dk> http://www.cua.dk
^ permalink raw reply [flat|nested] 71+ messages in thread
* Re: Key binding M-g should really be goto-line
2005-03-09 9:58 ` David Kastrup
2005-03-09 10:47 ` Miles Bader
2005-03-09 11:27 ` Kim F. Storm
@ 2005-03-10 2:03 ` 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
3 siblings, 0 replies; 71+ messages in thread
From: Richard Stallman @ 2005-03-10 2:03 UTC (permalink / raw)
Cc: juri, emacs-devel, jari.aalto
I think I will move the goto-line binding to M-g M-g,
making it a prefix key, so that in the future we can
put on other commands.
^ permalink raw reply [flat|nested] 71+ messages in thread
* Re: Key binding M-g should really be goto-line (To M-g M-g or not to M-g)
2005-03-09 9:58 ` David Kastrup
` (2 preceding siblings ...)
2005-03-10 2:03 ` Key binding M-g should really be goto-line Richard Stallman
@ 2005-03-10 7:28 ` Jari Aalto
2005-03-10 10:49 ` David Kastrup
2005-03-11 7:07 ` Jari Aalto
3 siblings, 2 replies; 71+ messages in thread
From: Jari Aalto @ 2005-03-10 7:28 UTC (permalink / raw)
Cc: Juri Linkov, emacs-devel
| >David Kastrup <dak@gnu.org> writes:
| > no previous desire, not fitting the feature
| > freeze. Is this a plot to distract people from releasing?
|
| IMO, it is a reasonable opportunity to DTRT before locking M-g down as
| a single command-key only.
Juri made interesting suggestings, and I would see it beneficial if
future be taken into consideration as well.
M-g prefix sounds good for future additions.
M-g M-g for goto-line sounds fast enough, because it's same key.
| > C-x ` completely sucks as a keybinding on many international
| > keyboards. We need a new keybinding alternative at some point of
| > time. But M-g is clean out, in my opinion. Really.
|
| Why? I think it is excellent. Good mnemonic.
As keyboards all over the world differ greatly, any use of the exotic
punctuation character can cause lot of trouble. These include:
`
½
§
^
~
@
And even these are sometimes problematic on TTY connections
(and even worse with modifiers)
\
|
Jari
^ permalink raw reply [flat|nested] 71+ messages in thread
* Re: Key binding M-g should really be goto-line (To M-g M-g or not to M-g)
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
1 sibling, 0 replies; 71+ messages in thread
From: David Kastrup @ 2005-03-10 10:49 UTC (permalink / raw)
Cc: Juri Linkov, emacs-devel, Kim F. Storm
Jari Aalto <jari.aalto@cante.net> writes:
> | >David Kastrup <dak@gnu.org> writes:
> | > no previous desire, not fitting the feature
> | > freeze. Is this a plot to distract people from releasing?
> |
> | IMO, it is a reasonable opportunity to DTRT before locking M-g down as
> | a single command-key only.
>
> Juri made interesting suggestings, and I would see it beneficial if
> future be taken into consideration as well.
>
> M-g prefix sounds good for future additions.
> M-g M-g for goto-line sounds fast enough, because it's same key.
Only if you have a Meta key. But doubling it up with M-g g would make
that a non-issue mostly.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
^ permalink raw reply [flat|nested] 71+ messages in thread
* Re: Key binding M-g should really be goto-line (To M-g M-g or not to M-g)
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
1 sibling, 0 replies; 71+ messages in thread
From: Jari Aalto @ 2005-03-11 7:07 UTC (permalink / raw)
Cc: Juri Linkov, emacs-devel, Kim F. Storm
| Jari Aalto <jari.aalto@cante.net> writes:
|
| > | >David Kastrup <dak@gnu.org> writes:
| > | > no previous desire, not fitting the feature
| > | > freeze. Is this a plot to distract people from releasing?
| > |
| > | IMO, it is a reasonable opportunity to DTRT before locking M-g down as
| > | a single command-key only.
| >
| > Juri made interesting suggestings, and I would see it beneficial if
| > future be taken into consideration as well.
| >
| > M-g prefix sounds good for future additions.
| > M-g M-g for goto-line sounds fast enough, because it's same key.
|
| Only if you have a Meta key. But doubling it up with M-g g would make
| that a non-issue mostly.
Indeed. Tt would be cubersome to use ESC + g ESC + g in TTY and defeat
the fast access to the command.
M-g g would be better
Jari
^ permalink raw reply [flat|nested] 71+ messages in thread
* Re: Key binding M-g should really be goto-line
2005-03-09 7:05 Key binding M-g should really be goto-line Juri Linkov
` (2 preceding siblings ...)
2005-03-09 9:58 ` David Kastrup
@ 2005-03-09 21:51 ` Romain Francoise
2005-03-09 22:34 ` David Kastrup
2005-03-18 10:27 ` Romain Francoise
4 siblings, 1 reply; 71+ messages in thread
From: Romain Francoise @ 2005-03-09 21:51 UTC (permalink / raw)
Juri Linkov <juri@jurta.org> writes:
> 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
This is a very good idea. However, Dired users are probably used to M-g
not being a prefix key since it's been bound to dired-goto-file in
Dired-X for as long as I can remember (more than 11 years, says CVS).
That being said, I'm very much in favor of this change--especially the
bindings you suggest for next-error and previous-error.
--
Romain Francoise <romain@orebokech.com> | With your feet in the air and
it's a miracle -- http://orebokech.com/ | your head on the ground.
^ permalink raw reply [flat|nested] 71+ messages in thread
* Re: Key binding M-g should really be goto-line
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
0 siblings, 1 reply; 71+ messages in thread
From: David Kastrup @ 2005-03-09 22:34 UTC (permalink / raw)
Romain Francoise <romain@orebokech.com> writes:
> Juri Linkov <juri@jurta.org> writes:
>
>> 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
>
> This is a very good idea.
I am afraid that I have a hard time not to agree after thinking it
over.
> However, Dired users are probably used to M-g not being a prefix key
> since it's been bound to dired-goto-file in Dired-X for as long as I
> can remember (more than 11 years, says CVS).
Well, one could put M-g M-g on that in dired mode, but have M-g M-g
mean goto-line in most other modes.
It seems absurd to have dired-goto-file as a global binding.
> That being said, I'm very much in favor of this change--especially
> the bindings you suggest for next-error and previous-error.
Well, yes. It makes just too much sense to throw the idea out the
door.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
^ permalink raw reply [flat|nested] 71+ messages in thread
* Re: Key binding M-g should really be goto-line
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
0 siblings, 2 replies; 71+ messages in thread
From: Miles Bader @ 2005-03-10 0:33 UTC (permalink / raw)
Cc: emacs-devel
On Wed, 09 Mar 2005 23:34:54 +0100, David Kastrup <dak@gnu.org> wrote:
> It seems absurd to have dired-goto-file as a global binding.
Actually I often want to jump to a file's dired entry while visiting
the file. It's not like it's all _that_ hard to do now (just do `C-x
C-f RET' to visit the cur directory, and look for the file), but the
concept is not completely absurd.
-Miles
--
Do not taunt Happy Fun Ball.
^ permalink raw reply [flat|nested] 71+ messages in thread
* Re: Key binding M-g should really be goto-line
2005-03-10 0:33 ` Miles Bader
@ 2005-03-10 0:54 ` David Kastrup
2005-03-10 1:28 ` Johan Bockgård
1 sibling, 0 replies; 71+ messages in thread
From: David Kastrup @ 2005-03-10 0:54 UTC (permalink / raw)
Cc: emacs-devel, miles
Miles Bader <snogglethorpe@gmail.com> writes:
> On Wed, 09 Mar 2005 23:34:54 +0100, David Kastrup <dak@gnu.org> wrote:
>> It seems absurd to have dired-goto-file as a global binding.
>
> Actually I often want to jump to a file's dired entry while visiting
> the file. It's not like it's all _that_ hard to do now (just do `C-x
> C-f RET' to visit the cur directory, and look for the file), but the
> concept is not completely absurd.
Granted.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
^ permalink raw reply [flat|nested] 71+ messages in thread
* Re: Key binding M-g should really be goto-line
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
1 sibling, 1 reply; 71+ messages in thread
From: Johan Bockgård @ 2005-03-10 1:28 UTC (permalink / raw)
Miles Bader <snogglethorpe@gmail.com> writes:
> Actually I often want to jump to a file's dired entry while visiting
> the file. It's not like it's all _that_ hard to do now (just do `C-x
> C-f RET' to visit the cur directory, and look for the file), but the
> concept is not completely absurd.
Indeed not. It's called `dired-jump' (bound to C-x C-j when dired-x is
loaded).
--
Johan Bockgård
^ permalink raw reply [flat|nested] 71+ messages in thread
* Re: Key binding M-g should really be goto-line
2005-03-10 1:28 ` Johan Bockgård
@ 2005-03-10 6:29 ` Juri Linkov
2005-03-10 7:24 ` Romain Francoise
0 siblings, 1 reply; 71+ messages in thread
From: Juri Linkov @ 2005-03-10 6:29 UTC (permalink / raw)
bojohan+news@dd.chalmers.se (Johan Bockgård) writes:
> Indeed not. It's called `dired-jump' (bound to C-x C-j when dired-x
> is loaded).
It is good as a global binding, but it has one limitation: it can't jump
to an arbitrary file, it jumps only to buffer-file-name when called
not from a dired buffer. It would be useful to move `dired-jump'
to dired.el and to modify it to ask the file name with the default
set to buffer-file-name (or to create a new similar function and
bind it to M-g f).
--
Juri Linkov
http://www.jurta.org/emacs/
^ permalink raw reply [flat|nested] 71+ messages in thread
* Re: Key binding M-g should really be goto-line
2005-03-10 6:29 ` Juri Linkov
@ 2005-03-10 7:24 ` Romain Francoise
2005-03-10 10:48 ` David Kastrup
0 siblings, 1 reply; 71+ messages in thread
From: Romain Francoise @ 2005-03-10 7:24 UTC (permalink / raw)
Juri Linkov <juri@jurta.org> writes:
> It would be useful to move `dired-jump' to dired.el and to modify it
> to ask the file name with the default set to buffer-file-name (or to
> create a new similar function and bind it to M-g f).
I can second the suggestion to move `dired-jump' to dired.el, it's one
of the most useful commands in Dired. But jumping to an unrelated file
doesn't sound that intuitive to me, and I definitely don't want to have
to confirm the command each time I use it.
--
Romain Francoise <romain@orebokech.com> | But you don't care for me and
it's a miracle -- http://orebokech.com/ | I don't care now for anybody.
^ permalink raw reply [flat|nested] 71+ messages in thread
* Re: Key binding M-g should really be goto-line
2005-03-10 7:24 ` Romain Francoise
@ 2005-03-10 10:48 ` David Kastrup
2005-03-10 11:41 ` Romain Francoise
0 siblings, 1 reply; 71+ messages in thread
From: David Kastrup @ 2005-03-10 10:48 UTC (permalink / raw)
Romain Francoise <romain@orebokech.com> writes:
> Juri Linkov <juri@jurta.org> writes:
>
>> It would be useful to move `dired-jump' to dired.el and to modify it
>> to ask the file name with the default set to buffer-file-name (or to
>> create a new similar function and bind it to M-g f).
>
> I can second the suggestion to move `dired-jump' to dired.el, it's
> one of the most useful commands in Dired. But jumping to an
> unrelated file doesn't sound that intuitive to me, and I definitely
> don't want to have to confirm the command each time I use it.
It would be somewhat consistent with typical Emacs applications if the
file name was prompted for only when a prefix argument was given.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
^ permalink raw reply [flat|nested] 71+ messages in thread
* Re: Key binding M-g should really be goto-line
2005-03-10 10:48 ` David Kastrup
@ 2005-03-10 11:41 ` Romain Francoise
2005-03-10 13:23 ` Andreas Schwab
0 siblings, 1 reply; 71+ messages in thread
From: Romain Francoise @ 2005-03-10 11:41 UTC (permalink / raw)
David Kastrup <dak@gnu.org> writes:
> It would be somewhat consistent with typical Emacs applications if the
> file name was prompted for only when a prefix argument was given.
Unfortunately, the prefix argument is already used to jump to the file
in another window.
--
Romain Francoise <romain@orebokech.com> | Why did you kill that poor
it's a miracle -- http://orebokech.com/ | old man, melody? She said,
| "He was never good to me"
^ permalink raw reply [flat|nested] 71+ messages in thread
* Re: Key binding M-g should really be goto-line
2005-03-10 11:41 ` Romain Francoise
@ 2005-03-10 13:23 ` Andreas Schwab
2005-03-10 15:19 ` Kim F. Storm
0 siblings, 1 reply; 71+ messages in thread
From: Andreas Schwab @ 2005-03-10 13:23 UTC (permalink / raw)
Romain Francoise <romain@orebokech.com> writes:
> David Kastrup <dak@gnu.org> writes:
>
>> It would be somewhat consistent with typical Emacs applications if the
>> file name was prompted for only when a prefix argument was given.
>
> Unfortunately, the prefix argument is already used to jump to the file
> in another window.
The prompt could be triggered by a specific prefix argument like C-u 0
(aka M-0 aka C-0).
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
^ permalink raw reply [flat|nested] 71+ messages in thread
* Re: Key binding M-g should really be goto-line
2005-03-10 13:23 ` Andreas Schwab
@ 2005-03-10 15:19 ` Kim F. Storm
0 siblings, 0 replies; 71+ messages in thread
From: Kim F. Storm @ 2005-03-10 15:19 UTC (permalink / raw)
Cc: emacs-devel
Andreas Schwab <schwab@suse.de> writes:
> Romain Francoise <romain@orebokech.com> writes:
>
>> David Kastrup <dak@gnu.org> writes:
>>
>>> It would be somewhat consistent with typical Emacs applications if the
>>> file name was prompted for only when a prefix argument was given.
>>
>> Unfortunately, the prefix argument is already used to jump to the file
>> in another window.
>
> The prompt could be triggered by a specific prefix argument like C-u 0
> (aka M-0 aka C-0).
If M-g is a prefix, putting it on a different key, e.g. M-g j, is
much easier than messing with special prefix args.
--
Kim F. Storm <storm@cua.dk> http://www.cua.dk
^ permalink raw reply [flat|nested] 71+ messages in thread
* Re: Key binding M-g should really be goto-line
2005-03-09 7:05 Key binding M-g should really be goto-line Juri Linkov
` (3 preceding siblings ...)
2005-03-09 21:51 ` Key binding M-g should really be goto-line Romain Francoise
@ 2005-03-18 10:27 ` Romain Francoise
2005-03-18 12:11 ` M-g suffixes. Was: " David Kastrup
2005-03-19 3:09 ` Richard Stallman
4 siblings, 2 replies; 71+ messages in thread
From: Romain Francoise @ 2005-03-18 10:27 UTC (permalink / raw)
Juri Linkov <juri@jurta.org> writes:
> 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.
Now that Richard has changed M-g to be a prefix key, can we implement
this plan?
We already have:
M-g M-g - goto-line
M-g g - goto-line
The candidates are:
M-g c - goto-char
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
Undecided:
M-g f - dired-goto-file? (doesn't work in non-Dired buffers)
M-g j - Kim's find-file-and-line-near-point?
M-g j - dired-jump? (or a similar function which prompts for a file
name)
--
Romain Francoise <romain@orebokech.com> | Why did you kill that poor
it's a miracle -- http://orebokech.com/ | old man, melody? She said,
| "He was never good to me"
^ permalink raw reply [flat|nested] 71+ messages in thread
* M-g suffixes. Was: Key binding M-g should really be goto-line
2005-03-18 10:27 ` Romain Francoise
@ 2005-03-18 12:11 ` David Kastrup
2005-03-18 12:59 ` Romain Francoise
2005-03-18 13:58 ` Stefan Monnier
2005-03-19 3:09 ` Richard Stallman
1 sibling, 2 replies; 71+ messages in thread
From: David Kastrup @ 2005-03-18 12:11 UTC (permalink / raw)
Romain Francoise <romain@orebokech.com> writes:
> Juri Linkov <juri@jurta.org> writes:
>
>> 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.
Of course Juri is being facetious. The binding of M-g was a small
change as compared to the improvements. If he'd have come up with
them before, maybe the argument would not have taken so long: the
improvements are what makes this really good.
> Now that Richard has changed M-g to be a prefix key, can we
> implement this plan?
>
> We already have:
>
> M-g M-g - goto-line
> M-g g - goto-line
>
> The candidates are:
>
> M-g c - goto-char
Maybe the binding M-g = would be a better complement to C-x =
(what-cursor-position)?
M-g b - goto-byte (non-existent yet)
If one application is supposed to make use of error offsets from
external applications, it is quite likely that those will be given in
bytes instead of characters for this kind of granularity. goto-byte
would need to take a look at buffer-file-coding-system in general, as
it would not do to do the accounting in Emacs-internal units.
> 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
Most definitely YES!
> Undecided:
>
> M-g f - dired-goto-file? (doesn't work in non-Dired buffers)
> M-g j - Kim's find-file-and-line-near-point?
M-g .
> M-g j - dired-jump? (or a similar function which prompts for a file
> name)
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
^ permalink raw reply [flat|nested] 71+ messages in thread
* Re: M-g suffixes. Was: Key binding M-g should really be goto-line
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
1 sibling, 1 reply; 71+ messages in thread
From: Romain Francoise @ 2005-03-18 12:59 UTC (permalink / raw)
David Kastrup <dak@gnu.org> writes:
>> 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
> Most definitely YES!
I would also like to see `first-error' there while we're at it. So how
about:
M-g < - first-error
(Maybe as `M-g 1' too?)
--
Romain Francoise <romain@orebokech.com> | I like the streets when
it's a miracle -- http://orebokech.com/ | they're empty, I can make the
| rest up.
^ permalink raw reply [flat|nested] 71+ messages in thread
* Re: M-g suffixes. Was: Key binding M-g should really be goto-line
2005-03-18 12:59 ` Romain Francoise
@ 2005-03-18 13:17 ` David Kastrup
0 siblings, 0 replies; 71+ messages in thread
From: David Kastrup @ 2005-03-18 13:17 UTC (permalink / raw)
Romain Francoise <romain@orebokech.com> writes:
> David Kastrup <dak@gnu.org> writes:
>
>>> 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
>
>> Most definitely YES!
>
> I would also like to see `first-error' there while we're at it. So how
> about:
>
> M-g < - first-error
While this is somewhat mnemonic, I don't see that it is necessary
given that C-u M-g n already exists.
> (Maybe as `M-g 1' too?)
Disagree. Does not fit our usual patterns.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
^ permalink raw reply [flat|nested] 71+ messages in thread
* Re: M-g suffixes. Was: Key binding M-g should really be goto-line
2005-03-18 12:11 ` M-g suffixes. Was: " David Kastrup
2005-03-18 12:59 ` Romain Francoise
@ 2005-03-18 13:58 ` Stefan Monnier
2005-03-18 18:59 ` Gaetan Leurent
1 sibling, 1 reply; 71+ messages in thread
From: Stefan Monnier @ 2005-03-18 13:58 UTC (permalink / raw)
Cc: emacs-devel
>> M-g c - goto-char
Huh? I'd never have expected someone to actually suggest an interactive key
binding for goto-char. But I now see that it even has a menu-bar entry.
What in the world for?
I also see that the docstring of goto-char is wrong. How about the
patch below?
> M-g b - goto-byte (non-existent yet)
That could make some sense. But post-22.
Stefan
--- editfns.c 23 jan 2005 11:39:55 -0500 1.389
+++ editfns.c 18 mar 2005 08:58:32 -0500
@@ -1,6 +1,6 @@
/* Lisp functions pertaining to editing.
- Copyright (C) 1985,86,87,89,93,94,95,96,97,98,1999,2000,01,02,03,2004
- Free Software Foundation, Inc.
+ Copyright (C) 1985, 1986, 1987, 1989, 1993, 1994, 1995, 1996, 1997, 1998,
+ 1999, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
This file is part of GNU Emacs.
@@ -265,10 +265,7 @@
DEFUN ("goto-char", Fgoto_char, Sgoto_char, 1, 1, "NGoto char: ",
doc: /* Set point to POSITION, a number or marker.
-Beginning of buffer is position (point-min), end is (point-max).
-If the position is in the middle of a multibyte form,
-the actual point is set at the head of the multibyte form
-except in the case that `enable-multibyte-characters' is nil. */)
+Beginning of buffer is position (point-min), end is (point-max). */)
(position)
register Lisp_Object position;
{
^ permalink raw reply [flat|nested] 71+ messages in thread
* Re: M-g suffixes. Was: Key binding M-g should really be goto-line
2005-03-18 13:58 ` Stefan Monnier
@ 2005-03-18 18:59 ` Gaetan Leurent
0 siblings, 0 replies; 71+ messages in thread
From: Gaetan Leurent @ 2005-03-18 18:59 UTC (permalink / raw)
Cc: emacs-devel
Stefan Monnier wrote on 18 Mar 2005 14:58:48 +0100:
> Huh? I'd never have expected someone to actually suggest an interactive key
> binding for goto-char. But I now see that it even has a menu-bar entry.
> What in the world for?
Some compilers (eg ocaml) reports errors with character numbers instead
of line numbers. (Yeah, I know, there is already a caml mode to do
that...)
^ permalink raw reply [flat|nested] 71+ messages in thread
* Re: Key binding M-g should really be goto-line
2005-03-18 10:27 ` Romain Francoise
2005-03-18 12:11 ` M-g suffixes. Was: " David Kastrup
@ 2005-03-19 3:09 ` Richard Stallman
2005-03-19 9:20 ` David Kastrup
2005-03-20 14:41 ` Romain Francoise
1 sibling, 2 replies; 71+ messages in thread
From: Richard Stallman @ 2005-03-19 3:09 UTC (permalink / raw)
Cc: emacs-devel
Now that Richard has changed M-g to be a prefix key, can we implement
this plan?
I would rather put this aside until after the release.
I would like a small group to organize to make a plan
for what to do with M-g, and discuss the question outside
of this list. Would those who want to do this please do so?
^ permalink raw reply [flat|nested] 71+ messages in thread
* Re: Key binding M-g should really be goto-line
2005-03-19 3:09 ` Richard Stallman
@ 2005-03-19 9:20 ` David Kastrup
2005-03-20 14:41 ` Romain Francoise
1 sibling, 0 replies; 71+ messages in thread
From: David Kastrup @ 2005-03-19 9:20 UTC (permalink / raw)
Cc: emacs-devel
Richard Stallman <rms@gnu.org> writes:
> Now that Richard has changed M-g to be a prefix key, can we
> implement this plan?
>
> I would rather put this aside until after the release.
Discussing the full population of this binding, I might agree here.
However, part of this proposal was due to C-x ` being very burdensome
to type on many international keyboards. I don't think it makes sense
to introduce M-g as a prefix without populating at least those slots
which have made this proposal compelling.
So I think that the next release should at the very least contain the
(rather uncontentious) M-g M-p, M-g p, M-g M-n and M-g n bindings.
All the rest is nice in various degrees, but those seem rather
essential.
> I would like a small group to organize to make a plan
> for what to do with M-g, and discuss the question outside
> of this list. Would those who want to do this please do so?
I'd be willing to participate in such an off-list discussion if it
proves necessary or beneficial. Let's raise the bar by demanding that
anybody discussing it should also be willing to implement his
proposals including documentation. Since we are talking about
functionality that seems quite convenient to the average user, this
includes the help sheets which probably should be checked for accuracy
before release, anyhow, requiring speakers of different languages.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
^ permalink raw reply [flat|nested] 71+ messages in thread
* Re: Key binding M-g should really be goto-line
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
1 sibling, 1 reply; 71+ messages in thread
From: Romain Francoise @ 2005-03-20 14:41 UTC (permalink / raw)
Richard Stallman <rms@gnu.org> writes:
> I would rather put this aside until after the release.
I was hoping we could at least add the "candidates" from my list before
the release. New bindings for previous-error and next-error would be
immediately useful and everyone involved in the discussion so far seemed
to agree.
> I would like a small group to organize to make a plan for what to do
> with M-g, and discuss the question outside of this list. Would those
> who want to do this please do so?
We can just postpone this discussion to after the release.
--
Romain Francoise <romain@orebokech.com> | How long will it be before he
it's a miracle -- http://orebokech.com/ | sees you own his legs but his
| mind is free?
^ permalink raw reply [flat|nested] 71+ messages in thread
* Re: Key binding M-g should really be goto-line
2005-03-20 14:41 ` Romain Francoise
@ 2005-03-21 1:18 ` Richard Stallman
0 siblings, 0 replies; 71+ messages in thread
From: Richard Stallman @ 2005-03-21 1:18 UTC (permalink / raw)
Cc: emacs-devel
> I would like a small group to organize to make a plan for what to do
> with M-g, and discuss the question outside of this list. Would those
> who want to do this please do so?
We can just postpone this discussion to after the release.
We could, but that's not quite the issue. I'm not talking about when
to have this discussion, I'm talking about where. Having it on this
list would be distracting, so I would like interested people to
discuss the question outside this list.
We could do that later instead of now, if people remember the decision
to discuss this off the list.
^ permalink raw reply [flat|nested] 71+ messages in thread
* Re: Key binding M-g should really be goto-line autolearn=noversion=3.0.2 autolearn=no version=3.0.2
@ 2005-03-05 0:24 Miles Bader
2005-03-05 0:49 ` Key binding M-g should really be goto-lineautolearn=noversion=3.0.2 " Drew Adams
0 siblings, 1 reply; 71+ messages in thread
From: Miles Bader @ 2005-03-05 0:24 UTC (permalink / raw)
Cc: Kevin Rodgers, emacs-devel
On Fri, 04 Mar 2005 18:45:32 -0500, Richard Stallman <rms@gnu.org> wrote:
> How about making goto-line suggest the number at point
> as its default argument?
That seems very convenient!
I think it may also be convenient if, point is not on a number, use
the first number on the current line as a default.
This is because I think it's common to have point sitting at the
beginning of an error line, and this would save users the effort of
manually positioning point over the actual line number (the heuristic
could fail in some cases if for instance a filename contained digits,
but I think it would often be right).
BTW, also maybe the prompt in the "use last selected buffer" case
should mention the buffer name.
Thanks,
-Miles
--
Do not taunt Happy Fun Ball.
^ permalink raw reply [flat|nested] 71+ messages in thread
* RE: Key binding M-g should really be goto-lineautolearn=noversion=3.0.2 autolearn=no version=3.0.2
2005-03-05 0:24 Key binding M-g should really be goto-line autolearn=noversion=3.0.2 autolearn=no version=3.0.2 Miles Bader
@ 2005-03-05 0:49 ` Drew Adams
2005-03-05 1:27 ` Miles Bader
0 siblings, 1 reply; 71+ messages in thread
From: Drew Adams @ 2005-03-05 0:49 UTC (permalink / raw)
> How about making goto-line suggest the number at point
> as its default argument?
That seems very convenient!
I haven't yet received RMS's email, but yes, why not?
I think it may also be convenient if, point is not on a number, use
the first number on the current line as a default.
This is because I think it's common to have point sitting at the
beginning of an error line, and this would save users the effort of
manually positioning point over the actual line number (the heuristic
could fail in some cases if for instance a filename contained digits,
but I think it would often be right).
BTW, also maybe the prompt in the "use last selected buffer" case
should mention the buffer name.
FYI - I don't suggest that `goto-line' itself should be changed this way,
but the code I sent for `goto-line-at-point' (which picks up a number in a
buffer to use as goto-line line number in another buffer), in my version,
uses `number-nearest-point' instead of `number-at-point'. That does what you
suggest wrt a number at line start. `number-nearest-point' is defined here:
http://www.emacswiki.org/elisp/thingatpt-plus.el.
^ permalink raw reply [flat|nested] 71+ messages in thread
* Re: Key binding M-g should really be goto-lineautolearn=noversion=3.0.2 autolearn=no version=3.0.2
2005-03-05 0:49 ` Key binding M-g should really be goto-lineautolearn=noversion=3.0.2 " Drew Adams
@ 2005-03-05 1:27 ` Miles Bader
2005-03-05 19:00 ` Stefan Monnier
0 siblings, 1 reply; 71+ messages in thread
From: Miles Bader @ 2005-03-05 1:27 UTC (permalink / raw)
Cc: emacs-devel
On Fri, 4 Mar 2005 16:49:13 -0800, Drew Adams <drew.adams@oracle.com> wrote:
> FYI - I don't suggest that `goto-line' itself should be changed this way,
> but the code I sent for `goto-line-at-point'
I think goto-line should do it. Remember, rms's suggestion is that
goto-line use the line number from the buffer as a _default_, not jump
there immediately. I think that is very desirable, as such heuristics
can guess wrong, and this gives the user a chance to correct a mistake
(and for the many cases where the default is correct, hitting RET to
accept it is quick and painless).
Also it looks like `goto-line' will get a convenient key-binding (M-o)... :-/
-Miles
--
Do not taunt Happy Fun Ball.
^ permalink raw reply [flat|nested] 71+ messages in thread
* Re: Key binding M-g should really be goto-lineautolearn=noversion=3.0.2 autolearn=no version=3.0.2
2005-03-05 1:27 ` Miles Bader
@ 2005-03-05 19:00 ` Stefan Monnier
2005-03-05 20:22 ` Key binding M-g should really be goto-line Johan Bockgård
0 siblings, 1 reply; 71+ messages in thread
From: Stefan Monnier @ 2005-03-05 19:00 UTC (permalink / raw)
Cc: emacs-devel, Drew Adams, miles
> Also it looks like `goto-line' will get a convenient key-binding (M-o)... :-/
I really wish it weren't M-o but M-g instead.
Many people already use M-g, it's mnemonic (in English), XEmacs uses M-g, ...
Stefan
^ permalink raw reply [flat|nested] 71+ messages in thread
* Re: Key binding M-g should really be goto-line
2005-03-05 19:00 ` Stefan Monnier
@ 2005-03-05 20:22 ` Johan Bockgård
2005-03-05 23:16 ` Miles Bader
0 siblings, 1 reply; 71+ messages in thread
From: Johan Bockgård @ 2005-03-05 20:22 UTC (permalink / raw)
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> Also it looks like `goto-line' will get a convenient key-binding
>> (M-o)... :-/
>
> I really wish it weren't M-o but M-g instead.
Maybe i misunderstood, but it looked to me like RMS did agree to use
M-g:
Jari> Is there no hope to see the 'facemenu-keymap moved to
Jari> another key and have the goto-line solely for M-g?
RMS> What other key do you suggest? M-o would be ok, if people
RMS> want.
--
Johan Bockgård
^ permalink raw reply [flat|nested] 71+ messages in thread
* Re: Key binding M-g should really be goto-line
2005-03-05 20:22 ` Key binding M-g should really be goto-line Johan Bockgård
@ 2005-03-05 23:16 ` Miles Bader
2005-03-06 9:50 ` David Kastrup
0 siblings, 1 reply; 71+ messages in thread
From: Miles Bader @ 2005-03-05 23:16 UTC (permalink / raw)
On Sat, 05 Mar 2005 21:22:28 +0100, Johan Bockgård
<bojohan+news@dd.chalmers.se> wrote:
> > I really wish it weren't M-o but M-g instead.
>
> Maybe i misunderstood, but it looked to me like RMS did agree to use
> M-g:
>
> Jari> Is there no hope to see the 'facemenu-keymap moved to
> Jari> another key and have the goto-line solely for M-g?
>
> RMS> What other key do you suggest? M-o would be ok, if people
> RMS> want.
You may be right; I don't really care which one it is, the point I was
trying to make is the same.
[Though using M-g would have the advantage of greatly reducing the
amount of whining on this list...]
-Miles
--
Do not taunt Happy Fun Ball.
^ permalink raw reply [flat|nested] 71+ messages in thread
* Re: Key binding M-g should really be goto-line
2005-03-05 23:16 ` Miles Bader
@ 2005-03-06 9:50 ` David Kastrup
0 siblings, 0 replies; 71+ messages in thread
From: David Kastrup @ 2005-03-06 9:50 UTC (permalink / raw)
Cc: emacs-devel, miles
Miles Bader <snogglethorpe@gmail.com> writes:
> On Sat, 05 Mar 2005 21:22:28 +0100, Johan Bockgård
> <bojohan+news@dd.chalmers.se> wrote:
>> > I really wish it weren't M-o but M-g instead.
>>
>> Maybe i misunderstood, but it looked to me like RMS did agree to use
>> M-g:
>>
>> Jari> Is there no hope to see the 'facemenu-keymap moved to
>> Jari> another key and have the goto-line solely for M-g?
>>
>> RMS> What other key do you suggest? M-o would be ok, if people
>> RMS> want.
>
> You may be right; I don't really care which one it is, the point I was
> trying to make is the same.
>
> [Though using M-g would have the advantage of greatly reducing the
> amount of whining on this list...]
That would be reason alone. So since the rationale of "M-g" was IIRC
"it's available" and since Richard seems to have agreed to using "M-o"
for facemenu-keymap, let us just wait for him to reconfirm and end the
whining about this matter once and for all, starting now.
Hopefully.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
^ permalink raw reply [flat|nested] 71+ messages in thread
* Key binding M-g should really be goto-line
@ 2005-03-01 22:58 Jari Aalto+mail.emacs
2005-03-01 23:35 ` David Kastrup
` (6 more replies)
0 siblings, 7 replies; 71+ messages in thread
From: Jari Aalto+mail.emacs @ 2005-03-01 22:58 UTC (permalink / raw)
Cc: jari.aalto
[please keep CC, I'm not in this list]
I noticed that in CVS lisp/ the M-g mapping reads:
ldefs-boot.el: (define-key global-map "\M-g" 'facemenu-keymap)
A while ago there was a long discussion:
http://lists.gnu.org/archive/html/emacs-devel/2004-03/msg00642.html
But I dare to open this question again. I understood that the goal of
keeping M-g where is now is was that in some distant foggy future it might
be used for text editing.
http://lists.gnu.org/archive/html/emacs-devel/2004-03/msg00642.html
From: Richard Stallman
"I want Emacs to move in the direction of doing word processing. It
may take years, but we will get there. Then commands to specify faces
will become important, and will need a good key binding.
I chose the M-g binding for that reason, and the reason continues to
have force. So I don't intend to change that binding."
Please, I have been watching this future over 10 years now and in the mean
time hundreds or thousands developers / code writers / designers / students
/ teachers are all using
M-g to mean goto-line
Is there no hope to see the 'facemenu-keymap moved to another key and have
the goto-line solely for M-g? It really cannot be replaced by M-x compile /
M-x grep or other specialized modes that offer "direct to line" jump
commands. Line numbers can come from many outside sources, like:
o Remote sessions; you're editing two copies of Version controlled
files
o Other programming languages; Like PHP which display errors and
line numbers in web page itself (can't use Emacs)
o Numerous other utilities (like Web link checkers, when you
edit the file in Emacs)
To make it short: from accessibility point of view, the goto-line
functionality would be far more important and widely used in everyday Emacs
session and ad hoc use, than the current facemenu-keymap functionality.
Jari
^ permalink raw reply [flat|nested] 71+ messages in thread
* Re: Key binding M-g should really be goto-line
2005-03-01 22:58 Jari Aalto+mail.emacs
@ 2005-03-01 23:35 ` David Kastrup
2005-03-02 4:50 ` Eli Zaretskii
2005-03-01 23:49 ` Alfred M. Szmidt
` (5 subsequent siblings)
6 siblings, 1 reply; 71+ messages in thread
From: David Kastrup @ 2005-03-01 23:35 UTC (permalink / raw)
Cc: emacs-devel
jari.aalto@cante.net (Jari Aalto+mail.emacs) writes:
> http://lists.gnu.org/archive/html/emacs-devel/2004-03/msg00642.html
> From: Richard Stallman
>
> "I want Emacs to move in the direction of doing word processing. It
> may take years, but we will get there. Then commands to specify faces
> will become important, and will need a good key binding.
>
> I chose the M-g binding for that reason, and the reason continues to
> have force. So I don't intend to change that binding."
>
> Please, I have been watching this future over 10 years now and in the mean
> time hundreds or thousands developers / code writers / designers / students
> / teachers are all using
>
> M-g to mean goto-line
I'd second that. And the reason is that it is my opinion that even in
the text processing case M-g has little to none mnemonic value, and
more in the context of text processing functions is needed, anyway,
than just font selection. If we go that lane, it will more probably
require opening a modifier like "super" or "alt" for it. Most
keyboards by now readily have enough modifiers available. We will
need a terminal shortcut for terminals that don't have it, like for
Meta. Esc-Esc would be one possibility. It is easier to type than
M-g, and it has more "this is a new class of commands" connotations.
The two bindings already starting with Esc Esc would not suffer much
(The Esc M-: binding is available as M-:, anyway).
I think that would be a good escape route for text processing
commands. I certainly would like to see M-g for goto-line.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
^ permalink raw reply [flat|nested] 71+ messages in thread
* Re: Key binding M-g should really be goto-line
2005-03-01 23:35 ` David Kastrup
@ 2005-03-02 4:50 ` Eli Zaretskii
2005-03-02 5:39 ` Nick Roberts
` (2 more replies)
0 siblings, 3 replies; 71+ messages in thread
From: Eli Zaretskii @ 2005-03-02 4:50 UTC (permalink / raw)
Cc: emacs-devel, jari.aalto
> From: David Kastrup <dak@gnu.org>
> Date: Wed, 02 Mar 2005 00:35:09 +0100
> Cc: emacs-devel@gnu.org
>
> > Please, I have been watching this future over 10 years now and in the mean
> > time hundreds or thousands developers / code writers / designers / students
> > / teachers are all using
> >
> > M-g to mean goto-line
>
> I'd second that.
Please, we had an extremely prolonged discussion about this not long
ago, let's not have it again!
^ permalink raw reply [flat|nested] 71+ messages in thread
* Re: Key binding M-g should really be goto-line
2005-03-02 4:50 ` Eli Zaretskii
@ 2005-03-02 5:39 ` Nick Roberts
2005-03-02 6:24 ` Miles Bader
2005-03-02 8:31 ` Key binding M-g should really be goto-line autolearn=no version=3.0.2 Jari Aalto+mail.emacs
2 siblings, 0 replies; 71+ messages in thread
From: Nick Roberts @ 2005-03-02 5:39 UTC (permalink / raw)
Cc: jari.aalto, emacs-devel
> Please, we had an extremely prolonged discussion about this not long
> ago, let's not have it again!
I agree. Its only worth opening again if something has changed since the
last discussion.
Nick
^ permalink raw reply [flat|nested] 71+ messages in thread
* Re: Key binding M-g should really be goto-line
2005-03-02 4:50 ` Eli Zaretskii
2005-03-02 5:39 ` Nick Roberts
@ 2005-03-02 6:24 ` Miles Bader
2005-03-02 8:31 ` Key binding M-g should really be goto-line autolearn=no version=3.0.2 Jari Aalto+mail.emacs
2 siblings, 0 replies; 71+ messages in thread
From: Miles Bader @ 2005-03-02 6:24 UTC (permalink / raw)
Cc: jari.aalto, emacs-devel
> Please, we had an extremely prolonged discussion about this not long
> ago, let's not have it again!
Same person started that thread too... :-/
-Miles
--
Do not taunt Happy Fun Ball.
^ permalink raw reply [flat|nested] 71+ messages in thread
* Re: Key binding M-g should really be goto-line autolearn=no version=3.0.2
2005-03-02 4:50 ` Eli Zaretskii
2005-03-02 5:39 ` Nick Roberts
2005-03-02 6:24 ` Miles Bader
@ 2005-03-02 8:31 ` Jari Aalto+mail.emacs
2005-03-02 12:17 ` Key binding M-g should really be goto-line autolearn=no version=3.0.2 " Jari Aalto+mail.linux
2 siblings, 1 reply; 71+ messages in thread
From: Jari Aalto+mail.emacs @ 2005-03-02 8:31 UTC (permalink / raw)
Cc: Eli Zaretskii, emacs-devel
| > Please, we had an extremely prolonged discussion about this not long
| > ago, let's not have it again!
|
| I agree. Its only worth opening again if something has changed since the
| last discussion.
There is really a need to discuss this, because I see daily situations
where we need the goto-line functionality that Emacs does not offer after
boot. Apache/PHP/Emacs Web development combination is one of them.
The previous discussion did not reach to any consensus on the matter. Emacs
already had M-g to to mean goto-line at some point. Nobody explained good
arguments why current M-g is immovable?
My new suggestion is that
- Move the currently rarely used facemenu-keymap to *another* key.
- Add key binding M-g to mean goto-line as it has been de facto already fo
long time
I believe these are reasonable feature requests. If we think about the
average Emacs user, I don't know where he would use facemenu-keymap - Most
starters consider Emacs just "another text editor", Like Notepad in
Windows or vi replacement in Unix.
Jari
^ permalink raw reply [flat|nested] 71+ messages in thread
* Re: Key binding M-g should really be goto-line autolearn=no version=3.0.2 autolearn=no version=3.0.2
2005-03-02 8:31 ` Key binding M-g should really be goto-line autolearn=no version=3.0.2 Jari Aalto+mail.emacs
@ 2005-03-02 12:17 ` Jari Aalto+mail.linux
2005-03-02 13:42 ` Key binding M-g should really be goto-line Kim F. Storm
0 siblings, 1 reply; 71+ messages in thread
From: Jari Aalto+mail.linux @ 2005-03-02 12:17 UTC (permalink / raw)
Cc: nickrob, eliz, emacs-devel
| Nobody explained good arguments why current M-g is immovable?
|
| ,----
| | http://lists.gnu.org/archive/html/emacs-devel/2004-03/msg00642.html
| | From: Richard Stallman
| |
| | "I want Emacs to move in the direction of doing word processing. It
| | may take years, but we will get there. Then commands to specify faces
| | will become important, and will need a good key binding.
| |
| | I chose the M-g binding for that reason, and the reason continues to
| | have force. So I don't intend to change that binding."
| `----
I meant "immovable" - in literal sense. I'm not suggesting that the
facemenu is removed. But I have big question in my mind why it has to be at
M-g - at binding - which doesn't even sound anything familiar to do with
faces.
| I really feel that the use of
| goto-line to warrant a single char key binding is overblown--specially
| for a single keystroke binding!; if people use it that often then one
| should write a proper mode for Emacs to ease whatever one is doing
| instead of introducing a new keybinding.
What I want to demonstrate is that there is daily need for it; when it is
needed. It's not my invention, while I'm speaker of it here. Perhaps there
is some blindness to see this from another perspective?
Example: How would students/designers use Emacs for PHP coding, where the
remote site displays error messages and line numbers in a web page?
Host A Host B
Win Linux, Unix (Apache/PHP)
client => PHP program
The client A sees Host B's PHP files through SSH, FTP, Version control
or even SAMBA shares. Program is run at B, but browser at A is used
to control it.
NOTE: PHP is the most popular Web development language ever and it has
skyrocketed since 2000. Now that is has proper OO with 5.x, I assume the
popularity will grow even more.
This is not a small issue. Try coding 10 000 lines of PHP without
goto-line. The most, the daily bread is programming, not the "text editing"
features that M-g is offering.
Would anyone really consider facemenu-keymap to be more important, more
essential than the primitive goto-line functionality?
Jari
^ permalink raw reply [flat|nested] 71+ messages in thread
* Re: Key binding M-g should really be goto-line
2005-03-02 12:17 ` Key binding M-g should really be goto-line autolearn=no version=3.0.2 " Jari Aalto+mail.linux
@ 2005-03-02 13:42 ` Kim F. Storm
0 siblings, 0 replies; 71+ messages in thread
From: Kim F. Storm @ 2005-03-02 13:42 UTC (permalink / raw)
Cc: Alfred M. Szmidt, nickrob, eliz, emacs-devel
jari.aalto@cante.net (Jari Aalto+mail.linux) writes:
> | Nobody explained good arguments why current M-g is immovable?
> |
> | ,----
> | | http://lists.gnu.org/archive/html/emacs-devel/2004-03/msg00642.html
> | | From: Richard Stallman
> | |
> | | "I want Emacs to move in the direction of doing word processing. It
> | | may take years, but we will get there. Then commands to specify faces
> | | will become important, and will need a good key binding.
> | |
> | | I chose the M-g binding for that reason, and the reason continues to
> | | have force. So I don't intend to change that binding."
> | `----
>
> I meant "immovable" - in literal sense. I'm not suggesting that the
> facemenu is removed. But I have big question in my mind why it has to be at
> M-g - at binding - which doesn't even sound anything familiar to do with
> faces.
I also suggested this little piggy when M-g was discussed last time:
It keeps the current face menu bindings, but in addition allows you to
enter M-g 123 RET to jump to line 123... Only problem is that it
doesn't show the "Goto line:" prompt until you type the first digit.
(defun goto-line-piggyback ()
(interactive)
(goto-line
(string-to-int
(read-string "Goto line: "
(substring (this-command-keys) -1)))))
(dolist (digit '(?0 ?1 ?2 ?3 ?4 ?5 ?6 ?7 ?8 ?9))
(define-key facemenu-keymap (vector digit) 'goto-line-piggyback))
BTW, who appends "autolearn=no version=3.0.2" to the subject ?
--
Kim F. Storm <storm@cua.dk> http://www.cua.dk
^ permalink raw reply [flat|nested] 71+ messages in thread
* Re: Key binding M-g should really be goto-line
2005-03-01 22:58 Jari Aalto+mail.emacs
2005-03-01 23:35 ` David Kastrup
@ 2005-03-01 23:49 ` Alfred M. Szmidt
2005-03-02 1:00 ` Ralf Angeli
2005-03-02 13:40 ` Robert J. Chassell
2005-03-02 2:06 ` Luc Teirlinck
` (4 subsequent siblings)
6 siblings, 2 replies; 71+ messages in thread
From: Alfred M. Szmidt @ 2005-03-01 23:49 UTC (permalink / raw)
Cc: jari.aalto, emacs-devel
Since Richard really wants facemenu-keymap as a keybinding, what about
making a compromise? Bind goto-line to M-o, or bind facemenu-keymap
to M-o and goto-line to M-g? Or maybe modify a existing keybinding so
that C-u ... does goto-line (maybe M-g is a candidate for this?)? Or
bind goto-line to something like C-x ~.
FWIW, I fail to see why people want goto-line, I never used it,
facemenu-keymap atleast has a potential use already, and in the
future; whereas goto-line is just a crutch. And I fail to see the
fetish people have over keybidnings, specially M-g.
Cheers.
^ permalink raw reply [flat|nested] 71+ messages in thread
* Re: Key binding M-g should really be goto-line
2005-03-01 23:49 ` Alfred M. Szmidt
@ 2005-03-02 1:00 ` Ralf Angeli
2005-03-02 1:14 ` Alfred M. Szmidt
2005-03-02 1:19 ` David Kastrup
2005-03-02 13:40 ` Robert J. Chassell
1 sibling, 2 replies; 71+ messages in thread
From: Ralf Angeli @ 2005-03-02 1:00 UTC (permalink / raw)
* Alfred M. Szmidt (2005-03-02) writes:
> FWIW, I fail to see why people want goto-line, I never used it,
> facemenu-keymap atleast has a potential use already, and in the
> future; whereas goto-line is just a crutch. And I fail to see the
> fetish people have over keybidnings, specially M-g.
One thing I did very soon after starting to use Emacs was to bind
`M-g' to `goto-line'. I am using it often when dealing with patches
generated with `diff' and wanting to look at the original source
before applying a patch.
--
Ralf
^ permalink raw reply [flat|nested] 71+ messages in thread
* Re: Key binding M-g should really be goto-line
2005-03-02 1:00 ` Ralf Angeli
@ 2005-03-02 1:14 ` Alfred M. Szmidt
2005-03-02 8:08 ` Ralf Angeli
2005-03-02 1:19 ` David Kastrup
1 sibling, 1 reply; 71+ messages in thread
From: Alfred M. Szmidt @ 2005-03-02 1:14 UTC (permalink / raw)
Cc: emacs-devel
I am using it often when dealing with patches generated with `diff'
and wanting to look at the original source before applying a patch.
That is what `diff-mode' and C-c C-c (or <RET>) is for. So once
again, I fail to see what use goto-line has for other then in really
awkward situations.
Cheers.
^ permalink raw reply [flat|nested] 71+ messages in thread
* Re: Key binding M-g should really be goto-line
2005-03-02 1:14 ` Alfred M. Szmidt
@ 2005-03-02 8:08 ` Ralf Angeli
0 siblings, 0 replies; 71+ messages in thread
From: Ralf Angeli @ 2005-03-02 8:08 UTC (permalink / raw)
Cc: emacs-devel
* Alfred M. Szmidt (2005-03-02) writes:
> I am using it often when dealing with patches generated with `diff'
> and wanting to look at the original source before applying a patch.
>
> That is what `diff-mode' and C-c C-c (or <RET>) is for. So once
> again, I fail to see what use goto-line has for other then in really
> awkward situations.
I have a keyboard shortcut which opens Emacs with a Dired buffer in
the directory I am usually editing and I find it more efficient to
open the file in question from there and just jump to the line in
question with `M-g' than to activate diff-mode for a patch I got via
email and having to type in the path to the file the patch applies to.
You could argue that such things don't happen often enough to warrant
a special key binding, but I find it very convenient having it.
--
Ralf
^ permalink raw reply [flat|nested] 71+ messages in thread
* Re: Key binding M-g should really be goto-line
2005-03-02 1:00 ` Ralf Angeli
2005-03-02 1:14 ` Alfred M. Szmidt
@ 2005-03-02 1:19 ` David Kastrup
1 sibling, 0 replies; 71+ messages in thread
From: David Kastrup @ 2005-03-02 1:19 UTC (permalink / raw)
Cc: emacs-devel
Ralf Angeli <angeli@iwi.uni-sb.de> writes:
> * Alfred M. Szmidt (2005-03-02) writes:
>
>> FWIW, I fail to see why people want goto-line, I never used it,
>> facemenu-keymap atleast has a potential use already, and in the
>> future; whereas goto-line is just a crutch. And I fail to see the
>> fetish people have over keybidnings, specially M-g.
>
> One thing I did very soon after starting to use Emacs was to bind
> `M-g' to `goto-line'. I am using it often when dealing with patches
> generated with `diff' and wanting to look at the original source
> before applying a patch.
Pressing C-c C-c in diff-mode should be easier. Whenever this topic
has come up, one of the arguments was "whatever you are trying to do,
Emacs should have a better way to do it than M-g". And in many cases
this might be correct. But I don't think that the best way to teach
about refined features is to not provide simpler features.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
^ permalink raw reply [flat|nested] 71+ messages in thread
* Re: Key binding M-g should really be goto-line
2005-03-01 23:49 ` Alfred M. Szmidt
2005-03-02 1:00 ` Ralf Angeli
@ 2005-03-02 13:40 ` Robert J. Chassell
1 sibling, 0 replies; 71+ messages in thread
From: Robert J. Chassell @ 2005-03-02 13:40 UTC (permalink / raw)
In today's GNU Emacs CVS snapshot, Wed, 2005 Mar 2 11:50 UTC
GNU Emacs 22.0.50.13 (i686-pc-linux-gnu, GTK+ Version 2.6.2)
started with
/usr/local/src/emacs/src/emacs -Q
M-o is undefined;
C-x C-g is undefined;
C-x g runs the command insert-register-compatibility-binding.
Alfred M. Szmidt wrote
FWIW, I fail to see why people want goto-line, I never used it, ...
This is yet another example of how people are different. I use
goto-line frequently and cannot see working without it. Fifteen or
eighteen years ago I bound it to C-c C-g and have used that binding
ever since.
There are a great many different actions people want to do, and not
that many keybindings.
This suggests that if goto-line is bound to a key chord by default, it
perhaps should be bound to a potentially less used key chord than to a
potentially more used key chord.
--
Robert J. Chassell
bob@rattlesnake.com GnuPG Key ID: 004B4AC8
http://www.rattlesnake.com http://www.teak.cc
^ permalink raw reply [flat|nested] 71+ messages in thread
* Re: Key binding M-g should really be goto-line
2005-03-01 22:58 Jari Aalto+mail.emacs
2005-03-01 23:35 ` David Kastrup
2005-03-01 23:49 ` Alfred M. Szmidt
@ 2005-03-02 2:06 ` Luc Teirlinck
2005-03-03 2:29 ` Richard Stallman
2005-03-02 9:24 ` Kai Großjohann
` (3 subsequent siblings)
6 siblings, 1 reply; 71+ messages in thread
From: Luc Teirlinck @ 2005-03-02 2:06 UTC (permalink / raw)
Cc: jari.aalto, emacs-devel
Jari Aalto wrote:
"I want Emacs to move in the direction of doing word processing. It
may take years, but we will get there. Then commands to specify faces
will become important, and will need a good key binding.
I chose the M-g binding for that reason, and the reason continues to
have force. So I don't intend to change that binding."
Please, I have been watching this future over 10 years now
I personally do not have strong opinions on the goto-line binding. I
personally use `M-x g-l RET' (with partial completion mode).
In as far as the current state of Emacs' word processing capabilities
are concerned:
I am personally not a "word processor guy", but while proofreading the
Emacs manual I took a close look at Enriched mode.
Enriched mode used to have bugs that nearly made it unusable, except
for very basic stuff. I recently checked and corrected the
documentation and corrected bugs I found. I believe that Enriched
mode currently largely "works" in the sense that it pretty much
correctly does what it claims to be able to do. _But_ it only
supports the text/enriched format _and_ it does so in a way conforming
to RFC 1563, which has been obsolete since 1996. I believe that
text/enriched should be updated for RFC 1896. (Assuming that this is
still the most up to date standard. It was when I last checked.)
Importantly, other formats should be supported.
Last time we discussed this, at least one person seemed to interested
in supporting additional formats. If such plans would actually
materialize (of course, there is no guarantee of that until it
actually happens), it could bring the future of "Emacs as a word
processor" a lot closer. Updating for RFC 1896 would seem to be less
complex and require less work than supporting new formats.
Sincerely,
Luc.
^ permalink raw reply [flat|nested] 71+ messages in thread
* Re: Key binding M-g should really be goto-line
2005-03-01 22:58 Jari Aalto+mail.emacs
` (2 preceding siblings ...)
2005-03-02 2:06 ` Luc Teirlinck
@ 2005-03-02 9:24 ` Kai Großjohann
2005-03-02 11:15 ` Jari Aalto+mail.emacs
` (2 subsequent siblings)
6 siblings, 0 replies; 71+ messages in thread
From: Kai Großjohann @ 2005-03-02 9:24 UTC (permalink / raw)
Once again, I suggest C-x g as a binding for goto-line. The old C-x g
binding is still available as C-x r g, if I'm not mistaken.
Kai
^ permalink raw reply [flat|nested] 71+ messages in thread
* Re: Key binding M-g should really be goto-line
2005-03-01 22:58 Jari Aalto+mail.emacs
` (3 preceding siblings ...)
2005-03-02 9:24 ` Kai Großjohann
@ 2005-03-02 11:15 ` Jari Aalto+mail.emacs
2005-03-02 13:52 ` Alfred M. Szmidt
2005-03-02 15:38 ` Jari Aalto
2005-03-03 2:29 ` Richard Stallman
2005-03-03 7:19 ` Jari Aalto
6 siblings, 2 replies; 71+ messages in thread
From: Jari Aalto+mail.emacs @ 2005-03-02 11:15 UTC (permalink / raw)
Cc: emacs-devel
| The following message is a courtesy copy of an article
| that has been posted to gmane.emacs.devel as well.
|
| Once again, I suggest C-x g as a binding for goto-line. The old C-x g
| binding is still available as C-x r g, if I'm not mistaken.
goto-line is so often used (when you need it; like during PHP coding), that
putting it behind two key presses is not practical. People would need to
map it to some fast key and we'd back where we started.
Jari
^ permalink raw reply [flat|nested] 71+ messages in thread
* Re: Key binding M-g should really be goto-line
2005-03-02 11:15 ` Jari Aalto+mail.emacs
@ 2005-03-02 13:52 ` Alfred M. Szmidt
2005-03-02 14:50 ` Josh Varner
2005-03-02 15:38 ` Jari Aalto
1 sibling, 1 reply; 71+ messages in thread
From: Alfred M. Szmidt @ 2005-03-02 13:52 UTC (permalink / raw)
Cc: kai, emacs-devel
goto-line is so often used (when you need it; like during PHP
coding)
You have only noted PHP as needing goto-line, this doesn't warrant
binding it globally. What about binding M-g in php-mode to goto-line?
^ permalink raw reply [flat|nested] 71+ messages in thread
* Re: Key binding M-g should really be goto-line
2005-03-02 13:52 ` Alfred M. Szmidt
@ 2005-03-02 14:50 ` Josh Varner
2005-03-02 16:38 ` Alfred M. Szmidt
0 siblings, 1 reply; 71+ messages in thread
From: Josh Varner @ 2005-03-02 14:50 UTC (permalink / raw)
On Wed, 02 Mar 2005 14:52:07 +0100, Alfred M. Szmidt <ams@kemisten.nu> wrote:
> goto-line is so often used (when you need it; like during PHP
> coding)
>
> You have only noted PHP as needing goto-line, this doesn't warrant
> binding it globally. What about binding M-g in php-mode to goto-line?
>
When the more advanced context sensitive goto-line like behaviors
break down having the primitive easily accessible is incredibly
helpful. For example on my system gdb mode has problems finding the
right header files when stepping through code, so I have to go to
those lines manually.
It would also be informative to take a look at some of the
distributions out there. Redhat's default .emacs binds goto-line to
Ctrl-x g. Given that this is RH 9.0, but I would not be surprised if
this is still in the default for latest Fedora. But how often do you
or did you receive complaints about losing
insert-register-compatibility-binding.
Josh
^ permalink raw reply [flat|nested] 71+ messages in thread
* Re: Key binding M-g should really be goto-line
2005-03-02 14:50 ` Josh Varner
@ 2005-03-02 16:38 ` Alfred M. Szmidt
2005-03-02 17:16 ` Reiner Steib
0 siblings, 1 reply; 71+ messages in thread
From: Alfred M. Szmidt @ 2005-03-02 16:38 UTC (permalink / raw)
Cc: emacs-devel
For example on my system gdb mode has problems finding the right
header files when stepping through code, so I have to go to those
lines manually.
Then this is a bug in gdb-mode, not the fault of a missing keybinding.
Could people stop arguing why a keybinding is needed for goto-line? I
think everyone already agrees that people see a need for it; for
whatever reason they may have.
M-g is a bad choice for goto-line, since it isn't used that often (and
please don't come up with reaons for facemenu-keymap).
C-x g is also bad, it has a already existing keybinding since a long
time.
C-u C-u C-l, C-x C-g, C-s NN, all seem like good candidates. Can some
Emacs developer just pick one, and define it to goto-line and kill
this stupid thread?
But how often do you or did you receive complaints about losing
insert-register-compatibility-binding.
I will raise a stink about it.
^ permalink raw reply [flat|nested] 71+ messages in thread
* Re: Key binding M-g should really be goto-line
2005-03-02 16:38 ` Alfred M. Szmidt
@ 2005-03-02 17:16 ` Reiner Steib
2005-03-02 17:52 ` Alfred M. Szmidt
2005-03-02 19:01 ` Johan Bockgård
0 siblings, 2 replies; 71+ messages in thread
From: Reiner Steib @ 2005-03-02 17:16 UTC (permalink / raw)
On Wed, Mar 02 2005, Alfred M. Szmidt wrote:
> C-x g is also bad, it has a already existing keybinding since a long
> time.
>
> C-u C-u C-l, C-x C-g, C-s NN, all seem like good candidates. Can some
> Emacs developer just pick one, and define it to goto-line and kill
> this stupid thread?
IMHO, `C-x C-g' is a bad choice, because it is supposed to abort (C-g)
an unintended `C-x'. I'd vote for `C-x g' or `C-M-g'.
Bye, Reiner. ...who has bound <f5> to `goto-line'.
--
,,,
(o o)
---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/
^ permalink raw reply [flat|nested] 71+ messages in thread
* Re: Key binding M-g should really be goto-line
2005-03-02 17:16 ` Reiner Steib
@ 2005-03-02 17:52 ` Alfred M. Szmidt
2005-03-02 19:01 ` Johan Bockgård
1 sibling, 0 replies; 71+ messages in thread
From: Alfred M. Szmidt @ 2005-03-02 17:52 UTC (permalink / raw)
Cc: emacs-devel
> C-x g is also bad, it has a already existing keybinding since a
> long time.
>
> C-u C-u C-l, C-x C-g, C-s NN, all seem like good candidates. Can
> some Emacs developer just pick one, and define it to goto-line
> and kill this stupid thread?
IMHO, `C-x C-g' is a bad choice, because it is supposed to abort
(C-g) an unintended `C-x'. I'd vote for `C-x g' or `C-M-g'.
I oppose to C-x g strongly, as for C-x C-g, I think you are wrong
there. C-x C-g produces "C-x C-g is undefined", ditto for things like
"C-x v C-g". And then, you always have ESC ESC ESC to the rescue. :-)
Happy hacking!
^ permalink raw reply [flat|nested] 71+ messages in thread
* Re: Key binding M-g should really be goto-line
2005-03-02 17:16 ` Reiner Steib
2005-03-02 17:52 ` Alfred M. Szmidt
@ 2005-03-02 19:01 ` Johan Bockgård
2005-03-02 20:23 ` Gaetan Leurent
2005-03-02 20:33 ` Alfred M. Szmidt
1 sibling, 2 replies; 71+ messages in thread
From: Johan Bockgård @ 2005-03-02 19:01 UTC (permalink / raw)
Reiner Steib <reinersteib+gmane@imap.cc> writes:
> I'd vote for `C-x g' or `C-M-g'.
C-M-g may not work in a terminal/console.
--
Johan Bockgård
^ permalink raw reply [flat|nested] 71+ messages in thread
* Re: Key binding M-g should really be goto-line
2005-03-02 11:15 ` Jari Aalto+mail.emacs
2005-03-02 13:52 ` Alfred M. Szmidt
@ 2005-03-02 15:38 ` Jari Aalto
1 sibling, 0 replies; 71+ messages in thread
From: Jari Aalto @ 2005-03-02 15:38 UTC (permalink / raw)
Cc: kai, emacs-devel
| goto-line is so often used (when you need it; like during PHP
| coding)
|
| You have only noted PHP as needing goto-line, this doesn't warrant
| binding it globally. What about binding M-g in php-mode to goto-line?
I presented several examples. Please refer to other posts. The sources for
need for line numbers are so diverse, that one can imagine lot of uses.
Let's all mediate a while for several programming languages, automated
tools, shell scripts, syntax checkers, error messages ...
Jari
^ permalink raw reply [flat|nested] 71+ messages in thread
* Re: Key binding M-g should really be goto-line
2005-03-01 22:58 Jari Aalto+mail.emacs
` (4 preceding siblings ...)
2005-03-02 11:15 ` Jari Aalto+mail.emacs
@ 2005-03-03 2:29 ` Richard Stallman
2005-03-03 7:19 ` Jari Aalto
6 siblings, 0 replies; 71+ messages in thread
From: Richard Stallman @ 2005-03-03 2:29 UTC (permalink / raw)
Cc: jari.aalto, emacs-devel
Is there no hope to see the 'facemenu-keymap moved to another key and have
the goto-line solely for M-g?
What other key do you suggest? M-o would be ok, if people want.
If we go that lane, it will more probably
require opening a modifier like "super" or "alt" for it. Most
keyboards by now readily have enough modifiers available.
I don't think that is true. Most keyboards that I have seen have only
CTRL, META and SHIFT.
^ permalink raw reply [flat|nested] 71+ messages in thread
* Re: Key binding M-g should really be goto-line
2005-03-01 22:58 Jari Aalto+mail.emacs
` (5 preceding siblings ...)
2005-03-03 2:29 ` Richard Stallman
@ 2005-03-03 7:19 ` Jari Aalto
6 siblings, 0 replies; 71+ messages in thread
From: Jari Aalto @ 2005-03-03 7:19 UTC (permalink / raw)
Cc: jari.aalto, emacs-devel
| Is there no hope to see the 'facemenu-keymap moved to another key and have
| the goto-line solely for M-g?
|
| What other key do you suggest? M-o would be ok, if people want.
M-o is fine and looks well accessible.
Jari
^ permalink raw reply [flat|nested] 71+ messages in thread
end of thread, other threads:[~2005-03-21 1:18 UTC | newest]
Thread overview: 71+ 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
-- strict thread matches above, loose matches on Subject: below --
2005-03-05 0:24 Key binding M-g should really be goto-line autolearn=noversion=3.0.2 autolearn=no version=3.0.2 Miles Bader
2005-03-05 0:49 ` Key binding M-g should really be goto-lineautolearn=noversion=3.0.2 " Drew Adams
2005-03-05 1:27 ` Miles Bader
2005-03-05 19:00 ` Stefan Monnier
2005-03-05 20:22 ` Key binding M-g should really be goto-line Johan Bockgård
2005-03-05 23:16 ` Miles Bader
2005-03-06 9:50 ` David Kastrup
2005-03-01 22:58 Jari Aalto+mail.emacs
2005-03-01 23:35 ` David Kastrup
2005-03-02 4:50 ` Eli Zaretskii
2005-03-02 5:39 ` Nick Roberts
2005-03-02 6:24 ` Miles Bader
2005-03-02 8:31 ` Key binding M-g should really be goto-line autolearn=no version=3.0.2 Jari Aalto+mail.emacs
2005-03-02 12:17 ` Key binding M-g should really be goto-line autolearn=no version=3.0.2 " Jari Aalto+mail.linux
2005-03-02 13:42 ` Key binding M-g should really be goto-line Kim F. Storm
2005-03-01 23:49 ` Alfred M. Szmidt
2005-03-02 1:00 ` Ralf Angeli
2005-03-02 1:14 ` Alfred M. Szmidt
2005-03-02 8:08 ` Ralf Angeli
2005-03-02 1:19 ` David Kastrup
2005-03-02 13:40 ` Robert J. Chassell
2005-03-02 2:06 ` Luc Teirlinck
2005-03-03 2:29 ` Richard Stallman
2005-03-02 9:24 ` Kai Großjohann
2005-03-02 11:15 ` Jari Aalto+mail.emacs
2005-03-02 13:52 ` Alfred M. Szmidt
2005-03-02 14:50 ` Josh Varner
2005-03-02 16:38 ` Alfred M. Szmidt
2005-03-02 17:16 ` Reiner Steib
2005-03-02 17:52 ` Alfred M. Szmidt
2005-03-02 19:01 ` Johan Bockgård
2005-03-02 20:23 ` Gaetan Leurent
2005-03-02 20:46 ` Miles Bader
2005-03-02 20:33 ` Alfred M. Szmidt
2005-03-02 15:38 ` Jari Aalto
2005-03-03 2:29 ` Richard Stallman
2005-03-03 7:19 ` Jari Aalto
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).