diff options
| author | Chong Yidong | 2011-09-13 15:10:32 -0400 |
|---|---|---|
| committer | Chong Yidong | 2011-09-13 15:10:32 -0400 |
| commit | 85e9c04bf3633646b6d41ef0474805af6383a508 (patch) | |
| tree | 68d7a652c7eb27cd19f2c3722a01a31be527c31d | |
| parent | 1b36ed6a22af524449e44f597885fabd1ae3863f (diff) | |
| download | emacs-85e9c04bf3633646b6d41ef0474805af6383a508.tar.gz emacs-85e9c04bf3633646b6d41ef0474805af6383a508.zip | |
* lisp/window.el (window-deletable-p): Use next-frame.
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/window.el | 13 |
2 files changed, 8 insertions, 9 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index f543bd0eb03..73384823c48 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2011-09-13 Chong Yidong <cyd@stupidchicken.com> | ||
| 2 | |||
| 3 | * window.el (window-deletable-p): Use next-frame. | ||
| 4 | |||
| 1 | 2011-09-13 Martin Rudalics <rudalics@gmx.at> | 5 | 2011-09-13 Martin Rudalics <rudalics@gmx.at> |
| 2 | 6 | ||
| 3 | * window.el (window-auto-delete): Remove. | 7 | * window.el (window-auto-delete): Remove. |
diff --git a/lisp/window.el b/lisp/window.el index 26d29db4993..3a229a4e447 100644 --- a/lisp/window.el +++ b/lisp/window.el | |||
| @@ -2274,15 +2274,10 @@ frame." | |||
| 2274 | (buffer (window-buffer window))) | 2274 | (buffer (window-buffer window))) |
| 2275 | (cond | 2275 | (cond |
| 2276 | ((frame-root-window-p window) | 2276 | ((frame-root-window-p window) |
| 2277 | ;; WINDOW's frame can be deleted only if there are other visible | 2277 | ;; WINDOW's frame can be deleted only if there are other frames |
| 2278 | ;; frames on the same terminal. | 2278 | ;; on the same terminal. |
| 2279 | (when (let ((terminal (frame-terminal frame))) | 2279 | (unless (eq frame (next-frame frame 0)) |
| 2280 | (catch 'found | 2280 | 'frame)) |
| 2281 | (dolist (f (delq frame (frame-list))) | ||
| 2282 | (and (eq terminal (frame-terminal f)) | ||
| 2283 | (frame-visible-p f) | ||
| 2284 | (throw 'found t))))) | ||
| 2285 | 'frame)) | ||
| 2286 | ((or ignore-window-parameters | 2281 | ((or ignore-window-parameters |
| 2287 | (not (eq (window-parameter window 'window-side) 'none)) | 2282 | (not (eq (window-parameter window 'window-side) 'none)) |
| 2288 | (and parent (eq (window-parameter parent 'window-side) 'none))) | 2283 | (and parent (eq (window-parameter parent 'window-side) 'none))) |