GNU bug report logs - #74246
[PATCH] Reuse display windows in image-dired

Previous Next

Package: emacs;

Reported by: Morgan Smith <Morgan.J.Smith <at> outlook.com>

Date: Thu, 7 Nov 2024 20:25:01 UTC

Severity: normal

Tags: patch

Full log


View this message in rfc822 format

From: martin rudalics <rudalics <at> gmx.at>
To: Juri Linkov <juri <at> linkov.net>
Cc: Morgan Smith <Morgan.J.Smith <at> outlook.com>, Eli Zaretskii <eliz <at> gnu.org>, 74246 <at> debbugs.gnu.org, stefankangas <at> gmail.com
Subject: bug#74246: [PATCH] Reuse display windows in image-dired
Date: Wed, 4 Dec 2024 08:59:59 +0100
> 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





This bug report was last modified 182 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.