make sure that small buffers get shown.
+2008-12-11 Martin Rudalics <rudalics@gmx.at>
+
+ * window.el (fit-window-to-buffer): Use with-selected-window and
+ condition-case. Do not delete more windows than necessary in
+ the shrinking (delta < 0) case. Do not raise an error when the
+ containing frame is too small to show all of buffer. (Bug#1488)
+ * dired.el (dired-pop-to-buffer): Call fit-window-to-buffer with
+ min-height arg 1 to make sure that small buffers are shown.
+
2008-12-11 Juanma Barranquero <lekktu@gmail.com>
* progmodes/ruby-mode.el (ruby-mode-abbrev-table, ruby-mode-map)
(pop-to-buffer (get-buffer-create buf))
;; If dired-shrink-to-fit is t, make its window fit its contents.
(when dired-shrink-to-fit
- (fit-window-to-buffer (get-buffer-window buf))))
+ ;; Try to not delete window when we want to display less than
+ ;; `window-min-height' lines.
+ (fit-window-to-buffer (get-buffer-window buf) nil 1)))
(defcustom dired-no-confirm nil
"A list of symbols for commands Dired should not confirm.