From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: martin rudalics via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#74246: [PATCH] Reuse display windows in image-dired Date: Wed, 4 Dec 2024 08:59:59 +0100 Message-ID: <90c5f5d6-37f3-41a6-be7c-903e6d0359ac@gmx.at> References: <868qtsmydz.fsf@gnu.org> <86a5dqm9gl.fsf@gnu.org> <06f264c8-b1a1-4a7f-8fe9-1ca58b2343ff@gmx.at> <87jzcn1af7.fsf@mail.linkov.net> <08f46ed1-e489-4859-8a25-ba7dc4262b95@gmx.at> <87y1108u9k.fsf@mail.linkov.net> <87ldwyil8q.fsf@mail.linkov.net> <3a5afa37-0ea1-4183-a563-ecc3067818c2@gmx.at> <871pypb43g.fsf@mail.linkov.net> <8cd0088f-1beb-4871-a06c-17f8cfb23e29@gmx.at> <87plm8addt.fsf@mail.linkov.net> Reply-To: martin rudalics Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2219"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: Morgan Smith , Eli Zaretskii , 74246@debbugs.gnu.org, stefankangas@gmail.com To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 04 09:01:27 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 1tIkK7-0000KR-56 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 04 Dec 2024 09:01:27 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tIkJj-0003Ok-EC; Wed, 04 Dec 2024 03:01:03 -0500 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 1tIkJi-0003Ob-FR for bug-gnu-emacs@gnu.org; Wed, 04 Dec 2024 03:01:02 -0500 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 1tIkJi-0006if-6c for bug-gnu-emacs@gnu.org; Wed, 04 Dec 2024 03:01:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=In-Reply-To:From:References:MIME-Version:Date:To:Subject; bh=vgTz912Qjj8gRHhOXUI11yTSNIMx/FWO2msYbQ5GMZc=; b=rrFiNZRiwRdWIqUtfbPykX7xkYBkAdrzcv6EhWDI6v6PxHu0EJbQC90plVpgCopATVfkf++ehy6OAJVFZVGFIDm8jSGGJsWCZW5e+GMLB2ASlYlpvBjhoEcxJkqt6DouPxZhMLh90Lz/7w5r18TqDlt9lRntSfT22amF0idcjYmKrUdLM95itRw6S4mBqiVmhK1nISZTk6iUrJMlCG5lJwvplsQfxMETOhqvOMs69mKUi6jbMkoNgW+UPlIqg2nkm7lCURDOI+lVa26uG/pg8d0II7Dr9aW4VOFDCi85n8s1ffDSlH/AFRJ63SYnVjLpDoCA7q8tI1QgQnTdSGEeQw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tIkJi-00028s-1I for bug-gnu-emacs@gnu.org; Wed, 04 Dec 2024 03:01:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 04 Dec 2024 08:01:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74246 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 74246-submit@debbugs.gnu.org id=B74246.17332992147949 (code B ref 74246); Wed, 04 Dec 2024 08:01:01 +0000 Original-Received: (at 74246) by debbugs.gnu.org; 4 Dec 2024 08:00:14 +0000 Original-Received: from localhost ([127.0.0.1]:34140 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tIkIw-00023x-8x for submit@debbugs.gnu.org; Wed, 04 Dec 2024 03:00:14 -0500 Original-Received: from mout.gmx.net ([212.227.17.20]:35481) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tIkIt-000207-Ha for 74246@debbugs.gnu.org; Wed, 04 Dec 2024 03:00:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.at; s=s31663417; t=1733299201; x=1733904001; i=rudalics@gmx.at; bh=vgTz912Qjj8gRHhOXUI11yTSNIMx/FWO2msYbQ5GMZc=; h=X-UI-Sender-Class:Message-ID:Date:MIME-Version:Subject:To:Cc: References:From:In-Reply-To:Content-Type: Content-Transfer-Encoding:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=GjM0U/OqV2TDosxzvbduqx7zNNmlI9paCli9c5b0hwOCli+JT0c6ByJdLossicvM V8qnVQiiM7dmCdl1O0YFGwhG9lJdFfYzulMLtORD+q0j+t2C3eoRxMNBXt8Fpt7JD pHjgXrgxVKvU617zi71qGLGoL42yrkYcvPwnh2YpLEEH0h22odXrzPzBEy4CfRsYM x45lbXPRmCBw6Rxmx7JLibffE7qyc3GZ2zrb7g2+T47FvonRV38Kf95Jn7eOQFxXN 5HH5TSAsXxDzqquCwsm3thienvZSdeJfJFvqqIXEzXzZQlim1G2pei44n6NoWlqow N1WnBFGS7UmG8mJ8Bw== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from [192.168.31.113] ([212.95.8.217]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MBUqF-1tVh8w0mA3-000CvR; Wed, 04 Dec 2024 09:00:01 +0100 Content-Language: en-US In-Reply-To: <87plm8addt.fsf@mail.linkov.net> X-Provags-ID: V03:K1:JKWg3UAjp7Kfp/ha+opsNHemp8u9LIE5Lu3zINwInWXBWY2+etS 0pqOxwQL/u1P2EytOCSzcz1lxLECtFV3joh6niiLOcM3EbbWacm1XVscbxoitKRBCF+ZXrS CfpWzIs72p1LI//MR7FKqEgzutGTpdkF6LRLZ0FcoBlW4ig/IqqK0lhU5toqMPiiJLwBdvS 8lxKNepAiUqdS+tA6xeeg== UI-OutboundReport: notjunk:1;M01:P0:0WV83wshEM0=;xGVi/Z/qTItVPTWoCVPDNJzAlP2 7OUqB3sLuJkTBgyjTkeNd/rXs+7s985imS/4bK9Bp1vUeiVqmJyX44DRDM7nlUjMNNF6X2G0Z uR9qgTjsXkTGv45doJ3s4pISzzcY9BgppSVcGvq8z1UMIHVslWariIY334g+L36huU4z8slXh CQ+E1f12xhlWwDDKWpDe42AgtCiLr6QPFjAtnsCY2Ojk301Tj/zozN9o/JxpA9TNjSMxhijxs nXD+oMJlcsc5K0Ob83rP9N4th4iKljKDe8wgIAxR5jgDbAHZndEe68Z4klLXqGlJL/NBKAOO4 K7m5T8HLrHjEZRtRYTXOVSVKYnbLAR9+vvawHB/qKDHMIbWsZWs2eUcfB5PLBzkxSypD6n6r6 3T7C1mvgTap35eWwi3K8bvHEQBzf9k2KpsrHtH+6Ahf5aY8tWNSI7BP6gGsZF3p3XUH6Pq/rK u3JMqARvGnsL3orkRP4H5bEH7AJNeI7BmAeFIDZVcRayG5wYEOXehnaZxfZwyJHf7XzhC9aoy w2uPGIbeDWvkG6V+NN7NIGfAZQxEr61zMp4+PcDU7Mu06H5ezuL+A/vjjQE/k6jKGPzlLH/UZ 78+Xt6wRAhOibZND7YPggmiVGgHR5KCXe1l/sN6/Rx58Muol04oB+FxFpqraa6JZHLmvJJLH8 o/0+1ZrZAIMfG0XDUHplxabCANvZvdkIJFnA1eRW5jZNtsqLwNqN0VR1BlBR7iHcu/p7g4G94 cyEbiqLD+NYKhYhwsTZicKry0r2Os2s58IneUbaqj0y6WOx6oeh1t9oqbIygbqtxLcuZezA2 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:296399 Archived-At: > Here is how I do this in the snippet I posted 3 days ago: > > (setq display-buffer-base-action > '(nil . ((some-window > . (lambda (_buffer alist) > (let ((last-window (buffer-local-value > 'display-buffer-last-window > (window-buffer)))) This would imply that - the window showing the buffer from where to read the value of 'display-buffer-last-window' must be selected at the time 'display-buffer' is called, - as a rule, 'display-buffer' cannot set the buffer-local value of 'display-buffer-last-window' in the window it uses for showing the buffer. Both implications seem harmful to me. martin