Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
392f0d26
Commit
392f0d26
authored
Nov 22, 2008
by
Lute Kamstra
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(Text Lines): Update goto-line documentation.
parent
dd186936
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
11 deletions
+15
-11
doc/lispref/ChangeLog
doc/lispref/ChangeLog
+4
-0
doc/lispref/positions.texi
doc/lispref/positions.texi
+11
-11
No files found.
doc/lispref/ChangeLog
View file @
392f0d26
2008
-
11
-
22
Lute
Kamstra
<
lute
@
gnu
.
org
>
*
positions
.
texi
(
Text
Lines
):
Update
goto
-
line
documentation
.
2008
-
11
-
21
Martin
Rudalics
<
rudalics
@
gmx
.
at
>
*
frames
.
texi
(
Frames
):
Fix
typo
,
add
cross
references
,
reword
.
...
...
doc/lispref/positions.texi
View file @
392f0d26
...
...
@@ -299,14 +299,13 @@ The division of the buffer into text lines is not affected by the width
of the window, by line continuation in display, or by how tabs and
control characters are displayed.
@deffn Command goto-line line
@deffn Command goto-line line
&optional buffer
This function moves point to the front of the @var{line}th line,
counting from line 1 at beginning of the buffer. If @var{line} is less
than 1, it moves point to the beginning of the buffer. If @var{line} is
greater than the number of lines in the buffer, it moves point to the
end of the buffer---that is, the @emph{end of the last line} of the
buffer. This is the only case in which @code{goto-line} does not
necessarily move to the beginning of a line.
counting from line 1 at beginning of the buffer, and leaves mark at the
previous position. If @var{line} is less than 1, it moves point to the
beginning of the buffer. If @var{line} is greater than the number of
lines in the buffer, it moves point to the end of the buffer---that is,
the @emph{end of the last line} of the buffer.
If narrowing is in effect, then @var{line} still counts from the
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
able to move (in the full buffer, before taking account of narrowing).
Thus, the value is positive if the scan encounters the real end of the
buffer before finding the specified line. The value is zero if scan
encounters the end of the accessible portion but not the real end of
the
buffer.
encounters the end of the accessible portion
,
but not the real end of
the
buffer.
In an interactive call, @var{line} is the numeric prefix argument if
one has been provided. Otherwise @var{line} is read in the minibuffer.
If you provide the optional argument @var{buffer}, @code{goto-line} uses
@var{buffer} instead of the current buffer and displays it in another
window, if it was not already visible.
@end deffn
@deffn Command beginning-of-line &optional count
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment