diff lisp/dired.el @ 100939:09ea3896dab5

(dired-pop-to-buffer): Don't split windows horizontally. (Bug#1806)
author Martin Rudalics <rudalics@gmx.at>
date Wed, 07 Jan 2009 09:58:23 +0000
parents a9dc0e7c3f2b
children 83a2261dc0ed
line wrap: on
line diff
--- a/lisp/dired.el	Wed Jan 07 09:34:18 2009 +0000
+++ b/lisp/dired.el	Wed Jan 07 09:58:23 2009 +0000
@@ -2681,8 +2681,10 @@
 	(format "%c [%d files]" dired-marker-char count)))))
 
 (defun dired-pop-to-buffer (buf)
-  ;; Pop up buffer BUF.
-  (pop-to-buffer (get-buffer-create buf))
+  "Pop up buffer BUF in a way suitable for Dired."
+  ;; Don't split window horizontally.  (Bug#1806)
+  (let (split-width-threshold)
+    (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
     ;; Try to not delete window when we want to display less than