diff options
| author | Lute Kamstra | 2008-11-22 17:37:38 +0000 |
|---|---|---|
| committer | Lute Kamstra | 2008-11-22 17:37:38 +0000 |
| commit | 392f0d26318f8f84df70a1fc72b529d6a057319c (patch) | |
| tree | 30ed7cdadb7d86f9f4209baa5b0636ffb7ab6eb7 /doc/lispref | |
| parent | dd18693600ace7b437efb1f4a9c37d41872e001c (diff) | |
| download | emacs-392f0d26318f8f84df70a1fc72b529d6a057319c.tar.gz emacs-392f0d26318f8f84df70a1fc72b529d6a057319c.zip | |
(Text Lines): Update goto-line documentation.
Diffstat (limited to 'doc/lispref')
| -rw-r--r-- | doc/lispref/ChangeLog | 4 | ||||
| -rw-r--r-- | doc/lispref/positions.texi | 22 |
2 files changed, 15 insertions, 11 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index 666aa865df8..2b1f0ee7cc3 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2008-11-22 Lute Kamstra <lute@gnu.org> | ||
| 2 | |||
| 3 | * positions.texi (Text Lines): Update goto-line documentation. | ||
| 4 | |||
| 1 | 2008-11-21 Martin Rudalics <rudalics@gmx.at> | 5 | 2008-11-21 Martin Rudalics <rudalics@gmx.at> |
| 2 | 6 | ||
| 3 | * frames.texi (Frames): Fix typo, add cross references, reword. | 7 | * frames.texi (Frames): Fix typo, add cross references, reword. |
diff --git a/doc/lispref/positions.texi b/doc/lispref/positions.texi index ec3a3a936e3..3184f02725d 100644 --- a/doc/lispref/positions.texi +++ b/doc/lispref/positions.texi | |||
| @@ -299,14 +299,13 @@ The division of the buffer into text lines is not affected by the width | |||
| 299 | of the window, by line continuation in display, or by how tabs and | 299 | of the window, by line continuation in display, or by how tabs and |
| 300 | control characters are displayed. | 300 | control characters are displayed. |
| 301 | 301 | ||
| 302 | @deffn Command goto-line line | 302 | @deffn Command goto-line line &optional buffer |
| 303 | This function moves point to the front of the @var{line}th line, | 303 | This function moves point to the front of the @var{line}th line, |
| 304 | counting from line 1 at beginning of the buffer. If @var{line} is less | 304 | counting from line 1 at beginning of the buffer, and leaves mark at the |
| 305 | than 1, it moves point to the beginning of the buffer. If @var{line} is | 305 | previous position. If @var{line} is less than 1, it moves point to the |
| 306 | greater than the number of lines in the buffer, it moves point to the | 306 | beginning of the buffer. If @var{line} is greater than the number of |
| 307 | end of the buffer---that is, the @emph{end of the last line} of the | 307 | lines in the buffer, it moves point to the end of the buffer---that is, |
| 308 | buffer. This is the only case in which @code{goto-line} does not | 308 | the @emph{end of the last line} of the buffer. |
| 309 | necessarily move to the beginning of a line. | ||
| 310 | 309 | ||
| 311 | If narrowing is in effect, then @var{line} still counts from the | 310 | If narrowing is in effect, then @var{line} still counts from the |
| 312 | beginning of the buffer, but point cannot go outside the accessible | 311 | beginning of the buffer, but point cannot go outside the accessible |
| @@ -319,11 +318,12 @@ The return value of @code{goto-line} is the difference between | |||
| 319 | able to move (in the full buffer, before taking account of narrowing). | 318 | able to move (in the full buffer, before taking account of narrowing). |
| 320 | Thus, the value is positive if the scan encounters the real end of the | 319 | Thus, the value is positive if the scan encounters the real end of the |
| 321 | buffer before finding the specified line. The value is zero if scan | 320 | buffer before finding the specified line. The value is zero if scan |
| 322 | encounters the end of the accessible portion but not the real end of the | 321 | encounters the end of the accessible portion, but not the real end of |
| 323 | buffer. | 322 | the buffer. |
| 324 | 323 | ||
| 325 | In an interactive call, @var{line} is the numeric prefix argument if | 324 | If you provide the optional argument @var{buffer}, @code{goto-line} uses |
| 326 | one has been provided. Otherwise @var{line} is read in the minibuffer. | 325 | @var{buffer} instead of the current buffer and displays it in another |
| 326 | window, if it was not already visible. | ||
| 327 | @end deffn | 327 | @end deffn |
| 328 | 328 | ||
| 329 | @deffn Command beginning-of-line &optional count | 329 | @deffn Command beginning-of-line &optional count |