]> git.eshelyaron.com Git - emacs.git/commit
Fix two issues with 'window-deletable-p'
authorMartin Rudalics <rudalics@gmx.at>
Wed, 21 Aug 2024 08:54:53 +0000 (10:54 +0200)
committerEshel Yaron <me@eshelyaron.com>
Wed, 21 Aug 2024 09:56:29 +0000 (11:56 +0200)
commit0d6dca4d0d59f22493c458227ef924b545c002c6
treec2d1c22f18c1b73c6ae5c6da8771775dd9e689e0
parent57f257f8526170e2daa0b295d054c4f7e7e40aab
Fix two issues with 'window-deletable-p'

* lisp/window.el (window-deletable-functions): Clarify
doc-string.
(window-deletable-p): Handle check whether WINDOW's frame can be
deleted via new function 'frame-deletable-p' (a comparison with
the frame returned by 'next-frame' fails in too many cases).  Do
not try to run 'window-deletable-functions' in WINDOW's buffer
when WINDOW is internal.
* lisp/frame.el (frame-deletable-p): New function.
* doc/lispref/frames.texi (Deleting Frames): Describe new
function 'frame-deletable-p'.
* etc/NEWS: Mention 'frame-deletable-p'.

(cherry picked from commit bd647f361415d6c06913e4fa11a1a7ab6ab4ce02)
doc/lispref/frames.texi
etc/NEWS
lisp/frame.el
lisp/window.el