comparison man/picture.texi @ 88155:d7ddb3e565de

sync with trunk
author Henrik Enberg <henrik.enberg@telia.com>
date Mon, 16 Jan 2006 00:03:54 +0000
parents 23f63206a867
children
comparison
equal deleted inserted replaced
88154:8ce476d3ba36 88155:d7ddb3e565de
1 @c This is part of the Emacs manual. 1 @c This is part of the Emacs manual.
2 @c Copyright (C) 1985, 86, 87, 93, 94, 95, 1997 Free Software Foundation, Inc. 2 @c Copyright (C) 1985, 1986, 1987, 1993, 1994, 1995, 1997, 2002, 2003,
3 @c 2004, 2005 Free Software Foundation, Inc.
3 @c See file emacs.texi for copying conditions. 4 @c See file emacs.texi for copying conditions.
4 @node Picture, Sending Mail, Abbrevs, Top 5 @node Picture, Sending Mail, Abbrevs, Top
5 @chapter Editing Pictures 6 @chapter Editing Pictures
6 @cindex pictures 7 @cindex pictures
7 @cindex making pictures out of text characters 8 @cindex making pictures out of text characters
42 and so on, but all the picture mode commands handle numeric arguments as 43 and so on, but all the picture mode commands handle numeric arguments as
43 their normal equivalents do. 44 their normal equivalents do.
44 45
45 @vindex picture-mode-hook 46 @vindex picture-mode-hook
46 Turning on Picture mode runs the hook @code{picture-mode-hook} 47 Turning on Picture mode runs the hook @code{picture-mode-hook}
47 (@pxref{Hooks}). 48 (@pxref{Hooks}). Additional extensions to Picture mode can be found
49 in @file{artist.el}.
48 50
49 @menu 51 @menu
50 * Basic Picture:: Basic concepts and simple commands of Picture Mode. 52 * Basic Picture:: Basic concepts and simple commands of Picture Mode.
51 * Insert in Picture:: Controlling direction of cursor motion 53 * Insert in Picture:: Controlling direction of cursor motion
52 after "self-inserting" characters. 54 after "self-inserting" characters.
87 line. 89 line.
88 90
89 @findex picture-backward-clear-column 91 @findex picture-backward-clear-column
90 @findex picture-clear-column 92 @findex picture-clear-column
91 @findex picture-clear-line 93 @findex picture-clear-line
92 Picture mode provides erasure instead of deletion and killing of 94 In Picture mode, the commands that normally delete or kill text,
93 text. @key{DEL} (@code{picture-backward-clear-column}) replaces the 95 instead erase text (replacing it with spaces). @key{DEL}
94 preceding character with a space rather than removing it; this moves 96 (@code{picture-backward-clear-column}) replaces the preceding
95 point backwards. @kbd{C-d} (@code{picture-clear-column}) replaces the 97 character with a space rather than removing it; this moves point
96 next character or characters with spaces, but does not move point. (If 98 backwards. @kbd{C-d} (@code{picture-clear-column}) replaces the next
97 you want to clear characters to spaces and move forward over them, use 99 character or characters with spaces, but does not move point. (If you
100 want to clear characters to spaces and move forward over them, use
98 @key{SPC}.) @kbd{C-k} (@code{picture-clear-line}) really kills the 101 @key{SPC}.) @kbd{C-k} (@code{picture-clear-line}) really kills the
99 contents of lines, but does not delete the newlines from the 102 contents of lines, but does not delete the newlines from the buffer.
100 buffer.
101 103
102 @findex picture-open-line 104 @findex picture-open-line
103 To do actual insertion, you must use special commands. @kbd{C-o} 105 To do actual insertion, you must use special commands. @kbd{C-o}
104 (@code{picture-open-line}) creates a blank line after the current line; 106 (@code{picture-open-line}) creates a blank line after the current
105 it never splits a line. @kbd{C-M-o} (@code{split-line}) makes sense in 107 line; it never splits a line. @kbd{C-M-o} (@code{split-line}) makes
106 Picture mode, so it is not changed. @kbd{C-j} 108 sense in Picture mode, so it is not changed. @kbd{C-j}
107 (@code{picture-duplicate-line}) inserts below the current line another 109 (@code{picture-duplicate-line}) inserts another line with the same
108 line with the same contents.@refill 110 contents below the current line.
109 111
110 @kindex C-c C-d @r{(Picture mode)} 112 @kindex C-c C-d @r{(Picture mode)}
111 To do actual deletion in Picture mode, use @kbd{C-w}, @kbd{C-c C-d} 113 To do actual deletion in Picture mode, use @kbd{C-w}, @kbd{C-c C-d}
112 (which is defined as @code{delete-char}, as @kbd{C-d} is in other 114 (which is defined as @code{delete-char}, as @kbd{C-d} is in other
113 modes), or one of the picture rectangle commands (@pxref{Rectangles in 115 modes), or one of the picture rectangle commands (@pxref{Rectangles in
138 orthogonal or diagonal directions for motion after a ``self-inserting'' 140 orthogonal or diagonal directions for motion after a ``self-inserting''
139 character. This is useful for drawing lines in the buffer. 141 character. This is useful for drawing lines in the buffer.
140 142
141 @table @kbd 143 @table @kbd
142 @item C-c < 144 @item C-c <
145 @itemx C-c @key{LEFT}
143 Move left after insertion (@code{picture-movement-left}). 146 Move left after insertion (@code{picture-movement-left}).
144 @item C-c > 147 @item C-c >
148 @itemx C-c @key{RIGHT}
145 Move right after insertion (@code{picture-movement-right}). 149 Move right after insertion (@code{picture-movement-right}).
146 @item C-c ^ 150 @item C-c ^
151 @itemx C-c @key{UP}
147 Move up after insertion (@code{picture-movement-up}). 152 Move up after insertion (@code{picture-movement-up}).
148 @item C-c . 153 @item C-c .
154 @itemx C-c @key{DOWN}
149 Move down after insertion (@code{picture-movement-down}). 155 Move down after insertion (@code{picture-movement-down}).
150 @item C-c ` 156 @item C-c `
157 @itemx C-c @key{HOME}
151 Move up and left (``northwest'') after insertion (@code{picture-movement-nw}). 158 Move up and left (``northwest'') after insertion (@code{picture-movement-nw}).
152 @item C-c ' 159 @item C-c '
160 @itemx C-c @key{PAGEUP}
153 Move up and right (``northeast'') after insertion 161 Move up and right (``northeast'') after insertion
154 (@code{picture-movement-ne}). 162 (@code{picture-movement-ne}).
155 @item C-c / 163 @item C-c /
164 @itemx C-c @key{END}
156 Move down and left (``southwest'') after insertion 165 Move down and left (``southwest'') after insertion
157 @*(@code{picture-movement-sw}). 166 @*(@code{picture-movement-sw}).
158 @item C-c \ 167 @item C-c \
168 @itemx C-c @key{PAGEDOWN}
159 Move down and right (``southeast'') after insertion 169 Move down and right (``southeast'') after insertion
160 @*(@code{picture-movement-se}). 170 @*(@code{picture-movement-se}).
161 @end table 171 @end table
162 172
163 @kindex C-c C-f @r{(Picture mode)} 173 @kindex C-c C-f @r{(Picture mode)}
259 the same way that Picture mode insertion of other text differs from 269 the same way that Picture mode insertion of other text differs from
260 other modes. @kbd{C-c C-y} (@code{picture-yank-rectangle}) inserts 270 other modes. @kbd{C-c C-y} (@code{picture-yank-rectangle}) inserts
261 (by overwriting) the rectangle that was most recently killed, while 271 (by overwriting) the rectangle that was most recently killed, while
262 @kbd{C-c C-x} (@code{picture-yank-rectangle-from-register}) does 272 @kbd{C-c C-x} (@code{picture-yank-rectangle-from-register}) does
263 likewise for the rectangle found in a specified register. 273 likewise for the rectangle found in a specified register.
274
275 @ignore
276 arch-tag: b7589747-683c-4f40-aed8-1b10403cb666
277 @end ignore