GNU bug report logs -
#36525
M-x default when cursor on top of a M-x command in INFO
Previous Next
Full log
View this message in rfc822 format
積丹尼 Dan Jacobson <jidanni <at> jidanni.org> writes:
>>>>>> "BLC" == Basil L Contovounesios <contovob <at> tcd.ie> writes:
>>> 2. Put the cursor on top of
>>> ‘M-x list-coding-systems’
>>>
>>> 3. Hit M-x
>>>
>>> Wouldn't it be great if we saw that it was now the default in the minibuffer?
>
> BLC> Try M-n.
> BLC> This runs next-history-element; see (info "(emacs) Minibuffer History").
>
> Ah ha...
> So how about instead of the user typing M-x M-n, he just types M-x for
> the exact same effect.
> Now all he has to do is either hit RET, or replace the text with what he
> wants instead.
Inserting text in the minibuffer is intrusive and discouraged;
see (info "(elisp) Initial Input").
Making M-x interpret empty input as the symbol at point changes
long-standing behaviour of a central feature and makes it easier to make
a mistake. IMO typing M-n is not only good enough, but better, since it
works across all standard minibuffer reading functions.
You can always write a custom command to default to the command name at
point without needing to change M-x for everyone.
--
Basil
This bug report was last modified 5 years and 272 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.