1. xemacs
  2. eshell

Commits

aidan  committed b77ff50

eshell, use #'shrink-window-if-larger-than-buffer if appropriate

  • Participants
  • Parent commits d997f91
  • Branches default

Comments (0)

Files changed (2)

File ChangeLog

View file
+2008-08-30  Aidan Kehoe  <kehoea@parhasard.net>
+
+	* eshell.el (eshell-command): 
+	Check the XEmacs variable temp-buffer-shrink-to-fit and call
+	#'shrink-window-if-larger-than-buffer instead of
+	#'resize-temp-buffer-window. 
+
 2008-08-28  Norbert Koch  <viteno@xemacs.org>
 
 	* Makefile (VERSION): XEmacs package 1.14 released.

File eshell.el

View file
 		;; cause the output buffer to take up as little screen
 		;; real-estate as possible, if temp buffer resizing is
 		;; enabled
-		(and intr temp-buffer-resize-mode
-		     (resize-temp-buffer-window)))))))))))
+		(and intr (if (featurep 'xemacs)
+                              (and temp-buffer-shrink-to-fit
+                                   (shrink-window-if-larger-than-buffer))
+                            (and temp-buffer-resize-mode
+                                 (resize-temp-buffer-window)))))))))))))
 
 ;;;###autoload
 (defun eshell-command-result (command &optional status-var)