Mercurial > emacs
comparison man/killing.texi @ 68510:80b042d12556
Minor clarifications.
Refer to "graphical" terminals, rather than window systems.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Tue, 31 Jan 2006 18:24:21 +0000 |
parents | da161b813076 |
children | dc2d5a6655a3 7432ca837c8d |
comparison
equal
deleted
inserted
replaced
68509:ab50d02721ae | 68510:80b042d12556 |
---|---|
82 Delete next character (@code{delete-char}). If your keyboard has a | 82 Delete next character (@code{delete-char}). If your keyboard has a |
83 @key{DELETE} function key (usually located in the edit keypad), Emacs | 83 @key{DELETE} function key (usually located in the edit keypad), Emacs |
84 binds it to @code{delete-char} as well. | 84 binds it to @code{delete-char} as well. |
85 @item @key{DEL} | 85 @item @key{DEL} |
86 @itemx @key{BS} | 86 @itemx @key{BS} |
87 Delete previous character (@code{delete-backward-char}). Some keyboards | 87 Delete previous character (@code{delete-backward-char}). |
88 refer to this key as a ``backspace key'' and label it with a left arrow. | |
89 @item M-\ | 88 @item M-\ |
90 Delete spaces and tabs around point (@code{delete-horizontal-space}). | 89 Delete spaces and tabs around point (@code{delete-horizontal-space}). |
91 @item M-@key{SPC} | 90 @item M-@key{SPC} |
92 Delete spaces and tabs around point, leaving one space | 91 Delete spaces and tabs around point, leaving one space |
93 (@code{just-one-space}). | 92 (@code{just-one-space}). |
110 kill instead, since they can erase more than one character this way. | 109 kill instead, since they can erase more than one character this way. |
111 | 110 |
112 @kindex BACKSPACE | 111 @kindex BACKSPACE |
113 @kindex BS | 112 @kindex BS |
114 @kindex DELETE | 113 @kindex DELETE |
115 Every keyboard has a large key, labeled @key{DEL}, @key{BACKSPACE}, | 114 Every keyboard has a large key which is a short distance above the |
116 @key{BS} or @key{DELETE}, which is a short distance above the | |
117 @key{RET} or @key{ENTER} key and is normally used for erasing what you | 115 @key{RET} or @key{ENTER} key and is normally used for erasing what you |
118 have typed. Regardless of the actual name on the key, in Emacs it is | 116 have typed. It may be labeled @key{DEL}, @key{BACKSPACE}, @key{BS}, |
119 equivalent to @key{DEL}---or it should be. | 117 @key{DELETE}, or even with a left arrow. Regardless of the label on |
118 the key, in Emacs it called @key{DEL}, and it should delete one | |
119 character backwards. | |
120 | 120 |
121 Many keyboards (including standard PC keyboards) have a | 121 Many keyboards (including standard PC keyboards) have a |
122 @key{BACKSPACE} key a short ways above @key{RET} or @key{ENTER}, and a | 122 @key{BACKSPACE} key a short ways above @key{RET} or @key{ENTER}, and a |
123 @key{DELETE} key elsewhere. In that case, the @key{BACKSPACE} key is | 123 @key{DELETE} key elsewhere. In that case, the @key{BACKSPACE} key is |
124 @key{DEL}, and the @key{DELETE} key is equivalent to @kbd{C-d}---or it | 124 @key{DEL}, and the @key{DELETE} key is equivalent to @kbd{C-d}---or it |
249 and @kbd{M-d} (@pxref{Words}); balanced expressions, with @kbd{C-M-k} | 249 and @kbd{M-d} (@pxref{Words}); balanced expressions, with @kbd{C-M-k} |
250 (@pxref{Expressions}); and sentences, with @kbd{C-x @key{DEL}} and | 250 (@pxref{Expressions}); and sentences, with @kbd{C-x @key{DEL}} and |
251 @kbd{M-k} (@pxref{Sentences}).@refill | 251 @kbd{M-k} (@pxref{Sentences}).@refill |
252 | 252 |
253 @node Graphical Kill | 253 @node Graphical Kill |
254 @subsection Killing on Graphical Terminals | 254 @subsection Killing on Graphical Displays |
255 | 255 |
256 On multi-window terminals, the most recent kill done in Emacs is | 256 On graphical displays with window systems, the most recent kill done |
257 also the primary selection, if it is more recent than any selection | 257 in Emacs is also the primary selection, if it is more recent than any |
258 you made in another program. This means that the paste commands of | 258 selection you made in another program. This means that the paste |
259 other applications with separate windows copy the text that you killed | 259 commands of other window-based applications copy the text that you |
260 in Emacs. In addition, Emacs yank commands treat other applications' | 260 killed in Emacs. In addition, Emacs yank commands treat other |
261 selections as part of the kill ring, so you can yank them into Emacs. | 261 applications' selections as part of the kill ring, so you can yank |
262 them into Emacs. | |
262 | 263 |
263 @cindex Delete Selection mode | 264 @cindex Delete Selection mode |
264 @cindex mode, Delete Selection | 265 @cindex mode, Delete Selection |
265 @findex delete-selection-mode | 266 @findex delete-selection-mode |
266 Many window systems follow the convention that insertion while text | 267 Many window systems follow the convention that insertion while text |
267 is selected deletes the selected text. You can make Emacs behave this | 268 is selected deletes the selected text. You can make Emacs behave this |
268 way by enabling Delete Selection mode, with @kbd{M-x | 269 way by enabling Delete Selection mode---with @kbd{M-x |
269 delete-selection-mode}, or using Custom. Another effect of this mode | 270 delete-selection-mode} or using Custom. Another effect of this mode |
270 is that @key{DEL}, @kbd{C-d} and some other keys, when a selection | 271 is that @key{DEL}, @kbd{C-d} and some other keys, when a selection |
271 exists, will kill the whole selection. It also enables Transient Mark | 272 exists, will kill the whole selection. It also enables Transient Mark |
272 mode (@pxref{Transient Mark}). | 273 mode (@pxref{Transient Mark}). |
273 | 274 |
274 @node Yanking, Accumulating Text, Killing, Top | 275 @node Yanking, Accumulating Text, Killing, Top |
295 (@code{kill-ring-save}). Some systems call this ``copying''. | 296 (@code{kill-ring-save}). Some systems call this ``copying''. |
296 @item C-M-w | 297 @item C-M-w |
297 Append next kill to last batch of killed text (@code{append-next-kill}). | 298 Append next kill to last batch of killed text (@code{append-next-kill}). |
298 @end table | 299 @end table |
299 | 300 |
300 On window systems, if there is a current selection in some other | 301 On graphical displays with window systems, if there is a current |
301 application, and you selected it more recently than you killed any | 302 selection in some other application, and you selected it more recently |
302 text in Emacs, @kbd{C-y} copies the selection instead of text | 303 than you killed any text in Emacs, @kbd{C-y} copies the selection |
303 killed within Emacs. | 304 instead of text killed within Emacs. |
304 | 305 |
305 @menu | 306 @menu |
306 * Kill Ring:: Where killed text is stored. Basic yanking. | 307 * Kill Ring:: Where killed text is stored. Basic yanking. |
307 * Appending Kills:: Several kills in a row all yank together. | 308 * Appending Kills:: Several kills in a row all yank together. |
308 * Earlier Kills:: Yanking something killed some time ago. | 309 * Earlier Kills:: Yanking something killed some time ago. |
599 | 600 |
600 Note that ``killing'' a rectangle is not killing in the usual sense; the | 601 Note that ``killing'' a rectangle is not killing in the usual sense; the |
601 rectangle is not stored in the kill ring, but in a special place that | 602 rectangle is not stored in the kill ring, but in a special place that |
602 can only record the most recent rectangle killed. This is because yanking | 603 can only record the most recent rectangle killed. This is because yanking |
603 a rectangle is so different from yanking linear text that different yank | 604 a rectangle is so different from yanking linear text that different yank |
604 commands have to be used and yank-popping is hard to make sense of. | 605 commands have to be used. It is hard to define yank-popping for rectangles, |
606 so we do not try. | |
605 | 607 |
606 @kindex C-x r y | 608 @kindex C-x r y |
607 @findex yank-rectangle | 609 @findex yank-rectangle |
608 To yank the last killed rectangle, type @kbd{C-x r y} | 610 To yank the last killed rectangle, type @kbd{C-x r y} |
609 (@code{yank-rectangle}). Yanking a rectangle is the opposite of killing | 611 (@code{yank-rectangle}). Yanking a rectangle is the opposite of killing |
663 compatible with the Common User Access (CUA) system used in many other | 665 compatible with the Common User Access (CUA) system used in many other |
664 applications. @kbd{C-x} means cut (kill), @kbd{C-c} copy, @kbd{C-v} | 666 applications. @kbd{C-x} means cut (kill), @kbd{C-c} copy, @kbd{C-v} |
665 paste (yank), and @kbd{C-z} undo. Standard Emacs commands like | 667 paste (yank), and @kbd{C-z} undo. Standard Emacs commands like |
666 @kbd{C-x C-c} still work, because @kbd{C-x} and @kbd{C-c} only take | 668 @kbd{C-x C-c} still work, because @kbd{C-x} and @kbd{C-c} only take |
667 effect when the mark is active (and the region is highlighted). | 669 effect when the mark is active (and the region is highlighted). |
668 However, if you don't want these bindings at all, set | 670 However, if you don't want to override these bindings Emacs at all, set |
669 @code{cua-enable-cua-keys} to @code{nil}. | 671 @code{cua-enable-cua-keys} to @code{nil}. |
670 | 672 |
671 In CUA mode, using @kbd{Shift} together with the movement keys | 673 In CUA mode, using @kbd{Shift} together with the movement keys |
672 activates and highlights the region over which they move. The | 674 activates and highlights the region over which they move. The |
673 standard (unshifted) movement keys deactivate the mark, and typed text | 675 standard (unshifted) movement keys deactivate the mark, and typed text |
674 replaces the active region as in Delete-Selection mode | 676 replaces the active region as in Delete-Selection mode |
675 (@pxref{Graphical Kill}). | 677 (@pxref{Graphical Kill}). |
676 | 678 |
677 To run a command like @kbd{C-x C-f} while the mark is active, use | 679 To enter an Emacs command like @kbd{C-x C-f} while the mark is |
678 one of the following methods: either hold @kbd{Shift} together with | 680 active, use one of the following methods: either hold @kbd{Shift} |
679 the prefix key, e.g. @kbd{S-C-x C-f}, or quickly type the prefix key | 681 together with the prefix key, e.g. @kbd{S-C-x C-f}, or quickly type |
680 twice, e.g. @kbd{C-x C-x C-f}. | 682 the prefix key twice, e.g. @kbd{C-x C-x C-f}. |
681 | 683 |
682 @cindex rectangle highlighting | 684 @cindex rectangle highlighting |
683 CUA mode provides enhanced rectangle support with visible | 685 CUA mode provides enhanced rectangle support with visible |
684 rectangle highlighting. Use @kbd{C-RET} to start a rectangle, | 686 rectangle highlighting. Use @kbd{C-RET} to start a rectangle, |
685 extend it using the movement commands, and cut or copy it using | 687 extend it using the movement commands, and cut or copy it using |