diff options
author | Martin Rudalics <rudalics@gmx.at> | 2013-07-25 11:58:27 +0200 |
---|---|---|
committer | Martin Rudalics <rudalics@gmx.at> | 2013-07-25 11:58:27 +0200 |
commit | f47ad11b6b9db136d1fdbfdb4ac575d620d14597 (patch) | |
tree | e2a74b2ad2cd87834dc420dc204babbfd18e7423 /lisp/window.el | |
parent | f63ebeb54e453b3da139d3495eb2f1f59bab46c7 (diff) | |
download | emacs-f47ad11b6b9db136d1fdbfdb4ac575d620d14597.tar.gz |
In display-buffer bind split-window-keep-point to t, bug#14829.
* window.el (display-buffer): In display-buffer bind
split-window-keep-point to t, bug#14829.
Diffstat (limited to 'lisp/window.el')
-rw-r--r-- | lisp/window.el | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lisp/window.el b/lisp/window.el index a2acd2a81b0..86d93c0a9f6 100644 --- a/lisp/window.el +++ b/lisp/window.el @@ -5470,6 +5470,9 @@ argument, ACTION is t." (let ((buffer (if (bufferp buffer-or-name) buffer-or-name (get-buffer buffer-or-name))) + ;; Make sure that when we split windows the old window keeps + ;; point, bug#14829. + (split-window-keep-point t) ;; Handle the old form of the first argument. (inhibit-same-window (and action (not (listp action))))) (unless (listp action) (setq action nil)) |