aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2005-06-24 21:12:07 +0000
committerRichard M. Stallman2005-06-24 21:12:07 +0000
commit19cfc561f4ab393dcc5372b7e97d252009bec14e (patch)
tree02c7d12d83e5d1a70d9f70c390acf499a4cbc67a
parent6cdd056d99909ee787c5b1feeb18f08583a01f34 (diff)
downloademacs-19cfc561f4ab393dcc5372b7e97d252009bec14e.tar.gz
emacs-19cfc561f4ab393dcc5372b7e97d252009bec14e.zip
(line-move-1): Fix previous change.
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/simple.el14
2 files changed, 9 insertions, 9 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index f15073167a2..f1552757440 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12005-06-24 Richard M. Stallman <rms@gnu.org>
2
3 * simple.el (line-move-1): Fix previous change.
4
12005-06-24 Juanma Barranquero <lekktu@gmail.com> 52005-06-24 Juanma Barranquero <lekktu@gmail.com>
2 6
3 * replace.el (occur-1): Set `buffer-read-only' and the 7 * replace.el (occur-1): Set `buffer-read-only' and the
diff --git a/lisp/simple.el b/lisp/simple.el
index 9f99f2d2b60..b8dc0a7df9d 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -3442,18 +3442,14 @@ Outline mode sets this."
3442 (when (and (not done) 3442 (when (and (not done)
3443 (not (integerp selective-display)) 3443 (not (integerp selective-display))
3444 (not (line-move-invisible-p (point)))) 3444 (not (line-move-invisible-p (point))))
3445 ;; We avoid vertical-motion when possible
3446 ;; because that has to fontify.
3447 (forward-line 1)
3448 ;; If there are overlays in and around
3449 ;; the text we moved over, we need to be
3450 ;; sophisticated.
3451 (unless (overlays-in (max (1- pos-before) (point-min)) 3445 (unless (overlays-in (max (1- pos-before) (point-min))
3452 (min (1+ (point)) (point-max))) 3446 (min (1+ (point)) (point-max)))
3447 ;; We avoid vertical-motion when possible
3448 ;; because that has to fontify.
3449 (forward-line 1)
3453 (setq line-done t))) 3450 (setq line-done t)))
3454 ;; Otherwise move a more sophisticated way.
3455 ;; (What's the logic behind this code?)
3456 (and (not done) (not line-done) 3451 (and (not done) (not line-done)
3452 ;; Otherwise move a more sophisticated way.
3457 (zerop (vertical-motion 1)) 3453 (zerop (vertical-motion 1))
3458 (if (not noerror) 3454 (if (not noerror)
3459 (signal 'end-of-buffer nil) 3455 (signal 'end-of-buffer nil)
@@ -3473,9 +3469,9 @@ Outline mode sets this."
3473 (when (and (not done) 3469 (when (and (not done)
3474 (not (integerp selective-display)) 3470 (not (integerp selective-display))
3475 (not (line-move-invisible-p (1- (point))))) 3471 (not (line-move-invisible-p (1- (point)))))
3476 (forward-line -1)
3477 (unless (overlays-in (max (1- (point)) (point-min)) 3472 (unless (overlays-in (max (1- (point)) (point-min))
3478 (min (1+ pos-before) (point-max))) 3473 (min (1+ pos-before) (point-max)))
3474 (forward-line -1)
3479 (setq line-done t))) 3475 (setq line-done t)))
3480 (and (not done) (not line-done) 3476 (and (not done) (not line-done)
3481 (zerop (vertical-motion -1)) 3477 (zerop (vertical-motion -1))