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


Message #218 received at 74361 <at> debbugs.gnu.org (full text, mbox):

From: martin rudalics <rudalics <at> gmx.at>
To: Juri Linkov <juri <at> linkov.net>
Cc: Dmitry Gutov <dmitry <at> gutov.dev>, 74361 <at> debbugs.gnu.org
Subject: Re: bug#74361: [PATCH] New option
 xref-navigation-display-window-action
Date: Fri, 6 Dec 2024 09:31:28 +0100
>>>         (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.

martin




This bug report was last modified 171 days ago.

Previous Next


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