Mercurial > emacs
comparison lispref/positions.texi @ 52541:b0b4c9f22ee7
(Word Motion): forward-word, backward-word arg is optional. Reword.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Fri, 19 Sep 2003 14:38:03 +0000 |
parents | 695cf19ef79e |
children | 1a5c50faf357 |
comparison
equal
deleted
inserted
replaced
52540:8c622de0d2ed | 52541:b0b4c9f22ee7 |
---|---|
183 @subsection Motion by Words | 183 @subsection Motion by Words |
184 | 184 |
185 These functions for parsing words use the syntax table to decide | 185 These functions for parsing words use the syntax table to decide |
186 whether a given character is part of a word. @xref{Syntax Tables}. | 186 whether a given character is part of a word. @xref{Syntax Tables}. |
187 | 187 |
188 @deffn Command forward-word count | 188 @deffn Command forward-word &optional count |
189 This function moves point forward @var{count} words (or backward if | 189 This function moves point forward @var{count} words (or backward if |
190 @var{count} is negative). ``Moving one word'' means moving until point | 190 @var{count} is negative). ``Moving one word'' means moving until point |
191 crosses a word-constituent character and then encounters a | 191 crosses a word-constituent character and then encounters a |
192 word-separator character. However, this function cannot move point past | 192 word-separator character. However, this function cannot move point past |
193 the boundary of the accessible portion of the buffer, or across a field | 193 the boundary of the accessible portion of the buffer, or across a field |
201 | 201 |
202 If @code{inhibit-field-text-motion} is non-@code{nil}, | 202 If @code{inhibit-field-text-motion} is non-@code{nil}, |
203 this function ignores field boundaries. | 203 this function ignores field boundaries. |
204 | 204 |
205 In an interactive call, @var{count} is specified by the numeric prefix | 205 In an interactive call, @var{count} is specified by the numeric prefix |
206 argument. | 206 argument. If @var{count} is omitted or @code{nil}, it defaults to 1. |
207 @end deffn | 207 @end deffn |
208 | 208 |
209 @deffn Command backward-word count | 209 @deffn Command backward-word &optional count |
210 This function is just like @code{forward-word}, except that it moves | 210 This function is just like @code{forward-word}, except that it moves |
211 backward until encountering the front of a word, rather than forward. | 211 backward until encountering the front of a word, rather than forward. |
212 | |
213 In an interactive call, @var{count} is set to the numeric prefix | |
214 argument. | |
215 | |
216 @c [Now optimized by compiler.] | |
217 @c This function is rarely used in programs, as it is more efficient to | |
218 @c call @code{forward-word} with a negative argument. | |
219 @end deffn | 212 @end deffn |
220 | 213 |
221 @defvar words-include-escapes | 214 @defvar words-include-escapes |
222 @c Emacs 19 feature | 215 @c Emacs 19 feature |
223 This variable affects the behavior of @code{forward-word} and everything | 216 This variable affects the behavior of @code{forward-word} and everything |