From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Narendra Joshi Newsgroups: gmane.emacs.help Subject: Re: Tell xref to find definitions in Emacs' source code? Date: Wed, 15 Nov 2017 00:34:32 +0530 Message-ID: <877eusptq7.fsf@gmail.com> References: <871sljru4x.fsf@ericabrahamsen.net> <54b53509-8093-7674-bbfb-406eaedd9004@yandex.ru> <87375yj17h.fsf@ericabrahamsen.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1510686322 13301 195.159.176.226 (14 Nov 2017 19:05:22 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 14 Nov 2017 19:05:22 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Eric Abrahamsen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Nov 14 20:05:17 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eEgWB-0002fs-Vy for geh-help-gnu-emacs@m.gmane.org; Tue, 14 Nov 2017 20:05:08 +0100 Original-Received: from localhost ([::1]:33192 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eEgWJ-0002pg-Ab for geh-help-gnu-emacs@m.gmane.org; Tue, 14 Nov 2017 14:05:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38622) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eEgVn-0002pW-Tj for help-gnu-emacs@gnu.org; Tue, 14 Nov 2017 14:04:44 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eEgVj-000265-2S for help-gnu-emacs@gnu.org; Tue, 14 Nov 2017 14:04:43 -0500 Original-Received: from mail-pf0-x236.google.com ([2607:f8b0:400e:c00::236]:43273) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eEgVi-00024h-TJ for help-gnu-emacs@gnu.org; Tue, 14 Nov 2017 14:04:39 -0500 Original-Received: by mail-pf0-x236.google.com with SMTP id a84so10183445pfl.0 for ; Tue, 14 Nov 2017 11:04:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=31ns0OYi9TLHwB8TQvnDrbZH3tct0K6NJixXJPXwayE=; b=gTFGvlLN0rSW6IKoKFsrBydHt3OwkJebjRMamDMXeUq6ya1lV2WfvAZg9YK26tt0uE yMA/qnLAHsWphGywWHRK/9fHrTho4RoXbp7SboShpx0gfRHqyUTRima6wOhKR8tz76Ww 6bznWplkOk6tudnXD44QxL4/iUja/pxtq+3iUOTSPlloSGgWHjLySVP3Cwgiv2EAxWTK R6h4zejlrrwcGcVxXVm/hRTKVzdGz41iDsaZ/YKa6KvXVM+bU9OJn05SnyobWKYXNMJK pkR06gM9/UpQun0aiaWRGQvxPZe9eguNF+mYWuSk48/KyshQ615W9uuuICi/xc1ZtVau x7dQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=31ns0OYi9TLHwB8TQvnDrbZH3tct0K6NJixXJPXwayE=; b=ibsABr/Bgvc2+mSFSpN2pHlsf3VK4OwdEbSFawC+3FSHNcR+EtFOlWs43moQw4mSiU ztn56KuVWkPA94u6sSBsd/+nEAD/VFFJ0j1nxVJZz+7O7OnFtwd8kSTEP70EddeWWZhx Tg8c7Ft/oKq+ze7k7hmMnvN7dAvNRS5ftUWif2m7kErUsGCVMOaj6ecQvhNCxUDwJuob ah5sQHm5SOAQXBMt4bEqurkRwuCCdcEWsn9Z+E49wze/KULE/kN4s0mBjjk1NS8HEaw3 DC4xqEj9mq+n0LGwtNs+osBlIDjkEKzukdOT5vdg55JoQunfQYD92AMUbzIJJ4wur2ZS LfSA== X-Gm-Message-State: AJaThX7Nzogn2H+IwkS51i0djjNtcLxy4ISR0jsEz7w46YF5cKBtLkQL uimSd1xAxHUzCsAWxf+fcTNC X-Google-Smtp-Source: AGs4zMYopkJCQejQgSjEYXxZ1lIyWD2BHt9vhjfEhgCgTP8nuM6WoxBimeIvRWrIlCmPuI1X+wLyxA== X-Received: by 10.159.203.197 with SMTP id r5mr13291390plo.431.1510686277282; Tue, 14 Nov 2017 11:04:37 -0800 (PST) Original-Received: from vicarie ([113.193.136.176]) by smtp.gmail.com with ESMTPSA id l5sm7696663pgo.24.2017.11.14.11.04.34 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 14 Nov 2017 11:04:36 -0800 (PST) In-Reply-To: <87375yj17h.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Tue, 31 Oct 2017 17:24:02 -0700") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c00::236 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:114875 Archived-At: Eric Abrahamsen writes: > Dmitry Gutov 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