diff options
| author | Chong Yidong | 2008-03-28 19:04:58 +0000 |
|---|---|---|
| committer | Chong Yidong | 2008-03-28 19:04:58 +0000 |
| commit | 3afc838fd27a76c5b7b4bcbe64d32b4b8982689a (patch) | |
| tree | 01a9ff7f9f489e64ed675a3d954bcebf924c2c70 /doc | |
| parent | 9a1c224904f047f7dc213813f89d1cb2a3b99b8d (diff) | |
| download | emacs-3afc838fd27a76c5b7b4bcbe64d32b4b8982689a.tar.gz emacs-3afc838fd27a76c5b7b4bcbe64d32b4b8982689a.zip | |
(Quitting): Clarify effects of C-g.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/emacs/trouble.texi | 21 |
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 |
| 47 | command, or a numeric argument that you don't want. It also stops a | 47 | command, or a numeric argument that you don't want. Furthermore, if |
| 48 | running command in the middle in a relatively safe way, so you can use | 48 | you are in the middle of a command that is running, @kbd{C-g} stops |
| 49 | it if you accidentally give a command which takes a long time. In | 49 | the command in a relatively safe way. For example, if you quit out of |
| 50 | particular, it is safe to quit out of a kill command; either your text | 50 | a kill command that is taking a long time, either your text will |
| 51 | will @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 |
| 52 | the kill ring, or maybe both. Quitting an incremental search does | 52 | kill ring, or maybe both. If the region is active, @kbd{C-g} |
| 53 | special things, documented under searching; it may take two successive | 53 | deactivates 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 |
| 55 | Search}). | 55 | search, @kbd{C-g} does special things; it may take two successive |
| 56 | @kbd{C-g} characters to get out of a search. @xref{Incremental | ||
| 57 | Search}, 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 |
| 58 | like @kbd{C-g}. The reason is that it is not feasible, on MS-DOS, to | 60 | like @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} |
| 72 | the instant @kbd{C-g} is typed; Emacs Lisp checks this variable | 73 | the instant @kbd{C-g} is typed; Emacs Lisp checks this variable |