help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: xref-find-references in elisp (Was: Re: grep-at-point)


From: Kaushal Modi
Subject: Re: xref-find-references in elisp (Was: Re: grep-at-point)
Date: Wed, 11 Jan 2017 23:24:37 +0000

On Wed, Jan 11, 2017 at 6:14 PM Dmitry Gutov <dgutov@yandex.ru> wrote:

> On 12.01.2017 01:15, Kaushal Modi wrote:
>
> > Correct me if I am wrong, but it looks like semantic/symref is not used
> at
> > all by xref-find-references (probably in emacs-lisp-mode only?)
>
> The package is used. Semantic's parsers are not used, though.
>

Correct. I was doing (featurep 'symref) by mistake instead of (featurep
'semantic/symref).


>
> > So regardless of availability of idutils or global, it just
> > uses elisp--xref-find-definitions.
>
> Not true. That function is for definitions.
>

Yes, I am only talking about the case when xref-find-references is used. It
doesn't use global or idutils for that. After calls to
xref-find-references, the value of semantic-symref-tool stays at 'detect.

Only after I do M-: semantic-symref-detect-symref-tool, the value of
semantic-symref-tool changes to 'global (because I have GPATH file
generated in rootdir).

So global is not used at all by xref-find-references.


> > So if I call xref-find-references in an emacs-lisp-mode buffer,
> > semantic/symref is never required and
> `semantic-symref-detect-symref-tool'
> > is never called.
>
> Both things happen over here.
>

It was my mistake earlier; semantic/symref IS required. But
semantic-symref-detect-symref-tool doesn't seem be called at all because
the semantic-symref-tool value stays at 'detect unless I call
semantic-symref-detect-symref-tool manually.

Can you confirm the above?
-- 

Kaushal Modi


reply via email to

[Prev in Thread] Current Thread [Next in Thread]