Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
6ef4f3ce
Commit
6ef4f3ce
authored
Feb 07, 2014
by
Lars Ingebrigtsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* simple.el (line-move): Document utility function used many
places in the Emacs sources. Fixes: debbugs:14843
parent
574e477f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
lisp/ChangeLog
lisp/ChangeLog
+3
-0
lisp/simple.el
lisp/simple.el
+8
-0
No files found.
lisp/ChangeLog
View file @
6ef4f3ce
2014-02-08 Lars Ingebrigtsen <larsi@gnus.org>
* simple.el (line-move): Document utility function used many
places in the Emacs sources (bug#14843).
* dired.el (dired-mode-map): Make :help text more accurate (bug#14893).
(dired-prev-marked-file): Doc fix (bug#14855).
(dired-up-directory): Doc fix (bug#14848).
...
...
lisp/simple.el
View file @
6ef4f3ce
...
...
@@ -5113,6 +5113,12 @@ The value is a floating-point number."
;; a cleaner solution to the problem of making C-n do something
;; useful given a tall image.
(defun line-move (arg &optional noerror to-end try-vscroll)
"Move forward ARG lines.
If NOERROR, don't signal an error if we can't move ARG lines.
TO-END is unused.
TRY-VSCROLL controls whether to vscroll tall lines: if either
`auto-window-vscroll' or TRY-VSCROLL is nil, this function will
not vscroll."
(if noninteractive
(forward-line arg)
(unless (and auto-window-vscroll try-vscroll
...
...
@@ -5162,6 +5168,8 @@ The value is a floating-point number."
;; Arg says how many lines to move. The value is t if we can move the
;; specified number of lines.
(defun line-move-visual (arg &optional noerror)
"Move ARG lines forward.
If NOERROR, don't signal an error if we can't move that many lines."
(let ((opoint (point))
(hscroll (window-hscroll))
target-hscroll)
...
...
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