emacs-devel
[Top][All Lists]
Advanced

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

Re: xref backends for elisp-related modes Was: Re: Bad moves with xref-f


From: Eli Zaretskii
Subject: Re: xref backends for elisp-related modes Was: Re: Bad moves with xref-find-definitions
Date: Sun, 26 Apr 2015 17:51:18 +0300

> From: address@hidden (João Távora)
> Date: Sun, 26 Apr 2015 12:51:00 +0100
> Cc: Vitalie Spinu <address@hidden>,
>       Stefan Monnier <address@hidden>, address@hidden
> 
> >> The patch attached does this to a certain degree, but takes some care to
> >> not do this is the major mode's definitions, since in theory these modes
> >> could be used for something other than emacs-lisp.
> >
> > Makes sense.
> 
> It does, I know, but it would be a lot simpler, especially for functions
> spawning *Help* buffers, to just assume we're in an elisp-related
> context.

Beware: quite a few commands pop up *Help* buffers whose contents have
nothing to do with Lisp.  Some examples:

  . C-u C-x =
  . C-h C-\
  . M-x describe-current-coding-system RET

etc.

> Anyway, this problem goes away if we take the simpler approach of just
> setting it in the major-mode function. It makes the resulting patch a
> lot simpler.

I don't think it's right to always setup an ELisp xref backend in Help
mode, for the above reasons.




reply via email to

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