Function: xwidget-kill-buffer-query-function
xwidget-kill-buffer-query-function is a byte-compiled function defined
in xwidget.el.gz.
Signature
(xwidget-kill-buffer-query-function)
Documentation
Ask before killing a buffer that has xwidgets.
Source Code
;; Defined in /usr/src/emacs/lisp/xwidget.el.gz
(defun xwidget-kill-buffer-query-function ()
"Ask before killing a buffer that has xwidgets."
(let ((xwidgets (get-buffer-xwidgets (current-buffer))))
(or (not xwidgets)
(not (memq t (mapcar #'xwidget-query-on-exit-flag xwidgets)))
(yes-or-no-p
(format "Buffer %S has xwidgets; kill it? " (buffer-name))))))