From 0f9cf754e9b682523136e1839cf9502a8e7d0a4c Mon Sep 17 00:00:00 2001 From: Bo Yao Date: Mon, 20 Aug 2018 01:10:48 -0400 Subject: [PATCH] always switch buffer in same window after click a tab or close a tab --- tabbar.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tabbar.el b/tabbar.el index a0dce4a..ddce61d 100644 --- a/tabbar.el +++ b/tabbar.el @@ -1887,7 +1887,7 @@ mouse-2: pop to buffer, mouse-3: delete other windows" ((eq mouse-button 'mouse-3) (delete-other-windows)) (t - (switch-to-buffer buffer))) + (switch-to-buffer buffer nil t))) ;; Don't show groups. (tabbar-buffer-show-groups nil) )) @@ -1934,7 +1934,7 @@ first." (buffer-live-p sibling)) ;; Move sibling buffer in front of the buffer list. (save-current-buffer - (switch-to-buffer sibling)))))) + (switch-to-buffer sibling nil t)))))) ;;; Tab bar buffer setup ;;