Mercurial > hg > xemacs-beta
diff lisp/window-xemacs.el @ 280:7df0dd720c89 r21-0b38
Import from CVS: tag r21-0b38
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:32:22 +0200 |
parents | c5d627a313b1 |
children | 558f606b08ae |
line wrap: on
line diff
--- a/lisp/window-xemacs.el Mon Aug 13 10:31:30 2007 +0200 +++ b/lisp/window-xemacs.el Mon Aug 13 10:32:22 2007 +0200 @@ -39,6 +39,18 @@ "Windows within a frame." :group 'environment) +(defun recenter (n &optional window) + "Center point in WINDOW and redisplay frame. With N, put point on line N. +The desired position of point is always relative to the window. +Just C-u as prefix means put point in the center of the window. +No N (i.e., it is nil) erases the entire frame and then +redraws with point in the center of the window. +If WINDOW is nil, the selected window is used." + (interactive "_P") + (center-to-window-line (if (consp n) nil n) window) + (when (null n) + (redraw-frame (window-frame window) t))) + (defun backward-other-window (arg &optional all-frames device) "Select the ARG'th different window on this frame, going backwards. This is just like calling `other-window' with the arg negated."