From d144ef069cf0b05c528ad9725ca0c06763be6d5b Mon Sep 17 00:00:00 2001 From: Martin Rudalics Date: Mon, 16 Dec 2013 10:58:44 +0100 Subject: [PATCH] Fix recent w32_enable_frame_resize_hack and display-buffer-below-selected fixes. * w32term.c (w32_enable_frame_resize_hack): Default to 1. * window.el (display-buffer-below-selected): Bind split-height-threshold to 0 as suggested by Juri Linkov. --- lisp/ChangeLog | 5 +++++ lisp/window.el | 3 ++- src/ChangeLog | 4 ++++ src/w32term.c | 2 +- 4 files changed, 12 insertions(+), 2 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index fd27eaacc2d..5876dc37fbf 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2013-12-16 Martin Rudalics + + * window.el (display-buffer-below-selected): Bind + split-height-threshold to 0 as suggested by Juri Linkov. + 2013-12-16 Leo Liu * progmodes/compile.el (compile-goto-error): Do not push-mark. diff --git a/lisp/window.el b/lisp/window.el index 5ba2f8ac2b9..c6238ff3516 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)) - (let (split-width-threshold) + (let ((split-height-threshold 0) + split-width-threshold) (setq window (window--try-to-split-window (selected-window) alist))) (window--display-buffer buffer window 'window alist display-buffer-mark-dedicated)) diff --git a/src/ChangeLog b/src/ChangeLog index 7b8a624d629..dbd2298985b 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2013-12-16 Martin Rudalics + + * w32term.c (w32_enable_frame_resize_hack): Default to 1. + 2013-12-16 Dmitry Antipov * font.c (valid_font_driver) [ENABLE_CHECKING]: New function diff --git a/src/w32term.c b/src/w32term.c index e3cdc1d0838..0a8dbb39f7b 100644 --- a/src/w32term.c +++ b/src/w32term.c @@ -6679,7 +6679,7 @@ to the Windows API and changing the pixel sizes of the frame and its windows after the latter calls back. If this is non-nil, Emacs changes the pixel sizes of the frame and its windows at the time it sends the resize request to the API. */); - w32_enable_frame_resize_hack = 0; + w32_enable_frame_resize_hack = 1; /* Tell Emacs about this window system. */ Fprovide (Qw32, Qnil); -- 2.39.2