aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorChong Yidong2008-03-28 19:04:58 +0000
committerChong Yidong2008-03-28 19:04:58 +0000
commit3afc838fd27a76c5b7b4bcbe64d32b4b8982689a (patch)
tree01a9ff7f9f489e64ed675a3d954bcebf924c2c70 /doc
parent9a1c224904f047f7dc213813f89d1cb2a3b99b8d (diff)
downloademacs-3afc838fd27a76c5b7b4bcbe64d32b4b8982689a.tar.gz
emacs-3afc838fd27a76c5b7b4bcbe64d32b4b8982689a.zip
(Quitting): Clarify effects of C-g.
Diffstat (limited to 'doc')
-rw-r--r--doc/emacs/trouble.texi21
1 files changed, 11 insertions, 10 deletions
diff --git a/doc/emacs/trouble.texi b/doc/emacs/trouble.texi
index 4ea53ee9b08..93cb246a352 100644
--- a/doc/emacs/trouble.texi
+++ b/doc/emacs/trouble.texi
@@ -44,15 +44,17 @@ and cancels the command that invoked the recursive edit.
44@cindex quitting 44@cindex quitting
45@kindex C-g 45@kindex C-g
46 Quitting with @kbd{C-g} is the way to get rid of a partially typed 46 Quitting with @kbd{C-g} is the way to get rid of a partially typed
47command, or a numeric argument that you don't want. It also stops a 47command, or a numeric argument that you don't want. Furthermore, if
48running command in the middle in a relatively safe way, so you can use 48you are in the middle of a command that is running, @kbd{C-g} stops
49it if you accidentally give a command which takes a long time. In 49the command in a relatively safe way. For example, if you quit out of
50particular, it is safe to quit out of a kill command; either your text 50a kill command that is taking a long time, either your text will
51will @emph{all} still be in the buffer, or it will @emph{all} be in 51@emph{all} still be in the buffer, or it will @emph{all} be in the
52the kill ring, or maybe both. Quitting an incremental search does 52kill ring, or maybe both. If the region is active, @kbd{C-g}
53special things, documented under searching; it may take two successive 53deactivates the mark, unless Transient Mark mode is off
54@kbd{C-g} characters to get out of a search (@pxref{Incremental 54(@pxref{Persistent Mark}). If you are in the middle of an incremental
55Search}). 55search, @kbd{C-g} does special things; it may take two successive
56@kbd{C-g} characters to get out of a search. @xref{Incremental
57Search}, for details.
56 58
57 On MS-DOS, the character @kbd{C-@key{BREAK}} serves as a quit character 59 On MS-DOS, the character @kbd{C-@key{BREAK}} serves as a quit character
58like @kbd{C-g}. The reason is that it is not feasible, on MS-DOS, to 60like @kbd{C-g}. The reason is that it is not feasible, on MS-DOS, to
@@ -66,7 +68,6 @@ with the user. By contrast, it @emph{is} feasible to recognize
66@xref{MS-DOS Keyboard}. 68@xref{MS-DOS Keyboard}.
67@end ifnottex 69@end ifnottex
68 70
69
70@findex keyboard-quit 71@findex keyboard-quit
71 @kbd{C-g} works by setting the variable @code{quit-flag} to @code{t} 72 @kbd{C-g} works by setting the variable @code{quit-flag} to @code{t}
72the instant @kbd{C-g} is typed; Emacs Lisp checks this variable 73the instant @kbd{C-g} is typed; Emacs Lisp checks this variable