mirror of
https://github.com/pestctrl/emacs-config.git
synced 2026-06-14 12:21:20 +00:00
Return whether the tab was really closed
This commit is contained in:
parent
56ff85b49a
commit
781190964a
1 changed files with 4 additions and 3 deletions
|
|
@ -74,9 +74,10 @@
|
||||||
(defun close-tab-switch ()
|
(defun close-tab-switch ()
|
||||||
(interactive)
|
(interactive)
|
||||||
(let ((old-name (alist-get 'name (tab-bar--current-tab))))
|
(let ((old-name (alist-get 'name (tab-bar--current-tab))))
|
||||||
(when (y-or-n-p (format "Close tab \"%s\"? "
|
(aprog1 (y-or-n-p (format "Close tab \"%s\"? "
|
||||||
old-name))
|
old-name))
|
||||||
(tab-bar-close-tab))))
|
(when it
|
||||||
|
(tab-bar-close-tab)))))
|
||||||
|
|
||||||
(defun tab-bar-report ()
|
(defun tab-bar-report ()
|
||||||
(interactive)
|
(interactive)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue