mirror of
https://github.com/pestctrl/emacs-config.git
synced 2026-06-14 04:11:18 +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 ()
|
||||
(interactive)
|
||||
(let ((old-name (alist-get 'name (tab-bar--current-tab))))
|
||||
(when (y-or-n-p (format "Close tab \"%s\"? "
|
||||
old-name))
|
||||
(tab-bar-close-tab))))
|
||||
(aprog1 (y-or-n-p (format "Close tab \"%s\"? "
|
||||
old-name))
|
||||
(when it
|
||||
(tab-bar-close-tab)))))
|
||||
|
||||
(defun tab-bar-report ()
|
||||
(interactive)
|
||||
|
|
|
|||
Loading…
Reference in a new issue