diff options
| author | Lars Ingebrigtsen | 2022-09-10 08:13:21 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2022-09-10 08:13:21 +0200 |
| commit | 3062baf609baf49ea3742f224d522ca8d793cdb5 (patch) | |
| tree | b278d11aa41d144d4e061eb3a80159e60a74cfdf /doc | |
| parent | 0fd24ebc957ef4f64676a74e32959337f4f23610 (diff) | |
| download | emacs-3062baf609baf49ea3742f224d522ca8d793cdb5.tar.gz emacs-3062baf609baf49ea3742f224d522ca8d793cdb5.zip | |
Make `format-prompt' use `substitute-command-keys'
* doc/lispref/minibuf.texi (Text from Minibuffer): Mention it.
* lisp/minibuffer.el (format-prompt): Run through
`substitute-command-keys' (bug#51040).
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/lispref/minibuf.texi | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/lispref/minibuf.texi b/doc/lispref/minibuf.texi index f2adc01c8f7..089ae41f32e 100644 --- a/doc/lispref/minibuf.texi +++ b/doc/lispref/minibuf.texi | |||
| @@ -490,6 +490,9 @@ If @var{default} is @code{nil}, there is no default value, and | |||
| 490 | therefore no ``default value'' string is included in the result value. | 490 | therefore no ``default value'' string is included in the result value. |
| 491 | If @var{default} is a non-@code{nil} list, the first element of the | 491 | If @var{default} is a non-@code{nil} list, the first element of the |
| 492 | list is used in the prompt. | 492 | list is used in the prompt. |
| 493 | |||
| 494 | Both @var{prompt} and @code{minibuffer-default-prompt-format} are run | ||
| 495 | through @code{substitute-command-keys} (@pxref{Keys in Documentation}). | ||
| 493 | @end defun | 496 | @end defun |
| 494 | 497 | ||
| 495 | @defvar read-minibuffer-restore-windows | 498 | @defvar read-minibuffer-restore-windows |