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#74246: [PATCH] Reuse display windows in image-dired Date: Tue, 03 Dec 2024 19:24:14 +0200 Organization: LINKOV.NET Message-ID: <87plm8addt.fsf@mail.linkov.net> 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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21544"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 (x86_64-pc-linux-gnu) Cc: Morgan Smith , Eli Zaretskii , 74246@debbugs.gnu.org, stefankangas@gmail.com To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Dec 03 18:26:22 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 1tIWfF-0005QZ-KD for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 03 Dec 2024 18:26:21 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tIWf7-000062-6G; Tue, 03 Dec 2024 12:26:13 -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 1tIWey-0008VS-2n for bug-gnu-emacs@gnu.org; Tue, 03 Dec 2024 12:26:05 -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 1tIWex-0001m9-2Z for bug-gnu-emacs@gnu.org; Tue, 03 Dec 2024 12:26:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=lDPFU6Mb+bWbmwo2FTIQkW4D4vJsCScPjmaIqB2hRSA=; b=fUUY1Auwpdve8grmVtWhgQU657Tz8rBpsgcQyvIF722w5ZSrQ/uD5KK58Pxi0qYBuQtYAKs/pPVXWI+7ah7aFvnv72S6ZWTYEcLe2sPGER5Sf/SYoGkWPDRdt36mf5jasrcRUHWZNwRiiKyIU7Io/BTaGt4vDFU16Oc400sCCSMpy0KXz8HdSkY0sWDCUhBUJBFiDizf9nWMV4IISQ4inKUhWkeW5XYDAfRqME6PP0ELSlUYs0kKrFL3fu+Fd2Ltj75VWbIgrzu4vr5rea7aLrEZGYsN+1I1ugMZxLyMOdY1MtcAkTUyJhD88AKyCe/pgjYME7qSUlivrxONvtxLqQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tIWew-0001lv-Lr for bug-gnu-emacs@gnu.org; Tue, 03 Dec 2024 12:26:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 03 Dec 2024 17:26:02 +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.17332467066515 (code B ref 74246); Tue, 03 Dec 2024 17:26:02 +0000 Original-Received: (at 74246) by debbugs.gnu.org; 3 Dec 2024 17:25:06 +0000 Original-Received: from localhost ([127.0.0.1]:32780 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tIWe2-0001gb-1U for submit@debbugs.gnu.org; Tue, 03 Dec 2024 12:25:06 -0500 Original-Received: from relay2-d.mail.gandi.net ([217.70.183.194]:50357) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tIWdy-0001e5-8R for 74246@debbugs.gnu.org; Tue, 03 Dec 2024 12:25:04 -0500 Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id 9162D40007; Tue, 3 Dec 2024 17:24:34 +0000 (UTC) In-Reply-To: <8cd0088f-1beb-4871-a06c-17f8cfb23e29@gmx.at> (martin rudalics's message of "Tue, 3 Dec 2024 09:25:24 +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:296374 Archived-At: >> It kills the target buffer, not the source buffer? >> The idea was to set a buffer-local variable in the source buffer. > > But you want to display the target buffer. How would 'display-buffer' > find the buffer-local value of the source buffer? 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))))