GNU bug report logs - #74361
[PATCH] New option xref-navigation-display-window-action

Previous Next

Package: emacs;

Reported by: Dmitry Gutov <dmitry <at> gutov.dev>

Date: Thu, 14 Nov 2024 22:30:02 UTC

Severity: wishlist

Tags: patch

Fixed in version 31.1

Full log


View this message in rfc822 format

From: Juri Linkov <juri <at> linkov.net>
To: martin rudalics <rudalics <at> gmx.at>
Cc: Dmitry Gutov <dmitry <at> gutov.dev>, 74361 <at> debbugs.gnu.org
Subject: bug#74361: [PATCH] New option xref-navigation-display-window-action
Date: Sat, 07 Dec 2024 19:18:34 +0200
>>>>         (with-current-buffer buffer
>>>>           (setq-local display-buffer-previous-window (selected-window)))))
>>>
>>> This relies on 'ofun' selecting a window and would not work for plain
>>> 'display-buffer'.  Right?
>>
>> It should work for plain 'display-buffer' because of using 'with-current-buffer'.
>
> 'display-buffer' per se doesn't care about the current buffer.  The
> assumption that the selected window also holds the current buffer is
> nowhere guaranteed.  Just think of 'display-buffer' running from a
> timer.

I meant the buffer that was current at the beginning of the command:
(window-buffer (old-selected-window)).




This bug report was last modified 172 days ago.

Previous Next


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