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
Open sidebar
emacs
emacs
Commits
f5fd8833
Commit
f5fd8833
authored
May 25, 2003
by
Juanma Barranquero
Browse files
(forward-visible-line): Fix negative arguments.
parent
c6160f09
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
9 deletions
+8
-9
lisp/simple.el
lisp/simple.el
+8
-9
No files found.
lisp/simple.el
View file @
f5fd8833
...
...
@@ -2265,8 +2265,8 @@ If ARG is zero, move to the beginning of the current line."
(unless (bolp)
(goto-char opoint))))
(let ((first t))
(while (or first (< arg 0))
(if
(zerop arg)
(while (or first (<
=
arg 0))
(if
first
(beginning-of-line)
(or (zerop (forward-line -1))
(signal 'beginning-of-buffer nil)))
...
...
@@ -2275,13 +2275,12 @@ If ARG is zero, move to the beginning of the current line."
(unless (bobp)
(let ((prop
(get-char-property (1- (point)) 'invisible)))
(if (if (eq buffer-invisibility-spec t)
prop
(or (memq prop buffer-invisibility-spec)
(assq prop buffer-invisibility-spec)))
(setq arg (1+ arg)))))
(setq first nil)
(setq arg (1+ arg)))
(unless (if (eq buffer-invisibility-spec t)
prop
(or (memq prop buffer-invisibility-spec)
(assq prop buffer-invisibility-spec)))
(setq arg (1+ arg)))))
(setq first nil))
;; If invisible text follows, and it is a number of complete lines,
;; skip it.
(let ((opoint (point)))
...
...
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