diff options
| author | Lars Ingebrigtsen | 2019-10-01 15:01:52 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2019-10-01 15:01:57 +0200 |
| commit | 4861328f2a0b95adfb36885db645f5a87ddda7ea (patch) | |
| tree | 337bee0ef64629992dd92daae8e39abf91c59f13 /doc/lispref | |
| parent | cdc440f0b62362fd38e91e2099919d57fef06436 (diff) | |
| download | emacs-4861328f2a0b95adfb36885db645f5a87ddda7ea.tar.gz emacs-4861328f2a0b95adfb36885db645f5a87ddda7ea.zip | |
Allow 'M-<' in the minibuffer to behave more logically
* doc/lispref/minibuf.texi (Completion Commands)
(Text from Minibuffer): Document it.
* lisp/minibuffer.el (minibuffer-beginning-of-buffer): New command
(bug#3447).
(map): Bind it.
Diffstat (limited to 'doc/lispref')
| -rw-r--r-- | doc/lispref/minibuf.texi | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/lispref/minibuf.texi b/doc/lispref/minibuf.texi index cfea336a9e5..a9d6e83cf85 100644 --- a/doc/lispref/minibuf.texi +++ b/doc/lispref/minibuf.texi | |||
| @@ -333,6 +333,9 @@ default, it makes the following bindings: | |||
| 333 | @item @key{RET} | 333 | @item @key{RET} |
| 334 | @code{exit-minibuffer} | 334 | @code{exit-minibuffer} |
| 335 | 335 | ||
| 336 | @item @key{M-<} | ||
| 337 | @code{minibuffer-beginning-of-buffer} | ||
| 338 | |||
| 336 | @item @kbd{C-g} | 339 | @item @kbd{C-g} |
| 337 | @code{abort-recursive-edit} | 340 | @code{abort-recursive-edit} |
| 338 | 341 | ||
| @@ -1248,6 +1251,14 @@ combines this keymap with either @code{minibuffer-local-completion-map} | |||
| 1248 | or @code{minibuffer-local-must-match-map}. | 1251 | or @code{minibuffer-local-must-match-map}. |
| 1249 | @end defvar | 1252 | @end defvar |
| 1250 | 1253 | ||
| 1254 | @defvar minibuffer-beginning-of-buffer-movement | ||
| 1255 | If non-@code{nil}, the @kbd{M-<} command will move to the end of the | ||
| 1256 | prompt if point is after the end of the prompt. If point is at or | ||
| 1257 | before the end of the prompt, move to the start of the buffer. If | ||
| 1258 | this variable is @code{nil}, the command behaves like | ||
| 1259 | @code{beginning-of-buffer}. | ||
| 1260 | @end defvar | ||
| 1261 | |||
| 1251 | 1262 | ||
| 1252 | @node High-Level Completion | 1263 | @node High-Level Completion |
| 1253 | @subsection High-Level Completion Functions | 1264 | @subsection High-Level Completion Functions |