diff options
| author | Eli Zaretskii | 2020-02-12 21:39:44 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2020-02-12 21:39:44 +0200 |
| commit | 027da652a4fc643a086a880aec30618b2bccb487 (patch) | |
| tree | e4c94bb3ad04b794e1873e16b8f357de3ee4a77f /doc/lispref | |
| parent | 5a21aaff468ec3f0337117707cda4254cbef8de7 (diff) | |
| download | emacs-027da652a4fc643a086a880aec30618b2bccb487.tar.gz emacs-027da652a4fc643a086a880aec30618b2bccb487.zip | |
Fix display of minibuffer prompt in ido.el
* lisp/minibuffer.el (minibuffer--message-overlay-pos): New
function.
(set-minibuffer-message): Use it to determine where to show the
overlay with the temporary message.
* lisp/ido.el (ido-exhibit): Revert "Render Ido suggestions using
an overlay"; this restores the original code which inserted the
match-status information into the minibuffer, instead of
displaying it in an overlay with an after-string. Put the special
'minibuffer-message' text property at the beginning of the
inserted text. (Bug#39379)
* etc/NEWS:
* doc/lispref/display.texi (Displaying Messages):
* doc/lispref/text.texi (Special Properties): Document the
'minibuffer-message' text property and its effect.
Diffstat (limited to 'doc/lispref')
| -rw-r--r-- | doc/lispref/display.texi | 9 | ||||
| -rw-r--r-- | doc/lispref/text.texi | 10 |
2 files changed, 16 insertions, 3 deletions
diff --git a/doc/lispref/display.texi b/doc/lispref/display.texi index e4980fe4c36..2b25d6023cd 100644 --- a/doc/lispref/display.texi +++ b/doc/lispref/display.texi | |||
| @@ -319,7 +319,10 @@ the echo area. See also @code{clear-message-function} that can be | |||
| 319 | used to clear the message displayed by this function. | 319 | used to clear the message displayed by this function. |
| 320 | 320 | ||
| 321 | The default value is the function that displays the message at the end | 321 | The default value is the function that displays the message at the end |
| 322 | of the minibuffer when the minibuffer is active. | 322 | of the minibuffer when the minibuffer is active. However, if the text |
| 323 | shown in the active minibuffer has the @code{minibuffer-message} text | ||
| 324 | property (@pxref{Special Properties}) on some character, the message | ||
| 325 | will be displayed before the first character having that property. | ||
| 323 | @end defvar | 326 | @end defvar |
| 324 | 327 | ||
| 325 | @defvar clear-message-function | 328 | @defvar clear-message-function |
| @@ -332,8 +335,8 @@ after displaying an echo-area message. The function is expected to | |||
| 332 | clear the message displayed by its counterpart function specified by | 335 | clear the message displayed by its counterpart function specified by |
| 333 | @code{set-message-function}. | 336 | @code{set-message-function}. |
| 334 | 337 | ||
| 335 | The default value is the function that clears the message displayed at | 338 | The default value is the function that clears the message displayed in |
| 336 | the end of the minibuffer when the minibuffer is active. | 339 | an active minibuffer. |
| 337 | @end defvar | 340 | @end defvar |
| 338 | 341 | ||
| 339 | @defvar inhibit-message | 342 | @defvar inhibit-message |
diff --git a/doc/lispref/text.texi b/doc/lispref/text.texi index 527057eed59..f027cdf8ede 100644 --- a/doc/lispref/text.texi +++ b/doc/lispref/text.texi | |||
| @@ -3741,6 +3741,16 @@ single glyph composed from components. But the value of the property | |||
| 3741 | itself is completely internal to Emacs and should not be manipulated | 3741 | itself is completely internal to Emacs and should not be manipulated |
| 3742 | directly by, for instance, @code{put-text-property}. | 3742 | directly by, for instance, @code{put-text-property}. |
| 3743 | 3743 | ||
| 3744 | @item minibuffer-message | ||
| 3745 | @kindex minibuffer-message @r{(text property)} | ||
| 3746 | This text property tells where to display temporary messages in an | ||
| 3747 | active minibuffer. Specifically, the first character of the | ||
| 3748 | minibuffer text which has this property will have the temporary | ||
| 3749 | message displayed before it. The default is to display temporary | ||
| 3750 | messages at the end of the minibuffer text. This text property is | ||
| 3751 | used by the function that is the default value of | ||
| 3752 | @code{set-message-function} (@pxref{Displaying Messages}). | ||
| 3753 | |||
| 3744 | @end table | 3754 | @end table |
| 3745 | 3755 | ||
| 3746 | @defvar inhibit-point-motion-hooks | 3756 | @defvar inhibit-point-motion-hooks |