[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [patch] two patchs about tab-bar.el
From: |
Juri Linkov |
Subject: |
Re: [patch] two patchs about tab-bar.el |
Date: |
Fri, 10 Sep 2021 09:33:48 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) |
> * lisp/tab-bar.el (tab-bar-get-buffer-tab): Fix issue when
> 'current-tab is not at the beginning of tabs.
>
> --- a/lisp/tab-bar.el
> +++ b/lisp/tab-bar.el
> @@ -1940,7 +1940,9 @@ tab-bar-get-buffer-tab
> - (funcall tab-bar-tabs-function frame)))
> + (let ((tabs (funcall tab-bar-tabs-function frame)))
> + ;; Make sure current-tab is alway at the beginning of tabs.
> + (push (assq 'current-tab tabs) tabs))))
Please explain what problem this patch is intended to fix.
> --- a/lisp/tab-bar.el
> +++ b/lisp/tab-bar.el
> @@ -1962,11 +1962,12 @@ display-buffer-in-tab
>
> If ALIST contains a `reusable-frames' entry, its value determines
> which frames to search for a reusable tab:
> - nil -- the selected frame (actually the last non-minibuffer frame)
> + nil -- do not reuse any frames.
> A frame -- just that frame
> `visible' -- all visible frames
> 0 -- all frames on the current terminal
> t -- all frames.
> + others -- selected frame.
I wonder where did you get the value 'others' that means the selected frame?
Re: [patch] two patchs about tab-bar.el, Feng Shu, 2021/09/10