Function: eca-chat--user-initiated-kill-p

eca-chat--user-initiated-kill-p is a natively compiled function defined in eca-chat.el.

Signature

(eca-chat--user-initiated-kill-p)

Documentation

Return non-nil when the current command is closing this live chat.

Only explicit kill commands and eca's own commands count, so that incidental kill-buffer calls from unrelated code do not tear the chat down. Chats already marked eca-chat--closed, and buffers without a chat id, are never considered.

Source Code

;; Defined in /nix/store/jklqzw6pzz6j4jrbv8wy0iwgi7jlrbld-emacs-packages-deps/share/emacs/site-lisp/elpa/eca-20260928.1827/eca-chat.el
(defun eca-chat--user-initiated-kill-p ()
  "Return non-nil when the current command is closing this live chat.
Only explicit kill commands and eca's own commands count, so that
incidental `kill-buffer' calls from unrelated code do not tear the
chat down.  Chats already marked `eca-chat--closed', and buffers
without a chat id, are never considered."
  (and (or (eq #'kill-current-buffer this-command)
           (eq #'kill-buffer this-command)
           (and (symbolp this-command)
                (string-prefix-p "eca-" (symbol-name this-command))))
       eca-chat--id
       (not eca-chat--closed)))