[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#33871: 27.0.50; Revert Dired window saved in window configuration
From: |
Juri Linkov |
Subject: |
bug#33871: 27.0.50; Revert Dired window saved in window configuration |
Date: |
Fri, 29 Mar 2024 18:25:07 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) |
>> + "Non-nil to restore previous context in every window of the selected tab.
>
> I'd write
>
> "If this is non-nil, try to restore window points from their contexts.
>
> and say what a context is next.
>
>> +This will try to find the same position in the buffer where point was
>> +before switching away from this tab. After selecting this tab again,
>
> Why "again"?
>
>> +point will be moved to its previous place in the buffer even when
>> +buffer was modified."
>
> "it" or "the buffer".
Thanks for the suggestions, here is the updated docstring:
diff --git a/lisp/tab-bar.el b/lisp/tab-bar.el
index c51600e6c6c..009dc6eed0c 100644
--- a/lisp/tab-bar.el
+++ b/lisp/tab-bar.el
@@ -1442,6 +1445,16 @@ tab-bar-select-restore-windows
(setq buffer-read-only t)
(set-window-buffer window new-buffer))))))
+(defcustom tab-bar-select-restore-context t
+ "If this is non-nil, try to restore window points from their contexts.
+This will try to find the same position in the buffer where point was
+before switching away from this tab. After selecting this tab,
+point will be moved to its previous place in the buffer even when
+the buffer was modified."
+ :type 'boolean
+ :group 'tab-bar
+ :version "30.1")
+
(defvar tab-bar-minibuffer-restore-tab nil
"Tab number for `tab-bar-minibuffer-restore-tab'.")
- bug#33871: 27.0.50; Revert Dired window saved in window configuration, (continued)
- bug#33871: 27.0.50; Revert Dired window saved in window configuration, Juri Linkov, 2024/03/23
- bug#33871: 27.0.50; Revert Dired window saved in window configuration, martin rudalics, 2024/03/24
- bug#33871: 27.0.50; Revert Dired window saved in window configuration, Juri Linkov, 2024/03/24
- bug#33871: 27.0.50; Revert Dired window saved in window configuration, martin rudalics, 2024/03/25
- bug#33871: 27.0.50; Revert Dired window saved in window configuration, Juri Linkov, 2024/03/25
- bug#33871: 27.0.50; Revert Dired window saved in window configuration, martin rudalics, 2024/03/26
- bug#33871: 27.0.50; Revert Dired window saved in window configuration, Juri Linkov, 2024/03/28
- bug#33871: 27.0.50; Revert Dired window saved in window configuration, martin rudalics, 2024/03/28
- bug#33871: 27.0.50; Revert Dired window saved in window configuration, Juri Linkov, 2024/03/28
- bug#33871: 27.0.50; Revert Dired window saved in window configuration, martin rudalics, 2024/03/29
- bug#33871: 27.0.50; Revert Dired window saved in window configuration,
Juri Linkov <=
- bug#33871: 27.0.50; Revert Dired window saved in window configuration, martin rudalics, 2024/03/30
- bug#33871: 27.0.50; Revert Dired window saved in window configuration, Juri Linkov, 2024/03/30