From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.help Subject: Re: Tell xref to find definitions in Emacs' source code? Date: Wed, 1 Nov 2017 01:45:11 +0200 Message-ID: <54b53509-8093-7674-bbfb-406eaedd9004@yandex.ru> References: <871sljru4x.fsf@ericabrahamsen.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1509493550 6458 195.159.176.226 (31 Oct 2017 23:45:50 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 31 Oct 2017 23:45:50 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:56.0) Gecko/20100101 Thunderbird/56.0 To: Eric Abrahamsen , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Nov 01 00:45:46 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 1e9gE3-00010p-7I for geh-help-gnu-emacs@m.gmane.org; Wed, 01 Nov 2017 00:45:43 +0100 Original-Received: from localhost ([::1]:47728 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e9gEA-0005zJ-B5 for geh-help-gnu-emacs@m.gmane.org; Tue, 31 Oct 2017 19:45:50 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35896) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e9gDg-0005z9-VR for help-gnu-emacs@gnu.org; Tue, 31 Oct 2017 19:45:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e9gDc-00034S-0k for help-gnu-emacs@gnu.org; Tue, 31 Oct 2017 19:45:21 -0400 Original-Received: from mail-wr0-x231.google.com ([2a00:1450:400c:c0c::231]:52884) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e9gDb-00033i-Q9 for help-gnu-emacs@gnu.org; Tue, 31 Oct 2017 19:45:15 -0400 Original-Received: by mail-wr0-x231.google.com with SMTP id k62so528932wrc.9 for ; Tue, 31 Oct 2017 16:45:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=5DhmP3YpUWy7S0+fcj3JR0H/aIaYDl1X/zKZU/SUMgE=; b=N3431zuf04yCw9wUIhhACi0jheHMaNiSCnMt2hecXZP24hWyJsfFkqhN2EZfQniRos uKkuspbL/ZfwQdI2v/2M1y/oeNbgRA7+3LKY0fAxMzKahEC1TnoYwhnYnE+ivBbJPf1v E2nGzAez9UAmulUEM1rrfJr9ua9V+MNbBp1X2QnCY3GuAquWViq4hs/K3NUZwA4DfFeQ IGoD+D9OsyMUbTyfV4cZGxdnLOKUFqy95nxzXA0rXHWwZwrkOLFJPpHHjQ6pnbHdz+5+ MrNU27Hvuh/xjVVOdsMR+PNGBOTlAvb4mrAH1wxDDqtlGFWqhcJpbalDXkFj60W5p0Mz hh1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=5DhmP3YpUWy7S0+fcj3JR0H/aIaYDl1X/zKZU/SUMgE=; b=j7NvBNDGSOdBnaaVwj2/e0HhBfPyW1SWtHqoFSyj55otECYD0P8mTMvWYBO0wpVPrt r2ZjlcMWSFoGc8DjFGsRPTDTSP68ESPb1LP8mjCXZ4TF1Z19ecVa17cf8+HRQKmM4mxb /49CwirzkF5OuRHQt1IYnXnMaiIHdKAQEtAXZtkOp9+KNctMQO4DYP0ISu7GF9xdYUgP xKtHdz2lS3o3fDJV/+TyJUgGhAc02YBt+9N8OsmLhc5Kjc2YU0OZrjxEUA8iKeRPDajx ooZeV8vZuHNLIPpfkKihDp6dXRsMJRwACdOoe7qBIljnHiGEWNoszVQvk2GTxPbKfAGQ YBOw== X-Gm-Message-State: AMCzsaVIvM0bOQEyjAgShcNHcb2Q+h4/Wb0Ae1waIHBb3cZ536/d5+DX a8QJ53Dm2lPlkhkmNgfOq3Hky2mv X-Google-Smtp-Source: ABhQp+QGz/ud308nD5k+EKWZ+P75/IbXlo3rjFQhunTHnYyLAw5z+lFyJ0AK3PzpQTuibIQ2zIuIhQ== X-Received: by 10.223.151.198 with SMTP id t6mr3374235wrb.2.1509493514308; Tue, 31 Oct 2017 16:45:14 -0700 (PDT) Original-Received: from [192.168.1.3] ([185.105.174.193]) by smtp.googlemail.com with ESMTPSA id n2sm7052452wmd.39.2017.10.31.16.45.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 31 Oct 2017 16:45:13 -0700 (PDT) In-Reply-To: <871sljru4x.fsf@ericabrahamsen.net> Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::231 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:114713 Archived-At: 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.