jacktasia / dumb-jump

an Emacs "jump to definition" package for 50+ languages
GNU General Public License v3.0
1.57k stars 150 forks source link

Need for tags table #423

Open ghost opened 2 years ago

ghost commented 2 years ago

I have this setup lines in my init.el:

(dumb-jump-mode)
(setq dumb-jump-selector 'ivy)
(add-to-list 'xref-backend-functions 'dumb-jump-xref-activate t)

Running xref-find-definitions via M-. still asks for the TAGS file to read from. What points am I missing? Do I need to have TAGS files before searching with dumb-jump?

chasecaleb commented 2 years ago

This isn't because of dumb-jump. It's happening because you still have another xref backend (etags, maybe?) in your xref-backend-functions. Keep in mind it could be set as either a global variable or buffer-local. This is what I do:

(remove-hook 'xref-backend-functions #'etags--xref-backend)
(add-hook 'xref-backend-functions #'dumb-jump-xref-activate)