aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim F. Storm2006-09-19 13:13:49 +0000
committerKim F. Storm2006-09-19 13:13:49 +0000
commit95f5a37fb747c9f02cc429f48c4b2e9d4d4a313e (patch)
tree2821cf69d8f56bcdc0f21d80e8aa5521828c0061
parent7bbc67d20f0cb892bc2a200f9a3ae3cd79b4ccd2 (diff)
downloademacs-95f5a37fb747c9f02cc429f48c4b2e9d4d4a313e.tar.gz
emacs-95f5a37fb747c9f02cc429f48c4b2e9d4d4a313e.zip
(line-move-partial): Optimize. Try window-line-height
before posn-at-point to get vpos of current line.
-rw-r--r--lisp/ChangeLog8
-rw-r--r--lisp/simple.el8
2 files changed, 9 insertions, 7 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 724a6841bb7..dbd2474bd91 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -5,15 +5,15 @@
5 5
62006-09-18 Michael Kifer <kifer@cs.stonybrook.edu> 62006-09-18 Michael Kifer <kifer@cs.stonybrook.edu>
7 7
8 * viper.el: Bumped up version/date of update to reflect the substantial 8 * viper.el: Bump up version/date of update to reflect the substantial
9 changes done in August 2006. 9 changes done in August 2006.
10 10
11 * viper-cmd (viper-next-line-at-bol): make sure button-at, push-button 11 * viper-cmd (viper-next-line-at-bol): Make sure button-at, push-button
12 are defined. 12 are defined.
13 13
14 * ediff-util.el (ediff-add-to-history): new function. 14 * ediff-util.el (ediff-add-to-history): New function.
15 15
16 * ediff.el: use ediff-add-to-history instead of add-to-history. 16 * ediff.el: Use ediff-add-to-history instead of add-to-history.
17 17
182006-09-18 Wolfgang Jenkner <wjenkner@inode.at> (tiny change) 182006-09-18 Wolfgang Jenkner <wjenkner@inode.at> (tiny change)
19 19
diff --git a/lisp/simple.el b/lisp/simple.el
index 0a257863a76..5a30471ca49 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -3507,9 +3507,11 @@ Outline mode sets this."
3507 nil) 3507 nil)
3508 ;; If cursor is not in the bottom scroll margin, move forward. 3508 ;; If cursor is not in the bottom scroll margin, move forward.
3509 ((and (> vpos 0) 3509 ((and (> vpos 0)
3510 (< (setq ppos (posn-at-point) 3510 (< (setq py
3511 py (cdr (or (posn-actual-col-row ppos) 3511 (or (nth 1 (window-line-height))
3512 (posn-col-row ppos)))) 3512 (let ((ppos (posn-at-point)))
3513 (cdr (or (posn-actual-col-row ppos)
3514 (posn-col-row ppos))))))
3513 (min (- (window-text-height) scroll-margin 1) (1- vpos)))) 3515 (min (- (window-text-height) scroll-margin 1) (1- vpos))))
3514 nil) 3516 nil)
3515 ;; When already vscrolled, we vscroll some more if we can, 3517 ;; When already vscrolled, we vscroll some more if we can,