|
From: | Juri Linkov |
Subject: | bug#74246: [PATCH] Reuse display windows in image-dired |
Date: | Tue, 03 Dec 2024 19:24:14 +0200 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 (x86_64-pc-linux-gnu) |
>> 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))))
[Prev in Thread] | Current Thread | [Next in Thread] |