From: Martin Rudalics Date: Sat, 14 Dec 2013 17:00:54 +0000 (+0100) Subject: Have display-buffer-below-selected never split window horizontally. X-Git-Tag: emacs-24.3.90~173^2^2~42^2~45^2~387^2~411 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f93cc74f04312c1b27bfcc870c1782083525fc61;p=emacs.git Have display-buffer-below-selected never split window horizontally. * window.el (display-buffer-below-selected): Never split window horizontally. Suggested by Juri Linkov . --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 8725bc401c5..f1f1f45df91 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2013-12-14 Martin Rudalics + + * window.el (display-buffer-below-selected): Never split window + horizontally. Suggested by Juri Linkov . + 2013-12-14 Tom Willemse (tiny change) * emacs-lisp/package.el (package--prepare-dependencies): New function. diff --git a/lisp/window.el b/lisp/window.el index ba21dbc7bcc..5ba2f8ac2b9 100644 --- a/lisp/window.el +++ b/lisp/window.el @@ -6245,7 +6245,8 @@ This either splits the selected window or reuses the window below the selected one." (let (window) (or (and (not (frame-parameter nil 'unsplittable)) - (setq window (window--try-to-split-window (selected-window) alist)) + (let (split-width-threshold) + (setq window (window--try-to-split-window (selected-window) alist))) (window--display-buffer buffer window 'window alist display-buffer-mark-dedicated)) (and (setq window (window-in-direction 'below))