GNU bug report logs - #19466
25.0.50; xref-find-def doesn't find C functions

Previous Next

Package: emacs;

Reported by: Eli Zaretskii <eliz <at> gnu.org>

Date: Mon, 29 Dec 2014 19:28:02 UTC

Severity: normal

Found in version 25.0.50

Done: Dmitry Gutov <dgutov <at> yandex.ru>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: rudalics <at> gmx.at, eller.helmut <at> gmail.com, 19466 <at> debbugs.gnu.org
Subject: bug#19466: 25.0.50; xref-find-def doesn't find C functions
Date: Thu, 22 Jan 2015 23:02:22 +0200
On 01/22/2015 08:02 PM, Eli Zaretskii wrote:

> What I need is a way to find definitions of both C and Lisp symbols
> (functions, macros, struct's, etc.) irrespective of the current
> buffer's major mode.  If xref can do that, it's fine with me.

Would it also be irrespective of the current file, or its project? Would 
it not depend on major mode at all, so it would also be true in 
help-mode and similar buffers?

If you want it in all major modes, you can use find-file-hook instead of 
emacs-lisp-mode-hook. If in all files everywhere, then you can also drop 
the buffer-file-name check, ending up with

(add-hook 'find-file-hook #'xref-etags-mode t)

That doesn't help with non-file buffers, though. But you can use a 
separate major mode hook for each.




This bug report was last modified 10 years and 152 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.