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: Sat, 19 Feb 2022 19:08:12 +0200 Organization: LINKOV.NET Message-ID: <86fsoezsw3.fsf@mail.linkov.net> References: <87bm59mglk.fsf@mail.linkov.net> <87fsoo323s.fsf@gnus.org> <86h792x3wv.fsf@mail.linkov.net> <119a9c2c-e27f-6c3a-07ad-66bc76fc58cf@gmx.at> <861r05co9l.fsf@mail.linkov.net> <86zgmsne32.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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2705"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) Cc: 33871@debbugs.gnu.org, Lars Ingebrigtsen To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Feb 19 18:10:44 2022 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 1nLTFs-0000Xp-M9 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 19 Feb 2022 18:10:44 +0100 Original-Received: from localhost ([::1]:54872 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nLTFr-0002oD-Lz for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 19 Feb 2022 12:10:43 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:34748) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nLTEF-0000R3-7Y for bug-gnu-emacs@gnu.org; Sat, 19 Feb 2022 12:09:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36523) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nLTED-0006QH-R5 for bug-gnu-emacs@gnu.org; Sat, 19 Feb 2022 12:09:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nLTED-0002mB-Mk for bug-gnu-emacs@gnu.org; Sat, 19 Feb 2022 12:09:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 19 Feb 2022 17:09: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.164529053210655 (code B ref 33871); Sat, 19 Feb 2022 17:09:01 +0000 Original-Received: (at 33871) by debbugs.gnu.org; 19 Feb 2022 17:08:52 +0000 Original-Received: from localhost ([127.0.0.1]:58653 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nLTE4-0002lm-Jl for submit@debbugs.gnu.org; Sat, 19 Feb 2022 12:08:52 -0500 Original-Received: from relay12.mail.gandi.net ([217.70.178.232]:46653) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nLTE3-0002lZ-1Z for 33871@debbugs.gnu.org; Sat, 19 Feb 2022 12:08:51 -0500 Original-Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id B8DC5200006; Sat, 19 Feb 2022 17:08:42 +0000 (UTC) In-Reply-To: <9df28298-fedc-0cfe-7243-c04868115e90@gmx.at> (martin rudalics's message of "Sat, 19 Feb 2022 10:37:40 +0100") 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" Xref: news.gmane.io gmane.emacs.bugs:227197 Archived-At: >> (when pos >> (with-selected-window w >> (dired-goto-file (nth 0 pos))) >> (set-window-start w (nth 1 pos)) >> (set-window-point w (nth 2 pos)))))))) > > Shouldn't you call 'dired-goto-file' last here? Otherwise, wouldn't > 'set-window-point' override it? Then probably 'set-window-point' is not needed. > And how would you handle the general case where a directory gets > reverted in between saving and restoring a window configuration? If you > don't want to use timestamps, saving and restoring window configurations > would have to provide some special hooks and data structures for storing > such extra information. I don't understand the problem. 'dired-goto-file' can go to the file even after a directory gets reverted.