aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuri Linkov2019-12-16 01:03:55 +0200
committerJuri Linkov2019-12-16 01:03:55 +0200
commitb73c21fa97a4417eeced4b52e9c73100d0693ba9 (patch)
treee318713bf84184e365f670b86683632cce43b8dc
parent35388c56795822d7811878dcf1e105a369ffb044 (diff)
downloademacs-b73c21fa97a4417eeced4b52e9c73100d0693ba9.tar.gz
emacs-b73c21fa97a4417eeced4b52e9c73100d0693ba9.zip
* lisp/tab-bar.el (tab-bar-select-tab): Message about selected tab (bug#38624)
-rw-r--r--lisp/tab-bar.el8
1 files changed, 6 insertions, 2 deletions
diff --git a/lisp/tab-bar.el b/lisp/tab-bar.el
index e045a778656..180db4d3e0c 100644
--- a/lisp/tab-bar.el
+++ b/lisp/tab-bar.el
@@ -582,7 +582,10 @@ to the numeric argument. ARG counts from 1."
582 582
583 (when from-index 583 (when from-index
584 (setf (nth from-index tabs) from-tab)) 584 (setf (nth from-index tabs) from-tab))
585 (setf (nth to-index tabs) (tab-bar--current-tab (nth to-index tabs)))) 585 (setf (nth to-index tabs) (tab-bar--current-tab (nth to-index tabs)))
586
587 (unless tab-bar-mode
588 (message "Selected tab '%s'" (alist-get 'name to-tab))))
586 589
587 (force-mode-line-update)))) 590 (force-mode-line-update))))
588 591
@@ -869,7 +872,8 @@ for the last tab on a frame is determined by
869 (1- current-index))) 872 (1- current-index)))
870 ('recent (tab-bar--tab-index-recent 1 tabs)))))) 873 ('recent (tab-bar--tab-index-recent 1 tabs))))))
871 (setq to-index (max 0 (min (or to-index 0) (1- (length tabs))))) 874 (setq to-index (max 0 (min (or to-index 0) (1- (length tabs)))))
872 (tab-bar-select-tab (1+ to-index)) 875 (let ((inhibit-message t)) ; avoid message about selected tab
876 (tab-bar-select-tab (1+ to-index)))
873 ;; Re-read tabs after selecting another tab 877 ;; Re-read tabs after selecting another tab
874 (setq tabs (funcall tab-bar-tabs-function)))) 878 (setq tabs (funcall tab-bar-tabs-function))))
875 879