+2011-10-08 Martin Rudalics <rudalics@gmx.at>
+
+ * window.el (window--delete): Delete dedicated frame
+ unconditionally when argument KILL is non-nil. (Bug#9699)
+
2011-10-08 Thierry Volpiatto <thierry.volpiatto@gmail.com>
* lisp/eshell/eshell.el (eshell-command): Avoid using hooks.
Optional argument DEDICATED-ONLY non-nil means to delete WINDOW
only if it's dedicated to its buffer. Optional argument KILL
means the buffer shown in window will be killed. Return non-nil
-if WINDOW gets deleted."
+if WINDOW gets deleted or its frame is auto-hidden."
(setq window (window-normalize-live-window window))
(unless (and dedicated-only (not (window-dedicated-p window)))
(let* ((buffer (window-buffer window))
(cond
((eq deletable 'frame)
(let ((frame (window-frame window)))
- (when (functionp frame-auto-hide-function)
- (funcall frame-auto-hide-function frame)))
+ (cond
+ (kill
+ (delete-frame frame))
+ ((functionp frame-auto-hide-function)
+ (funcall frame-auto-hide-function frame))))
'frame)
(deletable
(delete-window window)