From f93cc74f04312c1b27bfcc870c1782083525fc61 Mon Sep 17 00:00:00 2001 From: Martin Rudalics Date: Sat, 14 Dec 2013 18:00:54 +0100 Subject: [PATCH] Have display-buffer-below-selected never split window horizontally. * window.el (display-buffer-below-selected): Never split window horizontally. Suggested by Juri Linkov . --- lisp/ChangeLog | 5 +++++ lisp/window.el | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) 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)) -- 2.39.2