[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
xref call project-current in correct buffer
From: |
Stephen Leake |
Subject: |
xref call project-current in correct buffer |
Date: |
Tue, 15 Nov 2022 10:49:53 -0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
I ran into a situation where xref failed because
xref-show-definitions-buffer-at-bottom calls project-current in the
*xref* buffer, not the original source buffer, and the project in that
buffer is different from the one in the *xref* buffer.
The attached patch fixes it, but there are other possible ways to do it;
pass the project to xref--analyze, or set a local variable containing
the project.
In addition, refresh-buffer in the *xref* buffer will have the same
problem, so setting the original project in a local variable might be
the best way.
--
-- Stephe
- xref call project-current in correct buffer,
Stephen Leake <=