[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Allow xref to use other than current major-mode
From: |
Stephen Leake |
Subject: |
Re: Allow xref to use other than current major-mode |
Date: |
Tue, 25 Aug 2015 10:41:25 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (windows-nt) |
Stephen Leake <address@hidden> writes:
> I've started writing such a thing, but it gets defeated by the fact that
> xref--read-identifier uses the buffer-local value of
> xref-identifier-completion-table-function, which is set by elisp-mode
> (or c-mode, etc, or by default to etags). There's no way to change that.
>
> I guess a global xref backend could somehow reset that variable, in all
> elisp buffers? Maybe a function on elisp-mode-hook.
There is after-change-major-mode-hook, but we would still have
xref-backends fighting for control.
--
-- Stephe