From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#33871: 27.0.50; Revert Dired window saved in window configuration Date: Fri, 29 Mar 2024 18:25:07 +0200 Organization: LINKOV.NET Message-ID: <86msqhhvm4.fsf@mail.linkov.net> References: <87bm59mglk.fsf@mail.linkov.net> <86wmr2w7to.fsf@mail.linkov.net> <3808f9f8-624a-449c-8572-085582395859@gmx.at> <86y1bffvya.fsf@mail.linkov.net> <8634skstio.fsf@mail.linkov.net> <86msqr79n8.fsf@mail.linkov.net> <532c59dc-59af-4454-b926-2f80fe711fe9@gmx.at> <86zfuq5jxj.fsf@mail.linkov.net> <5cf2b85e-9e24-4a7d-b175-ce140580df32@gmx.at> <86plvksv1e.fsf@mail.linkov.net> <578de52d-364b-4961-b4e2-7f91cdcaa0b9@gmx.at> <86frwf8w4q.fsf@mail.linkov.net> <128b074a-b766-47eb-92ff-79814c900a06@gmx.at> <86v85adzmd.fsf@mail.linkov.net> <86le62vpew.fsf@mail.linkov.net> <86sf0actmb.fsf@mail.linkov.net> <140cbfe8-c2b7-42cf-9500-82e2eab1278e@gmx.at> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9582"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) Cc: 33871@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Mar 29 17:36:41 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rqFDd-0002ML-5X for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 29 Mar 2024 17:36:41 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rqFD2-00046u-8N; Fri, 29 Mar 2024 12:36:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rqFCy-00045u-PR for bug-gnu-emacs@gnu.org; Fri, 29 Mar 2024 12:36:00 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rqFCy-0004EI-AT for bug-gnu-emacs@gnu.org; Fri, 29 Mar 2024 12:36:00 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rqFCz-0002d0-LC for bug-gnu-emacs@gnu.org; Fri, 29 Mar 2024 12:36:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 29 Mar 2024 16:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33871 X-GNU-PR-Package: emacs Original-Received: via spool by 33871-submit@debbugs.gnu.org id=B33871.171173015310068 (code B ref 33871); Fri, 29 Mar 2024 16:36:01 +0000 Original-Received: (at 33871) by debbugs.gnu.org; 29 Mar 2024 16:35:53 +0000 Original-Received: from localhost ([127.0.0.1]:43281 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rqFCq-0002cF-S4 for submit@debbugs.gnu.org; Fri, 29 Mar 2024 12:35:53 -0400 Original-Received: from relay1-d.mail.gandi.net ([217.70.183.193]:45485) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rqFCo-0002bZ-5Z for 33871@debbugs.gnu.org; Fri, 29 Mar 2024 12:35:51 -0400 Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id 35645240005; Fri, 29 Mar 2024 16:35:40 +0000 (UTC) In-Reply-To: <140cbfe8-c2b7-42cf-9500-82e2eab1278e@gmx.at> (martin rudalics's message of "Fri, 29 Mar 2024 09:45:03 +0100") X-GND-Sasl: juri@linkov.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:282308 Archived-At: >> + "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'.")