mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-30 12:21:25 -08:00
(line-move-1): Fix previous change to signal errors appropriately.
This commit is contained in:
parent
5648486ce0
commit
f33ae5d01a
1 changed files with 7 additions and 3 deletions
|
|
@ -3420,7 +3420,9 @@ Outline mode sets this."
|
|||
;; We avoid vertical-motion when possible
|
||||
;; because that has to fontify.
|
||||
(if (eobp)
|
||||
(setq done t)
|
||||
(if (not noerror)
|
||||
(signal 'end-of-buffer nil)
|
||||
(setq done t))
|
||||
(forward-line 1))
|
||||
;; Otherwise move a more sophisticated way.
|
||||
;; (What's the logic behind this code?)
|
||||
|
|
@ -3434,9 +3436,11 @@ Outline mode sets this."
|
|||
;; it just goes in the other direction.
|
||||
(while (and (< arg 0) (not done))
|
||||
(beginning-of-line)
|
||||
(if (not (line-move-invisible-p (1- (point))))
|
||||
(if (or (bobp) (not (line-move-invisible-p (1- (point)))))
|
||||
(if (bobp)
|
||||
(setq done t)
|
||||
(if (not noerror)
|
||||
(signal 'beginning-of-buffer nil)
|
||||
(setq done t))
|
||||
(forward-line -1))
|
||||
(if (zerop (vertical-motion -1))
|
||||
(if (not noerror)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue