From 12515d890f3c545186e023863e4ee6ba2cc65333 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Sat, 30 Apr 2016 17:29:46 +0200 Subject: [PATCH] Document extended-command-suggest-shorter * doc/emacs/m-x.texi (M-x): Mention extended-command-suggest-shorter (bug#19152). --- doc/emacs/m-x.texi | 6 ++++-- etc/NEWS | 4 ++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/doc/emacs/m-x.texi b/doc/emacs/m-x.texi index 9e5f50b5e91..4b1165a1130 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 543b3bac7a7..ed4810b2982 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'. -- 2.39.2