Variable: with-editor-cancel-query-functions
with-editor-cancel-query-functions is a customizable variable defined
in with-editor.el.
Value
nil
Documentation
List of functions called to query before canceling session.
The buffer in question is current while the functions are called. If any of them returns nil, then the session is not canceled and the buffer is not killed. The user should then fix the issue and try again. The functions are called with one argument. If it is non-nil then that indicates that the user used a prefix argument to force canceling the session despite issues. Functions should usually honor that and return non-nil.
Source Code
;; Defined in ~/.emacs.d/elpa/with-editor-20260301.1317/with-editor.el
(defcustom with-editor-cancel-query-functions nil
"List of functions called to query before canceling session.
The buffer in question is current while the functions are called.
If any of them returns nil, then the session is not canceled and
the buffer is not killed. The user should then fix the issue and
try again. The functions are called with one argument. If it is
non-nil then that indicates that the user used a prefix argument
to force canceling the session despite issues. Functions should
usually honor that and return non-nil."
:group 'with-editor
:type 'hook)