]> git.eshelyaron.com Git - emacs.git/commitdiff
(dired-pop-to-buffer): Don't split windows horizontally. (Bug#1806)
authorMartin Rudalics <rudalics@gmx.at>
Wed, 7 Jan 2009 09:58:23 +0000 (09:58 +0000)
committerMartin Rudalics <rudalics@gmx.at>
Wed, 7 Jan 2009 09:58:23 +0000 (09:58 +0000)
lisp/ChangeLog
lisp/dired.el

index 398509369a4350c1d146b47e3a26aa818f519676..347e8c0c599bd7dc0201ba926ed24dacaec373bd 100644 (file)
@@ -1,3 +1,8 @@
+2009-01-07  Martin Rudalics  <rudalics@gmx.at>
+
+       * dired.el (dired-pop-to-buffer): Don't split windows
+       horizontally.  (Bug#1806)
+
 2009-01-07  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        * tar-mode.el (tar-mode, tar-mode-write-contents)
index 7613a3b8af01baeb44d7fe00ed731b189a4576b1..3f177eaf6f742bf488bab4a42af6e335a336e4bc 100644 (file)
@@ -2681,8 +2681,10 @@ name, or the marker and a count of marked files."
        (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