Questions tagged [xref]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
23 views

how to go to the first definition with xref-find-definitions, do not show all options?

When I press gd to go to the definition of a class in C++, Emacs splits the screen and shows me two definition options that I need to click on with one of them. I'm used to coc.nvim where I would just ...
0
votes
0answers
19 views

xref-js2 showing too many results

I'm getting mixed results with xref-js2 and want to confirm if what I'm seeing is expected or not. I'm using Emacs 27, and I have the following config: (require 'ripgrep) (require 'js2-mode) (add-to-...
0
votes
1answer
21 views

Given a list of (filepath line column), how to make this open as an xref buffer?

If I have a list of file locations in elisp, how would I create an xref window, showing these locations?
0
votes
1answer
25 views

How to prevent highlighting when using ‘xref-pop-marker-stack’

I was using dumb-jump to get back from jump definition's location. I started to get following message: ‘dumb-jump-back’ is an obsolete command (as of 2020-06-26); ‘dumb-jump-back’ has been obsoleted ...
0
votes
2answers
51 views

Xref / xref-find-refernces / Windows 7 does not work

I'm struggling with Xref M-? finding references to symbols (C-code). It doesn't work for (e)tags nor for any symbol even in the buffered file. The Xref window/buffer with results is not opened instead ...
0
votes
1answer
56 views

How to call xref-find-definitions without being prompted?

Is it possible to call xref-find-definitions to find the definition at the current point without being prompted to select the default? I'd like to bind this to a key, so it immediately jumps to a ...
1
vote
1answer
26 views

Read Xref manual in Emacs

I want to read Xref (Find Identifiers References) in Emacs. When running info C-hi and then Info-menu m, I can not find any Xref topic. I have helm enabled, so it completes topics on info. For ...
0
votes
2answers
411 views

How to use xref-find-references on Elisp files without “No references found for” errors

I am using GNU Emacs 26.3 on Ubuntu 19.10. I have a directory full of Emacs Lisp files with the .el file extension. All of them are loaded into the currently running Emacs. I can open up one of ...
0
votes
1answer
50 views

Automatic “push-mark” when navigating with xref, find-grep, etc?

There seem to be a lot of situations, where a command changes the cursor location (point), but no mark is pushed, making navigating back by popping the mark with C-u SPC impossible. For isolated use-...
1
vote
2answers
61 views

Make 'ctags' detect fortran's “module procedure” pattern?

I am using ctags to index fortran files for code navigation in Emacs with M-.. In doing so I have noticed that it doesn't recognize declarations of the form MODULE PROCEDURE MySubroutineName ! or ...
0
votes
0answers
25 views

Using xref-pop-marker-stack with next-error?

When I use xref to jump to the definition of a symbol, I can retrace my steps using M-, (xref-pop-marker-stack). I would like to be able to do the same thing after jumping to results in compilation, ...
1
vote
1answer
59 views

Improving Etags support for fortran?

When using xref with Fortran I noticed that indexing by etags is highly incomplete; Almost exclusively subroutines (and maybe functions) are index, but modules, types, constants and global variables ...
1
vote
1answer
81 views

calling xref-find-definitions within lisp code

I want to call xref-find-definitions from within my own lisp code and I'm struggling. (xref-find-definitions IDENTIFIER) Find the definition of the identifier at point. It wants a parameter ...
3
votes
0answers
47 views

xref gets confused by similar class names

If I use evil-jump-to-tag or xref-find-defintions on an inherited class module whose name is the same as a class in my current project, I am taken to the definition in the current project. I would ...
2
votes
2answers
226 views

How do I use xref-find-definitions with multiple source directories?

I'm attempting to make changes to an Emacs package. I currently have the version in use installed in ~/.emacs.d/elpa/<package> and the source checked out from git in /src/<package>. When ...
0
votes
0answers
130 views

How do I select the xref completion buffer using the keyboard?

Prior to the appearance of xref hitting M-v would switch to the completions buffer. Now this does not appear to work however. I am running GNU Emacs 26.1 (build 1, x86_64-apple-darwin13.4.0, Carbon ...
1
vote
0answers
33 views

xref suggestions are truncated

I use xref to find tags in emacs 25. My problem is with C defines, when there are multiple definitions. The *xref* buffer shows suggestions, but does not show enough text (it stops ...
2
votes
1answer
126 views

Using advice to run function before tag symbol lookup

I use xref-find-definition to look up the definition of a symbol name. When I call xref-find-definition, I want to Emacs to automatically find and load an appropriately named etags file. For this ...
1
vote
2answers
117 views

Longer flashing of search string during multi-file searches

When the cursor is in the *xref* buffer, following dired-do-find-regexp, the found string in the adjacent frame flashes, but too briefly, making it quite hard to see. A simple solution is to increase ...
3
votes
1answer
225 views

How can I highlight cursor or line in unselected frames?

Prelude Let me start by mentioning the scenario where the problem arises. I see that 2-3 variables are always used together in a system. I need to add yet another one that will be used along with ...
0
votes
0answers
84 views

recenter *xref* buffer on next-error

I have a next-error-hook to recenter the next-error-last-buffer, so if the buffer is displayed, it will recenter to the line of the error I just jumped to: (defun jpk/next-error-hook () (let ((win (...