[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: tab-bar: Making a new tab without no-delete-other-windows windows
From: |
Juri Linkov |
Subject: |
Re: tab-bar: Making a new tab without no-delete-other-windows windows |
Date: |
Sat, 25 Sep 2021 22:25:29 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) |
>> @@ -1245,7 +1245,8 @@ tab-bar-new-tab-to
>> ;; Handle the case when it's called in the active minibuffer.
>> (when (minibuffer-selected-window)
>> (select-window (minibuffer-selected-window)))
>> - (delete-other-windows)
>> + (let ((ignore-window-parameters t))
>> + (delete-other-windows))
>> ;; Create a new window to get rid of old window parameters
>> ;; (e.g. prev/next buffers) of old window.
>> (split-window) (delete-window)
>
> For myself, I have no objection to that. :) But I could imagine that
> some users might sometimes have a side window that they would want to
> persist when making a new tab; in that case, I guess that change would
> prevent them from doing that. Then again, that might be very rare,
> considering how uncommon it seems to be to use dedicated side windows,
> in general. So I don't know what would be best.
In such case the users can duplicate the current tab that will keep
all dedicated side windows. So now pushed this change.