diff options
| author | Eli Zaretskii | 2020-03-03 18:23:40 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2020-03-03 18:23:40 +0200 |
| commit | d373647e8fba8893d9ff00aadf49b97313ee0f4e (patch) | |
| tree | c680ec0ef0e7e50cbc1ed045158652375018ebe7 | |
| parent | 1ca6d15656b8ef11fe8ce5993a743c09e071c133 (diff) | |
| download | emacs-d373647e8fba8893d9ff00aadf49b97313ee0f4e.tar.gz emacs-d373647e8fba8893d9ff00aadf49b97313ee0f4e.zip | |
; * doc/emacs/mini.texi (Yes or No Prompts): Fix last change.
| -rw-r--r-- | doc/emacs/mini.texi | 47 |
1 files changed, 20 insertions, 27 deletions
diff --git a/doc/emacs/mini.texi b/doc/emacs/mini.texi index 4aa02321b67..55e41e38cb7 100644 --- a/doc/emacs/mini.texi +++ b/doc/emacs/mini.texi | |||
| @@ -813,35 +813,23 @@ varieties. | |||
| 813 | 813 | ||
| 814 | @cindex y or n prompt | 814 | @cindex y or n prompt |
| 815 | For the first type of yes-or-no query, the prompt ends with | 815 | For the first type of yes-or-no query, the prompt ends with |
| 816 | @samp{(y or n)}. Such a query does actually use the minibuffer; | 816 | @w{@samp{(y or n)}}. You answer the query by typing a single key, |
| 817 | the prompt appears in the minibuffer, and you answer by typing either | 817 | either @samp{y} or @samp{n}, which immediately exits the minibuffer |
| 818 | @samp{y} or @samp{n}, which immediately delivers the response. For | 818 | and delivers the response. For example, if you type @kbd{C-x C-w} |
| 819 | example, if you type @kbd{C-x C-w} (@kbd{write-file}) to save a | 819 | (@kbd{write-file}) to save a buffer, and enter the name of an existing |
| 820 | buffer, and enter the name of an existing file, Emacs issues a prompt | 820 | file, Emacs issues a prompt like this: |
| 821 | like this: | ||
| 822 | 821 | ||
| 823 | @smallexample | 822 | @smallexample |
| 824 | File ‘foo.el’ exists; overwrite? (y or n) | 823 | File ‘foo.el’ exists; overwrite? (y or n) |
| 825 | @end smallexample | 824 | @end smallexample |
| 826 | 825 | ||
| 827 | @noindent | ||
| 828 | This query does actually use the minibuffer, so the usual | ||
| 829 | minibuffer editing commands can be used. You can perform | ||
| 830 | window scrolling operations while the query is active: @kbd{C-l} | ||
| 831 | recenters the selected window; @kbd{C-v} (or @key{PageDown}, or | ||
| 832 | @key{next}) scrolls forward; @kbd{M-v} (or @key{PageUp}, or | ||
| 833 | @key{prior}) scrolls backward; @kbd{C-M-v} scrolls forward in the next | ||
| 834 | window; and @kbd{C-M-S-v} scrolls backward in the next window. Typing | ||
| 835 | @kbd{C-g} dismisses the query, and quits the command that issued it | ||
| 836 | (@pxref{Quitting}). | ||
| 837 | |||
| 838 | @cindex yes or no prompt | 826 | @cindex yes or no prompt |
| 839 | The second type of yes-or-no query is typically employed if | 827 | The second type of yes-or-no query is typically employed if giving |
| 840 | giving the wrong answer would have serious consequences; it uses the | 828 | the wrong answer would have serious consequences; it thus features a |
| 841 | minibuffer, and features a prompt ending with @samp{(yes or no)}. For | 829 | longer prompt ending with @samp{(yes or no)}. For example, if you |
| 842 | example, if you invoke @kbd{C-x k} (@code{kill-buffer}) on a | 830 | invoke @kbd{C-x k} (@code{kill-buffer}) on a file-visiting buffer with |
| 843 | file-visiting buffer with unsaved changes, Emacs activates the | 831 | unsaved changes, Emacs activates the minibuffer with a prompt like |
| 844 | minibuffer with a prompt like this: | 832 | this: |
| 845 | 833 | ||
| 846 | @smallexample | 834 | @smallexample |
| 847 | Buffer foo.el modified; kill anyway? (yes or no) | 835 | Buffer foo.el modified; kill anyway? (yes or no) |
| @@ -849,7 +837,12 @@ Buffer foo.el modified; kill anyway? (yes or no) | |||
| 849 | 837 | ||
| 850 | @noindent | 838 | @noindent |
| 851 | To answer, you must type @samp{yes} or @samp{no} into the minibuffer, | 839 | To answer, you must type @samp{yes} or @samp{no} into the minibuffer, |
| 852 | followed by @key{RET}. The minibuffer behaves as described in the | 840 | followed by @key{RET}. |
| 853 | previous sections; you can switch to another window with @kbd{C-x o}, | 841 | |
| 854 | use the history commands @kbd{M-p} and @kbd{M-n}, etc. Type @kbd{C-g} | 842 | With both types of yes-or-no query the minibuffer behaves as described |
| 855 | to quit the minibuffer and the querying command. | 843 | in the previous sections; you can recenter the selected window with |
| 844 | @kbd{C-l}, scroll that window (@kbd{C-v} or @kbd{PageDown} scrolls | ||
| 845 | forward, @kbd{M-v} or @kbd{PageUp} scrolls backward), switch to | ||
| 846 | another window with @kbd{C-x o}, use the history commands @kbd{M-p} | ||
| 847 | and @kbd{M-n}, etc. Type @kbd{C-g} to dismiss the query, and quit the | ||
| 848 | minibuffer and the querying command (@pxref{Quitting}). | ||