1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-23 10:34:07 +00:00

(dired-pop-to-buffer): Call with min-height arg 1 to

make sure that small buffers get shown.
This commit is contained in:
Martin Rudalics 2008-12-11 17:20:45 +00:00
parent f7baca2087
commit 4d0e7fe37b
2 changed files with 12 additions and 1 deletions

View File

@ -1,3 +1,12 @@
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)

View File

@ -2681,7 +2681,9 @@ name, or the marker and a count of marked files."
(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.