aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2009-10-07 14:32:08 +0000
committerStefan Monnier2009-10-07 14:32:08 +0000
commit7f8b600a8327273fe8d9e2f8e31e718b739e58bc (patch)
treea084a3d03495be0829642f97b2d120286236f085
parentc2dc9732f76a0f90613519fd34f88df9dcba6c48 (diff)
downloademacs-7f8b600a8327273fe8d9e2f8e31e718b739e58bc.tar.gz
emacs-7f8b600a8327273fe8d9e2f8e31e718b739e58bc.zip
(Text Lines): Remove goto-line, since it shouldn't be used from Lisp.
-rw-r--r--doc/lispref/ChangeLog9
-rw-r--r--doc/lispref/positions.texi27
2 files changed, 7 insertions, 29 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog
index 4edc4230664..83113a73acf 100644
--- a/doc/lispref/ChangeLog
+++ b/doc/lispref/ChangeLog
@@ -1,7 +1,12 @@
12009-10-07 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * positions.texi (Text Lines): Remove goto-line, since it shouldn't be
4 used from Lisp.
5
12009-10-07 Eli Zaretskii <eliz@gnu.org> 62009-10-07 Eli Zaretskii <eliz@gnu.org>
2 7
3 * files.texi (Directory Names) <abbreviate-file-name>: Document 8 * files.texi (Directory Names) <abbreviate-file-name>:
4 that root home directories are not replaced with "~". 9 Document that root home directories are not replaced with "~".
5 10
62009-10-06 Eli Zaretskii <eliz@gnu.org> 112009-10-06 Eli Zaretskii <eliz@gnu.org>
7 12
diff --git a/doc/lispref/positions.texi b/doc/lispref/positions.texi
index d3c13a3eb08..deded596f81 100644
--- a/doc/lispref/positions.texi
+++ b/doc/lispref/positions.texi
@@ -299,33 +299,6 @@ The division of the buffer into text lines is not affected by the width
299of the window, by line continuation in display, or by how tabs and 299of the window, by line continuation in display, or by how tabs and
300control characters are displayed. 300control characters are displayed.
301 301
302@deffn Command goto-line line &optional buffer
303This function moves point to the front of the @var{line}th line,
304counting from line 1 at beginning of the buffer, and leaves mark at the
305previous position. If @var{line} is less than 1, it moves point to the
306beginning of the buffer. If @var{line} is greater than the number of
307lines in the buffer, it moves point to the end of the buffer---that is,
308the @emph{end of the last line} of the buffer.
309
310If narrowing is in effect, then @var{line} still counts from the
311beginning of the buffer, but point cannot go outside the accessible
312portion. So @code{goto-line} moves point to the beginning or end of the
313accessible portion, if the line number specifies an inaccessible
314position.
315
316The return value of @code{goto-line} is the difference between
317@var{line} and the line number of the line to which point actually was
318able to move (in the full buffer, before taking account of narrowing).
319Thus, the value is positive if the scan encounters the real end of the
320buffer before finding the specified line. The value is zero if scan
321encounters the end of the accessible portion, but not the real end of
322the buffer.
323
324If you provide the optional argument @var{buffer}, @code{goto-line} uses
325@var{buffer} instead of the current buffer and displays it in another
326window, if it was not already visible.
327@end deffn
328
329@deffn Command beginning-of-line &optional count 302@deffn Command beginning-of-line &optional count
330This function moves point to the beginning of the current line. With an 303This function moves point to the beginning of the current line. With an
331argument @var{count} not @code{nil} or 1, it moves forward 304argument @var{count} not @code{nil} or 1, it moves forward