aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/simple.el
diff options
context:
space:
mode:
authorKaroly Lorentey2005-02-20 18:47:54 +0000
committerKaroly Lorentey2005-02-20 18:47:54 +0000
commitb5d78df397f8cdcd20f3bcfbed2eb71d522abddd (patch)
treecedfc1db69595526c12da068ea7ff5bdf3b806f2 /lisp/simple.el
parent60c73d2ed638e5d51643c65a0fc6dea618fc72c8 (diff)
parenteedeacb3074baad8ce752a506f9f435c98e42ff4 (diff)
downloademacs-b5d78df397f8cdcd20f3bcfbed2eb71d522abddd.tar.gz
emacs-b5d78df397f8cdcd20f3bcfbed2eb71d522abddd.zip
Merged from miles@gnu.org--gnu-2005 (patch 17-26, 107-116)
Patches applied: * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-107 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-108 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-109 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-110 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-111 Merge from gnus--rel--5.10 * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-112 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-113 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-114 <no summary provided> * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-115 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-116 Update from CVS * miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-17 Update from CVS * miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-18 Update from CVS * miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-19 Update from CVS * miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-20 Merge from emacs--cvs-trunk--0 * miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-21 More work on moving images to etc/images * miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-22 Update from CVS * miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-23 Fix errors with image-file installation * miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-24 etc/Makefile.in (install): Put gnus-tut.txt in the right place. * miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-25 etc/Makefile.in (install, uninstall): Fix installed image dirs. * miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-26 etc/Makefile.in (install): Create $(etcdir)/images/gnus dir. git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-296
Diffstat (limited to 'lisp/simple.el')
-rw-r--r--lisp/simple.el23
1 files changed, 15 insertions, 8 deletions
diff --git a/lisp/simple.el b/lisp/simple.el
index 639021bcb95..be9bded5382 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -3162,12 +3162,12 @@ and more reliable (no dependence on goal column, etc.)."
3162 (let ((abbrev-mode nil)) 3162 (let ((abbrev-mode nil))
3163 (end-of-line) 3163 (end-of-line)
3164 (insert "\n")) 3164 (insert "\n"))
3165 (line-move arg)) 3165 (line-move arg nil nil t))
3166 (if (interactive-p) 3166 (if (interactive-p)
3167 (condition-case nil 3167 (condition-case nil
3168 (line-move arg) 3168 (line-move arg nil nil t)
3169 ((beginning-of-buffer end-of-buffer) (ding))) 3169 ((beginning-of-buffer end-of-buffer) (ding)))
3170 (line-move arg))) 3170 (line-move arg nil nil t)))
3171 nil) 3171 nil)
3172 3172
3173(defun previous-line (&optional arg) 3173(defun previous-line (&optional arg)
@@ -3190,9 +3190,9 @@ to use and more reliable (no dependence on goal column, etc.)."
3190 (or arg (setq arg 1)) 3190 (or arg (setq arg 1))
3191 (if (interactive-p) 3191 (if (interactive-p)
3192 (condition-case nil 3192 (condition-case nil
3193 (line-move (- arg)) 3193 (line-move (- arg) nil nil t)
3194 ((beginning-of-buffer end-of-buffer) (ding))) 3194 ((beginning-of-buffer end-of-buffer) (ding)))
3195 (line-move (- arg))) 3195 (line-move (- arg) nil nil t))
3196 nil) 3196 nil)
3197 3197
3198(defcustom track-eol nil 3198(defcustom track-eol nil
@@ -3231,8 +3231,8 @@ Outline mode sets this."
3231 (assq prop buffer-invisibility-spec))))) 3231 (assq prop buffer-invisibility-spec)))))
3232 3232
3233;; Perform vertical scrolling of tall images if necessary. 3233;; Perform vertical scrolling of tall images if necessary.
3234(defun line-move (arg &optional noerror to-end) 3234(defun line-move (arg &optional noerror to-end try-vscroll)
3235 (if auto-window-vscroll 3235 (if (and auto-window-vscroll try-vscroll)
3236 (let ((forward (> arg 0)) 3236 (let ((forward (> arg 0))
3237 (part (nth 2 (pos-visible-in-window-p (point) nil t)))) 3237 (part (nth 2 (pos-visible-in-window-p (point) nil t))))
3238 (if (and (consp part) 3238 (if (and (consp part)
@@ -3248,7 +3248,14 @@ Outline mode sets this."
3248 (* (frame-char-height) (- arg)))))) 3248 (* (frame-char-height) (- arg))))))
3249 t) 3249 t)
3250 (set-window-vscroll nil 0) 3250 (set-window-vscroll nil 0)
3251 (line-move-1 arg noerror to-end))) 3251 (when (line-move-1 arg noerror to-end)
3252 (sit-for 0)
3253 (if (and (not forward)
3254 (setq part (nth 2 (pos-visible-in-window-p
3255 (line-beginning-position) nil t)))
3256 (> (cdr part) 0))
3257 (set-window-vscroll nil (cdr part) t))
3258 t)))
3252 (line-move-1 arg noerror to-end))) 3259 (line-move-1 arg noerror to-end)))
3253 3260
3254;; This is the guts of next-line and previous-line. 3261;; This is the guts of next-line and previous-line.