diff options
| author | Martin Rudalics | 2008-06-06 08:01:29 +0000 |
|---|---|---|
| committer | Martin Rudalics | 2008-06-06 08:01:29 +0000 |
| commit | 0a3a94b3d28f55ceb4d443da17c00c9bda83eb4a (patch) | |
| tree | 9c27d7eac01ad5bd185b2a752c8f0bd4899ec94f | |
| parent | 10b6d5c455c4b479ff27eb8ea0882c098cae2b18 (diff) | |
| download | emacs-0a3a94b3d28f55ceb4d443da17c00c9bda83eb4a.tar.gz emacs-0a3a94b3d28f55ceb4d443da17c00c9bda83eb4a.zip | |
(display-buffer): Remove dead call to get-lru-window.
| -rw-r--r-- | lisp/ChangeLog | 17 | ||||
| -rw-r--r-- | lisp/window.el | 6 |
2 files changed, 15 insertions, 8 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index f0540dab168..156e51b1b70 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2008-06-06 Martin Rudalics <rudalics@gmx.at> | ||
| 2 | |||
| 3 | * window.el (display-buffer): Remove dead call to get-lru-window. | ||
| 4 | |||
| 1 | 2008-06-06 Stefan Monnier <monnier@iro.umontreal.ca> | 5 | 2008-06-06 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 6 | ||
| 3 | * mail/sendmail.el (mail-interactive): Change default. | 7 | * mail/sendmail.el (mail-interactive): Change default. |
| @@ -22,13 +26,14 @@ | |||
| 22 | (special-display-buffer-names, special-display-regexps) | 26 | (special-display-buffer-names, special-display-regexps) |
| 23 | (special-display-function, same-window-p, same-window-buffer-names) | 27 | (special-display-function, same-window-p, same-window-buffer-names) |
| 24 | (same-window-regexps, pop-up-frames, display-buffer-reuse-frames) | 28 | (same-window-regexps, pop-up-frames, display-buffer-reuse-frames) |
| 25 | (pop-up-frame-function, pop-up-windows) | 29 | (pop-up-frame-function, pop-up-windows, even-window-heights) |
| 26 | (split-window-preferred-function, split-height-threshold) | 30 | (split-window-preferred-function, split-height-threshold) |
| 27 | (split-width-threshold, window--splittable-p) | 31 | (window--display-buffer-1, display-buffer, pop-to-buffer): Move |
| 28 | (window--try-to-split-window, window--frame-usable-p) | 32 | from window.c and buffer.c. |
| 29 | (even-window-heights, window--even-window-heights) | 33 | (window--splittable-p, window--try-to-split-window) |
| 30 | (window--display-buffer-1, window--display-buffer-2, display-buffer) | 34 | (window--frame-usable-p, window--display-buffer-2) |
| 31 | (pop-to-buffer): Move from window.c and buffer.c. | 35 | (window--even-window-heights): New functions. |
| 36 | (split-width-threshold): New option. | ||
| 32 | (split-window-preferred-horizontally): Remove. | 37 | (split-window-preferred-horizontally): Remove. |
| 33 | * cus-start.el: Remove corresponding declarations. | 38 | * cus-start.el: Remove corresponding declarations. |
| 34 | 39 | ||
diff --git a/lisp/window.el b/lisp/window.el index 3d2c02d7fc7..96511250ce0 100644 --- a/lisp/window.el +++ b/lisp/window.el | |||
| @@ -849,6 +849,9 @@ returned by `split-window' or `split-window-preferred-function'." | |||
| 849 | (defun window--frame-usable-p (frame) | 849 | (defun window--frame-usable-p (frame) |
| 850 | "Return frame FRAME if it can be used to display another buffer." | 850 | "Return frame FRAME if it can be used to display another buffer." |
| 851 | (let ((window (frame-root-window frame))) | 851 | (let ((window (frame-root-window frame))) |
| 852 | ;; `frame-root-window' may be an internal window which is considered | ||
| 853 | ;; "dead" by `window-live-p'. Hence if `window' is not live we | ||
| 854 | ;; implicitly know that `frame' has a visible window we can use. | ||
| 852 | (when (or (not (window-live-p window)) | 855 | (when (or (not (window-live-p window)) |
| 853 | (and (not (window-minibuffer-p window)) | 856 | (and (not (window-minibuffer-p window)) |
| 854 | (not (window-dedicated-p window)))) | 857 | (not (window-dedicated-p window)))) |
| @@ -1012,8 +1015,7 @@ consider all visible or iconified frames." | |||
| 1012 | (get-largest-window 'visible nil) | 1015 | (get-largest-window 'visible nil) |
| 1013 | (get-buffer-window buffer 0) | 1016 | (get-buffer-window buffer 0) |
| 1014 | (get-largest-window 0 nil) | 1017 | (get-largest-window 0 nil) |
| 1015 | (frame-selected-window (funcall pop-up-frame-function)) | 1018 | (frame-selected-window (funcall pop-up-frame-function)))) |
| 1016 | (get-lru-window t t))) | ||
| 1017 | (window--even-window-heights window-to-use) | 1019 | (window--even-window-heights window-to-use) |
| 1018 | (window--display-buffer-2 buffer window-to-use))))) | 1020 | (window--display-buffer-2 buffer window-to-use))))) |
| 1019 | 1021 | ||