aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Moellmann1999-11-01 11:44:58 +0000
committerGerd Moellmann1999-11-01 11:44:58 +0000
commit314808dc648814f3b68fe45db3f14ca414db63bd (patch)
tree9f269abef64ab1d4296fb4c51e6e06c1f479bf0a
parent79214ddfc9a66580cddb1600b9f0c8007d23ba08 (diff)
downloademacs-314808dc648814f3b68fe45db3f14ca414db63bd.tar.gz
emacs-314808dc648814f3b68fe45db3f14ca414db63bd.zip
(end-of-buffer): Use window-end to find the window end
instead of vertical-motion because this handles variable-height lines correctly.
-rw-r--r--lisp/ChangeLog50
-rw-r--r--lisp/simple.el17
2 files changed, 34 insertions, 33 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index cf1dc9afeac..9721ec5d0f3 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,56 +1,62 @@
11999-11-01 Gerd Moellmann <gerd@gnu.org>
2
3 * simple.el (end-of-buffer): Use window-end to find the window end
4 instead of vertical-motion because this handles variable-height
5 lines correctly.
6
11999-11-01 Michael Kifer <kifer@cs.sunysb.edu> 71999-11-01 Michael Kifer <kifer@cs.sunysb.edu>
2 8
3 * ediff.el: version change. 9 * ediff.el: Version change.
4 10
5 * ediff-util.el (ediff-cleanup-mess): fixed the case of dead windows. 11 * ediff-util.el (ediff-cleanup-mess): Fixed the case of dead windows.
6 make sure you are in a good frame before deleting other 12 make sure you are in a good frame before deleting other
7 windows. 13 windows.
8 (ediff-file-checked-in-p): don't consider CVS 14 (ediff-file-checked-in-p): Don't consider CVS
9 files checked in. 15 files checked in.
10 (ediff-make-temp-file,ediff-make-empty-tmp-file): Make sure you 16 (ediff-make-temp-file,ediff-make-empty-tmp-file): Make sure you
11 are writing to a newly created empty file. 17 are writing to a newly created empty file.
12 18
13 * ediff-mult.el (ediff-show-session-group-hook): new default. 19 * ediff-mult.el (ediff-show-session-group-hook): New default.
14 20
15 * ediff-vers.el (ediff-pcl-cvs-view-revision): 21 * ediff-vers.el (ediff-pcl-cvs-view-revision):
16 first cd to the file directory. reportedly works 22 First cd to the file directory. reportedly works
17 better with remote files. 23 better with remote files.
18 24
19 * ediff-vers.el (ediff-pcl-cvs-internal, ediff-pcl-cvs-merge-internal): 25 * ediff-vers.el (ediff-pcl-cvs-internal, ediff-pcl-cvs-merge-internal):
20 use file-name-nondirectory when passing files to CVS. 26 Use file-name-nondirectory when passing files to CVS.
21 27
22 * ediff-diff.el (ediff-cmp-options): new var. 28 * ediff-diff.el (ediff-cmp-options): New var.
23 (ediff-same-file-contents): use ediff-cmp-options. 29 (ediff-same-file-contents): Use ediff-cmp-options.
24 30
25 * ediff-ptch.el (ediff-prompt-for-patch-buffer, 31 * ediff-ptch.el (ediff-prompt-for-patch-buffer,
26 ediff-get-patch-buffer): use current buffer if it appears to be a 32 ediff-get-patch-buffer): Use current buffer if it appears to be a
27 patch. 33 patch.
28 34
29 * viper-keym.el: Fixed calls to viper-ex, 35 * viper-keym.el: Fixed calls to viper-ex,
30 change key C-cg to C-cC-g 36 change key C-c g to C-c C-g
31 37
32 * viper-util.el (viper-nontrivial-find-file-function): deleted. 38 * viper-util.el (viper-nontrivial-find-file-function): Deleted.
33 (viper-glob-unix-files, viper-glob-mswindows-files): new functions. 39 (viper-glob-unix-files, viper-glob-mswindows-files): New functions.
34 (viper-save-cursor-color,viper-restore-cursor-color): 40 (viper-save-cursor-color,viper-restore-cursor-color):
35 improved cursor color handling. 41 Improved cursor color handling.
36 (viper-get-saved-cursor-color-in-replace-mode, 42 (viper-get-saved-cursor-color-in-replace-mode,
37 viper-get-saved-cursor-color-in-insert-mode): new functions for 43 viper-get-saved-cursor-color-in-insert-mode): New functions for
38 better cursor color handling. 44 better cursor color handling.
39 45
40 * viper-ex.el (ex-read,ex-edit): 46 * viper-ex.el (ex-read,ex-edit):
41 fixes for correct interpretation of #,%. 47 Fixes for correct interpretation of #,%.
42 (viper-ex): now works correctly when called from other functions. 48 (viper-ex): Now works correctly when called from other functions.
43 (viper-glob-function): new variable. 49 (viper-glob-function): New variable.
44 (viper-ex): save excursion before doing :global. 50 (viper-ex): Save excursion before doing :global.
45 51
46 * viper-mous.el (viper-counting-clicks-p): bug fixes. 52 * viper-mous.el (viper-counting-clicks-p): Bug fixes.
47 53
48 * viper-cmd.el (viper-post-command-sentinel, 54 * viper-cmd.el (viper-post-command-sentinel,
49 viper-insert-state-post-command-sentinel, 55 viper-insert-state-post-command-sentinel,
50 viper-insert-state-pre-command-sentinel): takes better care of 56 viper-insert-state-pre-command-sentinel): Takes better care of
51 cursor colors. 57 cursor colors.
52 58
53 * viper.el: version change. 59 * viper.el: Version change.
54 60
551999-10-31 Rajesh Vaidheeswarran <rv@dsmit.com> 611999-10-31 Rajesh Vaidheeswarran <rv@dsmit.com>
56 62
diff --git a/lisp/simple.el b/lisp/simple.el
index 245727455e0..1fb214cc6c0 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -379,17 +379,12 @@ Don't use this command in Lisp programs!
379 (point-max)))) 379 (point-max))))
380 ;; If we went to a place in the middle of the buffer, 380 ;; If we went to a place in the middle of the buffer,
381 ;; adjust it to the beginning of a line. 381 ;; adjust it to the beginning of a line.
382 (if arg (forward-line 1) 382 (cond (arg (forward-line 1))
383 ;; If the end of the buffer is not already on the screen, 383 ((< (point) (window-end nil t))
384 ;; then scroll specially to put it near, but not at, the bottom. 384 ;; If the end of the buffer is not already on the screen,
385 (if (let ((old-point (point))) 385 ;; then scroll specially to put it near, but not at, the bottom.
386 (save-excursion 386 (overlay-recenter (point))
387 (goto-char (window-start)) 387 (recenter -3))))
388 (vertical-motion (window-height))
389 (< (point) old-point)))
390 (progn
391 (overlay-recenter (point))
392 (recenter -3)))))
393 388
394(defun mark-whole-buffer () 389(defun mark-whole-buffer ()
395 "Put point at beginning and mark at end of buffer. 390 "Put point at beginning and mark at end of buffer.