[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
- Re: grep-at-point, (continued)
Re: grep-at-point, John Mastro, 2017/01/11
RE: grep-at-point, Drew Adams, 2017/01/11
RE: grep-at-point, Drew Adams, 2017/01/11
Re: grep-at-point, Eric Abrahamsen, 2017/01/11
Re: grep-at-point, Thien-Thi Nguyen, 2017/01/11