diff options
| author | Stefan Monnier | 2008-11-18 20:45:21 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2008-11-18 20:45:21 +0000 |
| commit | 064e57de239f3c3d03a035a9f56c71037715b40e (patch) | |
| tree | 3b89e50742307bc5c2f74a96cd406316f368fe67 | |
| parent | 35b05a7793f3e0f702ee8cd5aec68b2acbe815cd (diff) | |
| download | emacs-064e57de239f3c3d03a035a9f56c71037715b40e.tar.gz emacs-064e57de239f3c3d03a035a9f56c71037715b40e.zip | |
(window--frame-usable-p): Consider dedicated windows as usable.
| -rw-r--r-- | lisp/ChangeLog | 2 | ||||
| -rw-r--r-- | lisp/window.el | 7 |
2 files changed, 8 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 0d76f444be9..44592db06ac 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | 2008-11-18 Stefan Monnier <monnier@iro.umontreal.ca> | 1 | 2008-11-18 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 2 | ||
| 3 | * window.el (window--frame-usable-p): Consider dedicated windows as usable. | ||
| 4 | |||
| 3 | * files.el (confirm-nonexistent-file-or-buffer): | 5 | * files.el (confirm-nonexistent-file-or-buffer): |
| 4 | Rename from find-file-confirm-nonexistent-file. | 6 | Rename from find-file-confirm-nonexistent-file. |
| 5 | (read-buffer-to-switch): Use it. | 7 | (read-buffer-to-switch): Use it. |
diff --git a/lisp/window.el b/lisp/window.el index 8657842cfb8..02af7bd6c54 100644 --- a/lisp/window.el +++ b/lisp/window.el | |||
| @@ -872,7 +872,12 @@ by `split-window' (or `split-window-preferred-function')." | |||
| 872 | (unless (and (window-live-p window) | 872 | (unless (and (window-live-p window) |
| 873 | (or (window-minibuffer-p window) | 873 | (or (window-minibuffer-p window) |
| 874 | ;; If the window is soft-dedicated, the frame is usable. | 874 | ;; If the window is soft-dedicated, the frame is usable. |
| 875 | (eq t (window-dedicated-p window)))) | 875 | ;; Actually, even if the window is really dedicated, |
| 876 | ;; the frame is still usable by splitting it. | ||
| 877 | ;; At least Emacs-22 allowed it, and it is desirable | ||
| 878 | ;; when displaying same-frame windows. | ||
| 879 | nil ; (eq t (window-dedicated-p window)) | ||
| 880 | )) | ||
| 876 | frame)))) | 881 | frame)))) |
| 877 | 882 | ||
| 878 | (defcustom even-window-heights t | 883 | (defcustom even-window-heights t |