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: Thu, 21 Mar 2024 19:54:51 +0200 Organization: LINKOV.NET Message-ID: <86msqr79n8.fsf@mail.linkov.net> References: <87bm59mglk.fsf@mail.linkov.net> <86sfsi29yc.fsf@mail.linkov.net> <1830e7af-27a8-ac7f-ba6f-fa2006139208@gmx.at> <86fsohmqn9.fsf@mail.linkov.net> <9df28298-fedc-0cfe-7243-c04868115e90@gmx.at> <86fsoezsw3.fsf@mail.linkov.net> <86sfsewvxr.fsf@mail.linkov.net> <9d741b43-e3bb-669b-b345-6b877c902b33@gmx.at> <86fsoaq4lo.fsf@mail.linkov.net> <86tucp7dbp.fsf@mail.linkov.net> <37e2129c-464f-7f0a-0870-f7360ca21dc3@gmx.at> <86zfw07tbw.fsf@mail.linkov.net> <96fd3170-e5d2-4d16-93ec-c6fff3efb787@gmx.at> <86wmr2w7to.fsf@mail.linkov.net> <3808f9f8-624a-449c-8572-085582395859@gmx.at> <86y1bffvya.fsf@mail.linkov.net> <8634skstio.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2343"; 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 Thu Mar 21 19:02:49 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 1rnMkY-00009e-Cd for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 21 Mar 2024 19:02:46 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rnMkD-0002DC-Q3; Thu, 21 Mar 2024 14:02:25 -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 1rnMkB-0002Ci-Rs for bug-gnu-emacs@gnu.org; Thu, 21 Mar 2024 14:02:23 -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 1rnMkA-0007w6-Pl for bug-gnu-emacs@gnu.org; Thu, 21 Mar 2024 14:02:22 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rnMko-0004cP-FE for bug-gnu-emacs@gnu.org; Thu, 21 Mar 2024 14:03:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 21 Mar 2024 18:03:02 +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.171104412717625 (code B ref 33871); Thu, 21 Mar 2024 18:03:02 +0000 Original-Received: (at 33871) by debbugs.gnu.org; 21 Mar 2024 18:02:07 +0000 Original-Received: from localhost ([127.0.0.1]:48894 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rnMjv-0004aC-FC for submit@debbugs.gnu.org; Thu, 21 Mar 2024 14:02:07 -0400 Original-Received: from mslow1.mail.gandi.net ([217.70.178.240]:35223) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rnMjs-0004Zx-Hf for 33871@debbugs.gnu.org; Thu, 21 Mar 2024 14:02:05 -0400 Original-Received: from relay6-d.mail.gandi.net (unknown [217.70.183.198]) by mslow1.mail.gandi.net (Postfix) with ESMTP id 85A17C3D04 for <33871@debbugs.gnu.org>; Thu, 21 Mar 2024 18:00:05 +0000 (UTC) Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id BB71FC0002; Thu, 21 Mar 2024 17:59:44 +0000 (UTC) In-Reply-To: (martin rudalics's message of "Thu, 21 Mar 2024 10:20:21 +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:281912 Archived-At: >> Avoiding select-window removed simplicity and now requires >> adding more handling and more testing. But finally >> everything works correctly. Please review the new patch: > > Can you please provide me with a complete scenario the old code got > wrong? I'm rather confused by the number of different bugs we've been > trying to solve here. There are two scenarios that this patch will fix: 1. switching tabs with the same reverted Dired buffer For example, a. create two windows with the same Dired buffer (e.g. split-window) b. clone the tab with 'C-x t n' c. revert Dired buffer with 'g' d. switch back to the previous tab e. observe that point in the non-selected Dired window relocates to the top of the buffer f. in Emacs 30 point is relocated also in the selected window 2. second scenario for file buffers: a. visit a file buffer b. clone the tab with 'C-x t n' c. edit the same file buffer before the previous point d. save the desktop (that turns markers into integers) e. restart Emacs and load the desktop f. optionally edit the same buffer again g. switch back to the previous tab h. due to integer positions point is restored in a random place The patch uses the context functions to restore the right position. > IIUC the original Bug#33871 is still unsolved. The proposed patch will close bug#33871. > Bug#33532 as well. Bug#33532 could be closed as well due to new context functions. > What about Bug#68235 and Bug#69093? Bug#68235 is closed, but the patch will solve the issue mentioned in https://debbugs.gnu.org/68235#79 starting with the words: "BTW, there is another problem when the same buffer is displayed in two tabs/window-configurations." Bug#69093 is completely fixed. > And Bug#12253? Bug#12253 is unrelated, but thanks for reminder, it should be addressed later as well.