unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* xref call project-current in correct buffer
@ 2022-11-15 18:49 Stephen Leake
  2022-11-15 20:10 ` Eli Zaretskii
  2022-11-15 21:37 ` Stephen Leake
  0 siblings, 2 replies; 5+ messages in thread
From: Stephen Leake @ 2022-11-15 18:49 UTC (permalink / raw)
  To: emacs-devel

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



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-11-15 21:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-15 18:49 xref call project-current in correct buffer Stephen Leake
2022-11-15 20:10 ` Eli Zaretskii
2022-11-15 21:37 ` Stephen Leake
2022-11-15 21:48   ` Dmitry Gutov
2022-11-15 21:55     ` Dmitry Gutov

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).