aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorLars Ingebrigtsen2016-05-01 16:53:38 +0200
committerLars Ingebrigtsen2016-05-01 16:53:38 +0200
commitbf0b6fab032bd35fae36f7371b7cd1fe3bfaaac7 (patch)
tree4bbed3f5de389fea0f5f66a78a100d623accee2d /doc
parent8cfd9ba1a97a02157c6b730cca9d61b0fb7de53b (diff)
downloademacs-bf0b6fab032bd35fae36f7371b7cd1fe3bfaaac7.tar.gz
emacs-bf0b6fab032bd35fae36f7371b7cd1fe3bfaaac7.zip
Allow minibuffer prompts to use faces
* doc/lispref/minibuf.texi (Text from Minibuffer): Document `minibuffer-prompt-properties' and explain how faces work in the minibuffer prompt. * src/minibuf.c (read_minibuf): If `face' is in `minibuffer-prompt-properties', apply it to the end of the face list to allow users to have their own faces on the prompts (bug#16136).
Diffstat (limited to 'doc')
-rw-r--r--doc/lispref/minibuf.texi17
1 files changed, 17 insertions, 0 deletions
diff --git a/doc/lispref/minibuf.texi b/doc/lispref/minibuf.texi
index 6f41090ebea..88662aba08a 100644
--- a/doc/lispref/minibuf.texi
+++ b/doc/lispref/minibuf.texi
@@ -170,6 +170,23 @@ non-@code{nil}, then the string that is returned includes whatever text
170properties were present in the minibuffer. Otherwise all the text 170properties were present in the minibuffer. Otherwise all the text
171properties are stripped when the value is returned. 171properties are stripped when the value is returned.
172 172
173@cvindex minibuffer-prompt-properties
174The text properties in @code{minibuffer-prompt-properties} are applied
175to the prompt. By default, this property list defines a face to use
176for the prompt. This face, if present, is applied to the end of the
177face list and merged before display.
178
179If the user wants to completely control the look of the prompt, the
180most convenient way to do that is to specify the @code{default} face
181at the end of all face lists. For instance:
182
183@lisp
184(read-from-minibuffer
185 (concat
186 (propertize "Bold" 'face '(bold default))
187 (propertize " and normal: " 'face '(default))))
188@end lisp
189
173If the argument @var{inherit-input-method} is non-@code{nil}, then the 190If the argument @var{inherit-input-method} is non-@code{nil}, then the
174minibuffer inherits the current input method (@pxref{Input Methods}) and 191minibuffer inherits the current input method (@pxref{Input Methods}) and
175the setting of @code{enable-multibyte-characters} (@pxref{Text 192the setting of @code{enable-multibyte-characters} (@pxref{Text