Questions tagged [xref]
The xref tag has no summary.
39 questions
0
votes
1
answer
55
views
Transient for cursor-position-dependent commands
I have tried to define a transient for some elisp-function-calls that depend on the cursor-position and/or on the active buffer. Here an extract:
(transient-define-prefix navigation-transient-menu ()
...
0
votes
1
answer
95
views
How can I have xref-find-references be verbose?
I have a weird problem.
When I start Emacs and run xref-find-references on a method in some C# code, it lists the references without problem.
Then, if I wait a few minutes and try the command again, ...
0
votes
0
answers
125
views
how to configure and use dumb-jump
I have following in my init.el file:
(use-package dumb-jump
:straight t
:init
)
(add-hook 'xref-backend-functions #'dumb-jump-xref-activate)
(setq xref-show-definitions-function #'xref-show-...
1
vote
0
answers
73
views
Finding definition in source file with a single call
Emacs configuration:
eglot
language-server: clangd
xref-find-definitions on M-.
ff-find-other-file on C-x p o
xref-go-back on M-,
Situation:
I'm currently in a source file (let's say foo_temp.c). ...
0
votes
1
answer
137
views
semantic-symref-filepattern-alist is void until I try to use xref features
When I try to use xref features, like xref-find-references, there would be an error message:
Customize `semantic-symref-filepattern-alist’ for js-mode
Following this guide, I add this line to my init....
1
vote
1
answer
99
views
`recenter` issue in `xref-go-back` when using `lsp-mode`
I have the below setting in my config as recommended by many scrolling packages like ultra-scroll-mac.
(setq scroll-conservatively 101)
The issue is, when using this config with lsp-mode, xref-go-...
0
votes
0
answers
54
views
xref-find-definition goes to constructed init.el by doom emacs
I think this is doom emacs specific problem.
Doom collects autoload functions into an ./local/etc/@/init.el file
And when I do M-. (which is mapped to doom's +lookup/definition and in turn it tries ...
0
votes
1
answer
242
views
make projectile search functions work for non project files? (or include them as project files?)
Below is the situation I'm trying to solve
project root is at ~/project/src/some.py
`xref-find-definition` from `some.py` can go to
python library in ~/.virtualenvs/myenv/lib/another.py
Then, since ~...
0
votes
1
answer
125
views
xref-find-apropos vs vc-git-grep
I 've been using git specific commands from helm (I think it internally uses vc-git-grep
I find xref-find-definitions work very well. and wonder how xref-find-apropos compare with vc-git-grep
I coulnd'...
0
votes
1
answer
593
views
Xref-find-definitions 'no definitions found' for emacs source
I downloaded emacs source code from http://savannah.gnu.org/projects/emacs/, and the relevant tags from http://git.savannah.gnu.org/cgit/emacs.git/refs/tags . I ran ctags via ctags -e -R . over both ...
0
votes
2
answers
107
views
Store output of xref-find-apropos in a variable within elisp code
Is it possible to extract the results returned by xref-find-apropos to a variable within elisp code? In particular, I want to get all files names where the found symbol occurs.
So what I want is ...
0
votes
1
answer
481
views
How do I update xref-backend-functions?
I'm not sure what kind of variable xref-backend-functions and how to update it.
After I open a .c file, I do M-: and do
(add-hook 'xref-backend-functions #'gxref-xref-backend)
and it shows me
(gxref-...
1
vote
1
answer
152
views
xref-find-references and its seemingly random "Select project: " behavior
My daily workflow involves opening a number of diverse projects and navigating through them using Emacs. For some projects, xref-find-references requires me to select a project (with a "Select ...
3
votes
2
answers
295
views
How to automatically go to file when there is only one match in xref?
I don't see the point in displaying xref with one match. Hope there is a simple solution.
2
votes
1
answer
230
views
How to disable momentary highlighting of a match by xref and ggtags?
When I call gtags-find-tag-dwim, matches item will be highlighted for about one second.
When I call xref-pop-marker-stack, matches item will be highlighted for about 0.2 second.
like this:
-----------...