diff options
| author | Eli Zaretskii | 2015-11-28 20:27:52 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2015-11-28 20:27:52 +0200 |
| commit | 63f7e4b4b95f8c347144596efcb9b5d806724c8d (patch) | |
| tree | 0b5fa2ad9d3bdfcd2fc7a120964b8ca432e2d68d | |
| parent | fadc3e0dfd7fafa9c65f689a59244fdb3ca94e54 (diff) | |
| download | emacs-63f7e4b4b95f8c347144596efcb9b5d806724c8d.tar.gz emacs-63f7e4b4b95f8c347144596efcb9b5d806724c8d.zip | |
Document the shorthand hints displayed by M-x
* doc/emacs/m-x.texi (M-x): Document the numeric meaning of
suggest-key-bindings. Document the shorthand hints for commands
that have no key bindings. Document that M-x completion ignores
obsolete commands.
* etc/NEWS: Move the M-x entry to "Editing Changes" and mark it as
documented.
| -rw-r--r-- | doc/emacs/m-x.texi | 18 | ||||
| -rw-r--r-- | etc/NEWS | 4 |
2 files changed, 20 insertions, 2 deletions
diff --git a/doc/emacs/m-x.texi b/doc/emacs/m-x.texi index c9ae559f984..795d6fe373b 100644 --- a/doc/emacs/m-x.texi +++ b/doc/emacs/m-x.texi | |||
| @@ -43,6 +43,13 @@ Note that @code{forward-char} is the same command that you invoke with | |||
| 43 | the key @kbd{C-f}. The existence of a key binding does not stop you | 43 | the key @kbd{C-f}. The existence of a key binding does not stop you |
| 44 | from running the command by name. | 44 | from running the command by name. |
| 45 | 45 | ||
| 46 | @cindex obsolete command | ||
| 47 | When @kbd{M-x} completes on commands, it ignores the commands that | ||
| 48 | are declared @dfn{obsolete}; for these, you will have to type their | ||
| 49 | full name. Obsolete commands are those for which newer, better | ||
| 50 | alternatives exist, and which are slated for removal in some future | ||
| 51 | Emacs release. | ||
| 52 | |||
| 46 | To cancel the @kbd{M-x} and not run a command, type @kbd{C-g} instead | 53 | To cancel the @kbd{M-x} and not run a command, type @kbd{C-g} instead |
| 47 | of entering the command name. This takes you back to command level. | 54 | of entering the command name. This takes you back to command level. |
| 48 | 55 | ||
| @@ -57,7 +64,16 @@ mentions this in the echo area after running the command. For | |||
| 57 | example, if you type @kbd{M-x forward-word}, the message says that you | 64 | example, if you type @kbd{M-x forward-word}, the message says that you |
| 58 | can run the same command by typing @kbd{M-f}. You can turn off these | 65 | can run the same command by typing @kbd{M-f}. You can turn off these |
| 59 | messages by setting the variable @code{suggest-key-bindings} to | 66 | messages by setting the variable @code{suggest-key-bindings} to |
| 60 | @code{nil}. | 67 | @code{nil}. The value of @code{suggest-key-bindings} can also be a |
| 68 | number, in which case Emacs will show the binding for that many | ||
| 69 | seconds before removing it from display. The default behavior is to | ||
| 70 | display the binding for 2 seconds. | ||
| 71 | |||
| 72 | Commands that don't have key bindings, can still be invoked after | ||
| 73 | typing less than their full name at the @samp{M-x} prompt. Emacs | ||
| 74 | mentions such shorthands in the echo area if they are significantly | ||
| 75 | shorter than the full command name. The setting of | ||
| 76 | @code{suggest-key-bindings} affects these hints as well. | ||
| 61 | 77 | ||
| 62 | In this manual, when we speak of running a command by name, we often | 78 | In this manual, when we speak of running a command by name, we often |
| 63 | omit the @key{RET} that terminates the name. Thus we might say | 79 | omit the @key{RET} that terminates the name. Thus we might say |
| @@ -148,7 +148,6 @@ the `network-security-level' variable. | |||
| 148 | +++ | 148 | +++ |
| 149 | ** C-h l now also lists the commands that were run. | 149 | ** C-h l now also lists the commands that were run. |
| 150 | 150 | ||
| 151 | ** M-x suggests shorthands and ignores obsolete commands for completion. | ||
| 152 | ** x-select-enable-clipboard is renamed select-enable-clipboard. | 151 | ** x-select-enable-clipboard is renamed select-enable-clipboard. |
| 153 | x-select-enable-primary and renamed select-enable-primary. | 152 | x-select-enable-primary and renamed select-enable-primary. |
| 154 | Additionally they both now apply to all systems (OSX, GNUstep, Windows, you | 153 | Additionally they both now apply to all systems (OSX, GNUstep, Windows, you |
| @@ -316,6 +315,9 @@ at configure time. | |||
| 316 | 315 | ||
| 317 | * Editing Changes in Emacs 25.1 | 316 | * Editing Changes in Emacs 25.1 |
| 318 | 317 | ||
| 318 | +++ | ||
| 319 | ** M-x suggests shorthands and ignores obsolete commands for completion. | ||
| 320 | |||
| 319 | ** Successive single-char deletions are collapsed in the undo-log just like | 321 | ** Successive single-char deletions are collapsed in the undo-log just like |
| 320 | successive char insertions. | 322 | successive char insertions. |
| 321 | 323 | ||