From: Martin Rudalics Date: Mon, 16 Dec 2013 09:58:44 +0000 (+0100) Subject: Fix recent w32_enable_frame_resize_hack and display-buffer-below-selected fixes. X-Git-Tag: emacs-24.3.90~173^2^2~42^2~45^2~387^2~393 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d144ef069cf0b05c528ad9725ca0c06763be6d5b;p=emacs.git 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. --- 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);