aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2005-06-08 15:35:05 +0000
committerRichard M. Stallman2005-06-08 15:35:05 +0000
commit03ceda9edd34ce05068a118bc8fd49913725fa09 (patch)
treecfaaa6f00eff8c64ab909936754051ba1f296438
parent8135a25a77598b1673852f12bd0cdeeab0790752 (diff)
downloademacs-03ceda9edd34ce05068a118bc8fd49913725fa09.tar.gz
emacs-03ceda9edd34ce05068a118bc8fd49913725fa09.zip
Comment changes.
-rw-r--r--lisp/simple.el11
1 files changed, 9 insertions, 2 deletions
diff --git a/lisp/simple.el b/lisp/simple.el
index 097dde16d01..ba661e54a19 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -3342,10 +3342,15 @@ Outline mode sets this."
3342 (or (memq prop buffer-invisibility-spec) 3342 (or (memq prop buffer-invisibility-spec)
3343 (assq prop buffer-invisibility-spec))))) 3343 (assq prop buffer-invisibility-spec)))))
3344 3344
3345;; Perform vertical scrolling of tall images if necessary. 3345;; This is like line-move-1 except that it also performs
3346;; Don't vscroll in a keyboard macro. 3346;; vertical scrolling of tall images if appropriate.
3347;; That is not really a clean thing to do, since it mixes
3348;; scrolling with cursor motion. But so far we don't have
3349;; a cleaner solution to the problem of making C-n do something
3350;; useful given a tall image.
3347(defun line-move (arg &optional noerror to-end try-vscroll) 3351(defun line-move (arg &optional noerror to-end try-vscroll)
3348 (if (and auto-window-vscroll try-vscroll 3352 (if (and auto-window-vscroll try-vscroll
3353 ;; But don't vscroll in a keyboard macro.
3349 (not defining-kbd-macro) 3354 (not defining-kbd-macro)
3350 (not executing-kbd-macro)) 3355 (not executing-kbd-macro))
3351 (let ((forward (> arg 0)) 3356 (let ((forward (> arg 0))
@@ -3368,6 +3373,8 @@ Outline mode sets this."
3368 ;; Update display before calling pos-visible-in-window-p, 3373 ;; Update display before calling pos-visible-in-window-p,
3369 ;; because it depends on window-start being up-to-date. 3374 ;; because it depends on window-start being up-to-date.
3370 (sit-for 0) 3375 (sit-for 0)
3376 ;; If the current line is partly hidden at the bottom,
3377 ;; scroll it partially up so as to unhide the bottom.
3371 (if (and (setq part (nth 2 (pos-visible-in-window-p 3378 (if (and (setq part (nth 2 (pos-visible-in-window-p
3372 (line-beginning-position) nil t))) 3379 (line-beginning-position) nil t)))
3373 (> (cdr part) 0)) 3380 (> (cdr part) 0))