Mercurial > hg > xemacs-beta
diff lisp/prim/frame.el @ 98:0d2f883870bc r20-1b1
Import from CVS: tag r20-1b1
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:13:56 +0200 |
parents | 1ce6082ce73f |
children | 360340f9fd5f |
line wrap: on
line diff
--- a/lisp/prim/frame.el Mon Aug 13 09:12:43 2007 +0200 +++ b/lisp/prim/frame.el Mon Aug 13 09:13:56 2007 +0200 @@ -1022,6 +1022,9 @@ (append (list save-frame) frames) frames))) +(defvar temp-buffer-shrink-to-fit t + "*When non-nil resize temporary output buffers to minimize blank lines.") + (defun show-temp-buffer-in-current-frame (buffer) "For use as the value of temp-buffer-show-function: always displays the buffer in the current frame, regardless of the behavior @@ -1035,7 +1038,8 @@ (setq minibuffer-scroll-window window) (set-window-start window 1) ; obeys narrowing (set-window-point window 1) - (shrink-window-if-larger-than-buffer window) + (when temp-buffer-shrink-to-fit + (shrink-window-if-larger-than-buffer window)) nil))) (setq pre-display-buffer-function 'get-frame-for-buffer)