diff options
| author | Lars Ingebrigtsen | 2016-02-05 12:31:17 +1100 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2016-02-05 12:31:34 +1100 |
| commit | b3a28d088ff060df7690ffeaa04ac97f5c072e81 (patch) | |
| tree | 1e8d1f2bb50a3c7c03654f1d64360c6f0113a77b /doc/lispref | |
| parent | 605f9019b47764d5b46544e525fa46b375951b35 (diff) | |
| download | emacs-b3a28d088ff060df7690ffeaa04ac97f5c072e81.tar.gz emacs-b3a28d088ff060df7690ffeaa04ac97f5c072e81.zip | |
Make the read-multiple-choice prompt a bit prettier
* doc/lispref/commands.texi (Reading One Event): Mention
read-multiple-choice-face.
* lisp/subr.el (read-multiple-choice): Make the prompting a bit
prettier.
Diffstat (limited to 'doc/lispref')
| -rw-r--r-- | doc/lispref/commands.texi | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/doc/lispref/commands.texi b/doc/lispref/commands.texi index 1964ec8e3fe..3ea6ea045eb 100644 --- a/doc/lispref/commands.texi +++ b/doc/lispref/commands.texi | |||
| @@ -2618,7 +2618,7 @@ then continues to wait for a valid input character, or keyboard-quit. | |||
| 2618 | @end defun | 2618 | @end defun |
| 2619 | 2619 | ||
| 2620 | @defun read-multiple-choice prompt choices | 2620 | @defun read-multiple-choice prompt choices |
| 2621 | Ask user a multiple choice question. @var{prompt} should be a string | 2621 | Ask user a multiple choice question. @var{prompt} should be a string |
| 2622 | that will be displayed as the prompt. | 2622 | that will be displayed as the prompt. |
| 2623 | 2623 | ||
| 2624 | @var{choices} is an alist where the first element in each entry is a | 2624 | @var{choices} is an alist where the first element in each entry is a |
| @@ -2636,6 +2636,10 @@ The return value is the matching value from @var{choices}. | |||
| 2636 | (?s "session only" "Accept this certificate this session only.") | 2636 | (?s "session only" "Accept this certificate this session only.") |
| 2637 | (?n "no" "Refuse to use this certificate, and close the connection."))) | 2637 | (?n "no" "Refuse to use this certificate, and close the connection."))) |
| 2638 | @end lisp | 2638 | @end lisp |
| 2639 | |||
| 2640 | The @code{read-multiple-choice-face} face is used to highlight the | ||
| 2641 | matching characters in the name string on graphical terminals. | ||
| 2642 | |||
| 2639 | @end defun | 2643 | @end defun |
| 2640 | 2644 | ||
| 2641 | @node Event Mod | 2645 | @node Event Mod |