From: Lars Ingebrigtsen Date: Sat, 30 Apr 2016 15:29:46 +0000 (+0200) Subject: Document extended-command-suggest-shorter X-Git-Url: https://code.delx.au/gnu-emacs/commitdiff_plain/12515d890f3c545186e023863e4ee6ba2cc65333 Document extended-command-suggest-shorter * doc/emacs/m-x.texi (M-x): Mention extended-command-suggest-shorter (bug#19152). --- diff --git a/doc/emacs/m-x.texi b/doc/emacs/m-x.texi index 9e5f50b5e9..4b1165a113 100644 --- a/doc/emacs/m-x.texi +++ b/doc/emacs/m-x.texi @@ -69,11 +69,13 @@ number, in which case Emacs will show the binding for that many seconds before removing it from display. The default behavior is to display the binding for 2 seconds. +@vindex extended-command-suggest-shorter Commands that don't have key bindings, can still be invoked after typing less than their full name at the @samp{M-x} prompt. Emacs mentions such shorthands in the echo area if they are significantly -shorter than the full command name. The setting of -@code{suggest-key-bindings} affects these hints as well. +shorter than the full command name, and +@code{extended-command-suggest-shorter} is non-@code{nil}. The +setting of @code{suggest-key-bindings} affects these hints as well. In this manual, when we speak of running a command by name, we often omit the @key{RET} that terminates the name. Thus we might say diff --git a/etc/NEWS b/etc/NEWS index 543b3bac7a..ed4810b298 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -56,6 +56,10 @@ affected by this, as SGI stopped supporting IRIX in December 2013. * Changes in Emacs 25.2 ++++ +** The new variable `extended-command-suggest-shorter' has been added +to control whether to suggest shorter `M-x' commands or not. + --- ** icomplete now respects `completion-ignored-extensions'.