aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2020-03-03 18:23:40 +0200
committerEli Zaretskii2020-03-03 18:23:40 +0200
commitd373647e8fba8893d9ff00aadf49b97313ee0f4e (patch)
treec680ec0ef0e7e50cbc1ed045158652375018ebe7
parent1ca6d15656b8ef11fe8ce5993a743c09e071c133 (diff)
downloademacs-d373647e8fba8893d9ff00aadf49b97313ee0f4e.tar.gz
emacs-d373647e8fba8893d9ff00aadf49b97313ee0f4e.zip
; * doc/emacs/mini.texi (Yes or No Prompts): Fix last change.
-rw-r--r--doc/emacs/mini.texi47
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,
817the prompt appears in the minibuffer, and you answer by typing either 817either @samp{y} or @samp{n}, which immediately exits the minibuffer
818@samp{y} or @samp{n}, which immediately delivers the response. For 818and delivers the response. For example, if you type @kbd{C-x C-w}
819example, 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
820buffer, and enter the name of an existing file, Emacs issues a prompt 820file, Emacs issues a prompt like this:
821like this:
822 821
823@smallexample 822@smallexample
824File ‘foo.el’ exists; overwrite? (y or n) 823File ‘foo.el’ exists; overwrite? (y or n)
825@end smallexample 824@end smallexample
826 825
827@noindent
828This query does actually use the minibuffer, so the usual
829minibuffer editing commands can be used. You can perform
830window scrolling operations while the query is active: @kbd{C-l}
831recenters 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
834window; 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
840giving the wrong answer would have serious consequences; it uses the 828the wrong answer would have serious consequences; it thus features a
841minibuffer, and features a prompt ending with @samp{(yes or no)}. For 829longer prompt ending with @samp{(yes or no)}. For example, if you
842example, if you invoke @kbd{C-x k} (@code{kill-buffer}) on a 830invoke @kbd{C-x k} (@code{kill-buffer}) on a file-visiting buffer with
843file-visiting buffer with unsaved changes, Emacs activates the 831unsaved changes, Emacs activates the minibuffer with a prompt like
844minibuffer with a prompt like this: 832this:
845 833
846@smallexample 834@smallexample
847Buffer foo.el modified; kill anyway? (yes or no) 835Buffer 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
851To answer, you must type @samp{yes} or @samp{no} into the minibuffer, 839To answer, you must type @samp{yes} or @samp{no} into the minibuffer,
852followed by @key{RET}. The minibuffer behaves as described in the 840followed by @key{RET}.
853previous sections; you can switch to another window with @kbd{C-x o}, 841
854use the history commands @kbd{M-p} and @kbd{M-n}, etc. Type @kbd{C-g} 842With both types of yes-or-no query the minibuffer behaves as described
855to quit the minibuffer and the querying command. 843in the previous sections; you can recenter the selected window with
844@kbd{C-l}, scroll that window (@kbd{C-v} or @kbd{PageDown} scrolls
845forward, @kbd{M-v} or @kbd{PageUp} scrolls backward), switch to
846another window with @kbd{C-x o}, use the history commands @kbd{M-p}
847and @kbd{M-n}, etc. Type @kbd{C-g} to dismiss the query, and quit the
848minibuffer and the querying command (@pxref{Quitting}).