emacs-devel
[Top][All Lists]
Advanced

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

Re: Allow xref to use other than current major-mode


From: David Engster
Subject: Re: Allow xref to use other than current major-mode
Date: Tue, 25 Aug 2015 17:07:11 +0200
User-agent: Gnus/5.13001 (Ma Gnus v0.10) Emacs/24.5 (gnu/linux)

Stephen Leake writes:
> David Engster <address@hidden> writes:
>
>> Dmitry Gutov writes:
>>> On 08/25/2015 01:00 PM, Stephen Leake wrote:
>>>
>>>> To handle this, I propose changing both
>>>> xref-identifier-completion-table-function and xref-find-function to be
>>>> mode-local, instead of buffer-local.
>>>
>>> That seems unnecessarily limiting. First, mode-local facility is a
>>> part of CEDET, so it would need to be always loaded.
>>
>> mode-local does not depend on anything from CEDET.
>
> Well, mode-local.el is in cedet/, but it does not depend on anything
> _else_ from CEDET.

That's what I meant; nothing else from CEDET is loaded when you require
'mode-local. It would probably make sense to move mode-local to
lisp/emacs-lisp, just like we did with EIEIO.

> On the gripping hand, mode-local.el is not pre-loaded, so elisp-mode.el
> cannot require it. cl-generic.el is pre-loaded.

Yes, that's a problem.

-David



reply via email to

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