diff options
| author | Martin Rudalics | 2008-12-11 17:20:45 +0000 |
|---|---|---|
| committer | Martin Rudalics | 2008-12-11 17:20:45 +0000 |
| commit | 4d0e7fe37b6b109cb0f93ea00b0a243289d99cb5 (patch) | |
| tree | f719b3934b9c18b01683071d7680e725b6ed7827 | |
| parent | f7baca2087406d3d45d2662a8b3fca43f938d537 (diff) | |
| download | emacs-4d0e7fe37b6b109cb0f93ea00b0a243289d99cb5.tar.gz emacs-4d0e7fe37b6b109cb0f93ea00b0a243289d99cb5.zip | |
(dired-pop-to-buffer): Call with min-height arg 1 to
make sure that small buffers get shown.
| -rw-r--r-- | lisp/ChangeLog | 9 | ||||
| -rw-r--r-- | lisp/dired.el | 4 |
2 files changed, 12 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 50c8570d848..e06a7617c42 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,12 @@ | |||
| 1 | 2008-12-11 Martin Rudalics <rudalics@gmx.at> | ||
| 2 | |||
| 3 | * window.el (fit-window-to-buffer): Use with-selected-window and | ||
| 4 | condition-case. Do not delete more windows than necessary in | ||
| 5 | the shrinking (delta < 0) case. Do not raise an error when the | ||
| 6 | containing frame is too small to show all of buffer. (Bug#1488) | ||
| 7 | * dired.el (dired-pop-to-buffer): Call fit-window-to-buffer with | ||
| 8 | min-height arg 1 to make sure that small buffers are shown. | ||
| 9 | |||
| 1 | 2008-12-11 Juanma Barranquero <lekktu@gmail.com> | 10 | 2008-12-11 Juanma Barranquero <lekktu@gmail.com> |
| 2 | 11 | ||
| 3 | * progmodes/ruby-mode.el (ruby-mode-abbrev-table, ruby-mode-map) | 12 | * progmodes/ruby-mode.el (ruby-mode-abbrev-table, ruby-mode-map) |
diff --git a/lisp/dired.el b/lisp/dired.el index 5d0db7ecc1d..e0e72a1847e 100644 --- a/lisp/dired.el +++ b/lisp/dired.el | |||
| @@ -2681,7 +2681,9 @@ name, or the marker and a count of marked files." | |||
| 2681 | (pop-to-buffer (get-buffer-create buf)) | 2681 | (pop-to-buffer (get-buffer-create buf)) |
| 2682 | ;; If dired-shrink-to-fit is t, make its window fit its contents. | 2682 | ;; If dired-shrink-to-fit is t, make its window fit its contents. |
| 2683 | (when dired-shrink-to-fit | 2683 | (when dired-shrink-to-fit |
| 2684 | (fit-window-to-buffer (get-buffer-window buf)))) | 2684 | ;; Try to not delete window when we want to display less than |
| 2685 | ;; `window-min-height' lines. | ||
| 2686 | (fit-window-to-buffer (get-buffer-window buf) nil 1))) | ||
| 2685 | 2687 | ||
| 2686 | (defcustom dired-no-confirm nil | 2688 | (defcustom dired-no-confirm nil |
| 2687 | "A list of symbols for commands Dired should not confirm. | 2689 | "A list of symbols for commands Dired should not confirm. |