changeset 103295:578359a0fca6

* view.el (view-recenter): Allow recenter to compute window height normally.
author Chong Yidong <cyd@stupidchicken.com>
date Tue, 26 May 2009 14:37:51 +0000
parents 299eb8fbcd49
children a23e4364bf6e
files lisp/ChangeLog lisp/view.el
diffstat 2 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Tue May 26 03:32:02 2009 +0000
+++ b/lisp/ChangeLog	Tue May 26 14:37:51 2009 +0000
@@ -1,3 +1,8 @@
+2009-05-26  Chong Yidong  <cyd@stupidchicken.com>
+
+	* view.el (view-recenter): Allow recenter to compute window height
+	normally.
+
 2009-05-26  Kenichi Handa  <handa@m17n.org>
 
 	* textmodes/table.el (table--unibyte-char-to-multibyte): Function
--- a/lisp/view.el	Tue May 26 03:32:02 2009 +0000
+++ b/lisp/view.el	Tue May 26 14:37:51 2009 +0000
@@ -757,8 +757,8 @@
 ;;  (setq this-command view-last-command-entry))
 
 (defun view-recenter ()
-  ;; Center point in window.
-  (recenter (/ (view-window-size) 2)))
+  ;; Recenter point in window and redisplay normally.
+  (recenter '(1)))
 
 (defun view-page-size-default (lines)
   ;; Get page size.