comparison man/programs.texi @ 34821:1d7bee7283ac

Move the cindex about moving to matching paren into the "List Commands" node, where the commands are really described. Add cindex entries to the "Defuns" node.
author Eli Zaretskii <eliz@gnu.org>
date Fri, 22 Dec 2000 10:52:16 +0000
parents eb9ce988e870
children c760b01b3253
comparison
equal deleted inserted replaced
34820:18da0bee0a69 34821:1d7bee7283ac
174 parentheses exist (including human languages). 174 parentheses exist (including human languages).
175 175
176 @cindex list 176 @cindex list
177 @cindex sexp 177 @cindex sexp
178 @cindex expression 178 @cindex expression
179 @cindex parentheses, moving across
180 @cindex matching parenthesis, moving to
181 These commands fall into two classes. Some deal only with @dfn{lists} 179 These commands fall into two classes. Some deal only with @dfn{lists}
182 (parenthetical groupings). They see nothing except parentheses, brackets, 180 (parenthetical groupings). They see nothing except parentheses, brackets,
183 braces (whichever ones must balance in the language you are working with), 181 braces (whichever ones must balance in the language you are working with),
184 and escape characters that might be used to quote those. 182 and escape characters that might be used to quote those.
185 183
230 Transpose expressions (@code{transpose-sexps}). 228 Transpose expressions (@code{transpose-sexps}).
231 @item C-M-@@ 229 @item C-M-@@
232 Put mark after following expression (@code{mark-sexp}). 230 Put mark after following expression (@code{mark-sexp}).
233 @end table 231 @end table
234 232
233 @cindex parentheses, moving across
234 @cindex matching parenthesis and braces, moving to
235 @cindex braces, moving across
235 @kindex C-M-f 236 @kindex C-M-f
236 @kindex C-M-b 237 @kindex C-M-b
237 @findex forward-sexp 238 @findex forward-sexp
238 @findex backward-sexp 239 @findex backward-sexp
239 To move forward over a sexp, use @kbd{C-M-f} (@code{forward-sexp}). If 240 To move forward over a sexp, use @kbd{C-M-f} (@code{forward-sexp}). If
251 252
252 @kbd{C-M-f} or @kbd{C-M-b} with an argument repeats that operation the 253 @kbd{C-M-f} or @kbd{C-M-b} with an argument repeats that operation the
253 specified number of times; with a negative argument, it moves in the 254 specified number of times; with a negative argument, it moves in the
254 opposite direction. 255 opposite direction.
255 256
257 @cindex deleting parenthesized expressions
256 @kindex C-M-k 258 @kindex C-M-k
257 @findex kill-sexp 259 @findex kill-sexp
258 @kindex C-M-DEL 260 @kindex C-M-DEL
259 @findex backward-kill-sexp 261 @findex backward-kill-sexp
260 Killing a whole sexp can be done with @kbd{C-M-k} (@code{kill-sexp}) 262 Killing a whole sexp can be done with @kbd{C-M-k} (@code{kill-sexp})
288 To move @emph{down} in list structure, use @kbd{C-M-d} 290 To move @emph{down} in list structure, use @kbd{C-M-d}
289 (@code{down-list}). In Lisp mode, where @samp{(} is the only opening 291 (@code{down-list}). In Lisp mode, where @samp{(} is the only opening
290 delimiter, this is nearly the same as searching for a @samp{(}. An 292 delimiter, this is nearly the same as searching for a @samp{(}. An
291 argument specifies the number of levels of parentheses to go down. 293 argument specifies the number of levels of parentheses to go down.
292 294
293 @cindex transposition 295 @cindex transposition of parenthesized expressions
294 @kindex C-M-t 296 @kindex C-M-t
295 @findex transpose-sexps 297 @findex transpose-sexps
296 A somewhat random-sounding command which is nevertheless handy is 298 A somewhat random-sounding command which is nevertheless handy is
297 @kbd{C-M-t} (@code{transpose-sexps}), which drags the previous sexp 299 @kbd{C-M-t} (@code{transpose-sexps}), which drags the previous sexp
298 across the next one. An argument serves as a repeat count, and a 300 across the next one. An argument serves as a repeat count, and a
334 Move to end of current or following defun (@code{end-of-defun}). 336 Move to end of current or following defun (@code{end-of-defun}).
335 @item C-M-h 337 @item C-M-h
336 Put region around whole current or following defun (@code{mark-defun}). 338 Put region around whole current or following defun (@code{mark-defun}).
337 @end table 339 @end table
338 340
341 @cindex move to beginning or end of function
342 @cindex function, move to beginning or end
339 @kindex C-M-a 343 @kindex C-M-a
340 @kindex C-M-e 344 @kindex C-M-e
341 @kindex C-M-h 345 @kindex C-M-h
342 @findex beginning-of-defun 346 @findex beginning-of-defun
343 @findex end-of-defun 347 @findex end-of-defun