[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Tell xref to find definitions in Emacs' source code?
From: |
Narendra Joshi |
Subject: |
Re: Tell xref to find definitions in Emacs' source code? |
Date: |
Wed, 15 Nov 2017 00:34:32 +0530 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
Eric Abrahamsen <eric@ericabrahamsen.net> writes:
> Dmitry Gutov <dgutov@yandex.ru> writes:
>
>> On 10/31/17 9:31 PM, Eric Abrahamsen wrote:
>>
>>> Has anyone convinced xref to look up elisp definitions in a local git
>>> clone of the Emacs source code, instead of the installed files? I'm
>>> looking at building a tags table in the source directory, and then
>>> adding a function to `elisp-xref-find-def-functions' that would try to
>>> use the tags table to find a symbol in my git clone.
>>>
>>> Does anyone have anything like this on hand?
>>
>> The easiest way to do that is to build that clone and run Emacs from it.
>>
>> Like ./src/emacs.
>>
>> The alternative is to add xref-etags-mode to emacs-lisp-mode, and M-x
>> visit-tags-table. Then you'll just use etags.
>>
>> Not sure if elisp-xref-find-def-functions can provide a
>> straightforward alternative.
>
> Okay, thanks for the tips. I'll probably just do it the easy way and run
> Emacs from the source directory.
Or you can create a symbolic link (say ~/.local/bin/emacs) that points
to $EMACS_SOURCE_DIR/src/emacs. That's how I have been using it.
--
Narendra Joshi
- Re: Tell xref to find definitions in Emacs' source code?,
Narendra Joshi <=