Function: eca-chat--tab-line-close-tab
eca-chat--tab-line-close-tab is an interactive and natively compiled
function defined in eca-chat.el.
Signature
(eca-chat--tab-line-close-tab &optional E)
Documentation
Close the chat tab clicked on.
The chat's kill-buffer hook switches any window showing it to a
sibling chat first, so the dedicated chat window keeps showing a
chat. E is the mouse event.
Key Bindings
eca-chat--tab-close-map <tab-line> <mouse-1> eca-chat--tab-close-map <tab-line> <mouse-2>
Source Code
;; Defined in /nix/store/jklqzw6pzz6j4jrbv8wy0iwgi7jlrbld-emacs-packages-deps/share/emacs/site-lisp/elpa/eca-20260928.1827/eca-chat.el
(defun eca-chat--tab-line-close-tab (&optional e)
"Close the chat tab clicked on.
The chat's `kill-buffer' hook switches any window showing it to a
sibling chat first, so the dedicated chat window keeps showing a
chat. E is the mouse event."
(interactive "e")
(let* ((posnp (event-start e))
(tab-prop (get-pos-property 1 'tab (car (posn-string posnp))))
(buffer (if (bufferp tab-prop)
tab-prop
(cdr (assq 'buffer tab-prop)))))
(when (and buffer (buffer-live-p buffer))
(kill-buffer buffer))))