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: Tue, 09 Apr 2024 09:44:34 +0300 Organization: LINKOV.NET Message-ID: <868r1nhw6l.fsf@mail.linkov.net> References: <87bm59mglk.fsf@mail.linkov.net> <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> <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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38184"; 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 Tue Apr 09 08:46:29 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 1ru5FU-0009p6-Cm for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 09 Apr 2024 08:46:28 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ru5FC-0006CL-Bt; Tue, 09 Apr 2024 02:46:14 -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 1ru5Ez-0006Bl-3g for bug-gnu-emacs@gnu.org; Tue, 09 Apr 2024 02:45:58 -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 1ru5Ey-0000vU-Qa for bug-gnu-emacs@gnu.org; Tue, 09 Apr 2024 02:45:56 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ru5F6-0000tj-J1 for bug-gnu-emacs@gnu.org; Tue, 09 Apr 2024 02:46:04 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 09 Apr 2024 06:46:04 +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.17126451373224 (code B ref 33871); Tue, 09 Apr 2024 06:46:04 +0000 Original-Received: (at 33871) by debbugs.gnu.org; 9 Apr 2024 06:45:37 +0000 Original-Received: from localhost ([127.0.0.1]:48131 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ru5Ef-0000pw-8X for submit@debbugs.gnu.org; Tue, 09 Apr 2024 02:45:37 -0400 Original-Received: from relay5-d.mail.gandi.net ([217.70.183.197]:35901) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ru5Eb-0000oa-Km for 33871@debbugs.gnu.org; Tue, 09 Apr 2024 02:45:34 -0400 Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id 56BC31C0006; Tue, 9 Apr 2024 06:45:17 +0000 (UTC) In-Reply-To: <96fd3170-e5d2-4d16-93ec-c6fff3efb787@gmx.at> (martin rudalics's message of "Fri, 16 Feb 2024 10:41:01 +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:282971 Archived-At: > Note that > > + (with-selected-window w > + (when (functionp window-set-context-function) > > and > > + (with-selected-window w > + (when-let ((context (window-parameter w 'context))) > > would set up a precedence case for the future use of > 'window-set-context-function'. Are you sure that you always want to > select the window in question here or would it suffice to pass the > window as argument to the context function? With 'with-selected-window' the code was so simple: just one call 'with-selected-window' and no special handling needed. But without 'with-selected-window' the code became more complicated and error-prone. I just found another place that needed to use the window's buffer, and fixed it. I don't know maybe 'with-selected-window' was not too bad? Or it has other problems?