Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emacs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
emacs
emacs
Commits
7f8b600a
Commit
7f8b600a
authored
Oct 07, 2009
by
Stefan Monnier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(Text Lines): Remove goto-line, since it shouldn't be used from Lisp.
parent
c2dc9732
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
29 deletions
+7
-29
doc/lispref/ChangeLog
doc/lispref/ChangeLog
+7
-2
doc/lispref/positions.texi
doc/lispref/positions.texi
+0
-27
No files found.
doc/lispref/ChangeLog
View file @
7f8b600a
2009
-
10
-
07
Stefan
Monnier
<
monnier
@
iro
.
umontreal
.
ca
>
*
positions
.
texi
(
Text
Lines
):
Remove
goto
-
line
,
since
it
shouldn
't be
used from Lisp.
2009-10-07 Eli Zaretskii <eliz@gnu.org>
* files.texi (Directory Names) <abbreviate-file-name>:
Document
that root home directories are not replaced with "~".
* files.texi (Directory Names) <abbreviate-file-name>:
Document
that root home directories are not replaced with "~".
2009-10-06 Eli Zaretskii <eliz@gnu.org>
...
...
doc/lispref/positions.texi
View file @
7f8b600a
...
...
@@ -299,33 +299,6 @@ 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 &optional buffer
This function moves point to the front of the @var{line}th 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
portion. So @code{goto-line} moves point to the beginning or end of the
accessible portion, if the line number specifies an inaccessible
position.
The return value of @code{goto-line} is the difference between
@var{line} and the line number of the line to which point actually was
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.
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
This function moves point to the beginning of the current line. With an
argument @var{count} not @code{nil} or 1, it moves forward
...
...
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