* Tell xref to find definitions in Emacs' source code?
@ 2017-10-31 19:31 Eric Abrahamsen
2017-10-31 20:58 ` Nick Dokos
2017-10-31 23:45 ` Dmitry Gutov
0 siblings, 2 replies; 8+ messages in thread
From: Eric Abrahamsen @ 2017-10-31 19:31 UTC (permalink / raw)
To: help-gnu-emacs
Hi all,
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?
Thanks,
Eric
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Tell xref to find definitions in Emacs' source code?
2017-10-31 19:31 Tell xref to find definitions in Emacs' source code? Eric Abrahamsen
@ 2017-10-31 20:58 ` Nick Dokos
2017-10-31 21:04 ` Nick Dokos
2017-10-31 23:45 ` Dmitry Gutov
1 sibling, 1 reply; 8+ messages in thread
From: Nick Dokos @ 2017-10-31 20:58 UTC (permalink / raw)
To: help-gnu-emacs
Eric Abrahamsen <eric@ericabrahamsen.net> writes:
> 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?
>
Not directly an answer, but have you tried cscope? The emacs interface
is xcscope.el and can be found at https://github.com/dkogan/xcscope.el.
--
Nick
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Tell xref to find definitions in Emacs' source code?
2017-10-31 20:58 ` Nick Dokos
@ 2017-10-31 21:04 ` Nick Dokos
2017-10-31 23:22 ` Eric Abrahamsen
0 siblings, 1 reply; 8+ messages in thread
From: Nick Dokos @ 2017-10-31 21:04 UTC (permalink / raw)
To: help-gnu-emacs
Nick Dokos <ndokos@gmail.com> writes:
> Eric Abrahamsen <eric@ericabrahamsen.net> writes:
>
>> 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?
>>
>
> Not directly an answer, but have you tried cscope? The emacs interface
> is xcscope.el and can be found at https://github.com/dkogan/xcscope.el.
Never mind: for some unfathomable reason, I thought it could index .el files -
it cannot.
--
Nick
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Tell xref to find definitions in Emacs' source code?
2017-10-31 21:04 ` Nick Dokos
@ 2017-10-31 23:22 ` Eric Abrahamsen
0 siblings, 0 replies; 8+ messages in thread
From: Eric Abrahamsen @ 2017-10-31 23:22 UTC (permalink / raw)
To: help-gnu-emacs
Nick Dokos <ndokos@gmail.com> writes:
> Nick Dokos <ndokos@gmail.com> writes:
>
>> Eric Abrahamsen <eric@ericabrahamsen.net> writes:
>>
>>> 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?
>>>
>>
>> Not directly an answer, but have you tried cscope? The emacs interface
>> is xcscope.el and can be found at https://github.com/dkogan/xcscope.el.
>
> Never mind: for some unfathomable reason, I thought it could index .el files -
> it cannot.
No worries, thanks for the pointer!
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Tell xref to find definitions in Emacs' source code?
2017-10-31 19:31 Tell xref to find definitions in Emacs' source code? Eric Abrahamsen
2017-10-31 20:58 ` Nick Dokos
@ 2017-10-31 23:45 ` Dmitry Gutov
2017-11-01 0:24 ` Eric Abrahamsen
1 sibling, 1 reply; 8+ messages in thread
From: Dmitry Gutov @ 2017-10-31 23:45 UTC (permalink / raw)
To: Eric Abrahamsen, help-gnu-emacs
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.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Tell xref to find definitions in Emacs' source code?
2017-10-31 23:45 ` Dmitry Gutov
@ 2017-11-01 0:24 ` Eric Abrahamsen
2017-11-14 19:04 ` Narendra Joshi
0 siblings, 1 reply; 8+ messages in thread
From: Eric Abrahamsen @ 2017-11-01 0:24 UTC (permalink / raw)
To: help-gnu-emacs
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.
Eric
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Tell xref to find definitions in Emacs' source code?
2017-11-01 0:24 ` Eric Abrahamsen
@ 2017-11-14 19:04 ` Narendra Joshi
2017-11-14 19:42 ` Eric Abrahamsen
0 siblings, 1 reply; 8+ messages in thread
From: Narendra Joshi @ 2017-11-14 19:04 UTC (permalink / raw)
To: Eric Abrahamsen; +Cc: help-gnu-emacs
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
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Tell xref to find definitions in Emacs' source code?
2017-11-14 19:04 ` Narendra Joshi
@ 2017-11-14 19:42 ` Eric Abrahamsen
0 siblings, 0 replies; 8+ messages in thread
From: Eric Abrahamsen @ 2017-11-14 19:42 UTC (permalink / raw)
To: help-gnu-emacs
Narendra Joshi <narendraj9@gmail.com> writes:
> 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.
Okay, good suggestion!
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2017-11-14 19:42 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-31 19:31 Tell xref to find definitions in Emacs' source code? Eric Abrahamsen
2017-10-31 20:58 ` Nick Dokos
2017-10-31 21:04 ` Nick Dokos
2017-10-31 23:22 ` Eric Abrahamsen
2017-10-31 23:45 ` Dmitry Gutov
2017-11-01 0:24 ` Eric Abrahamsen
2017-11-14 19:04 ` Narendra Joshi
2017-11-14 19:42 ` Eric Abrahamsen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).