From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: [Ann] elisp-refs, a semantic elisp search tool (GNU ELPA request) Date: Sat, 15 Oct 2016 09:07:20 +0300 Message-ID: <83lgxq2lif.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1476511701 29135 195.159.176.226 (15 Oct 2016 06:08:21 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 15 Oct 2016 06:08:21 +0000 (UTC) Cc: emacs-devel@gnu.org To: Wilfred Hughes Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 15 08:08:17 2016 Return-path: Envelope-to: ged-emacs-devel@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 1bvI8g-0006PQ-Ag for ged-emacs-devel@m.gmane.org; Sat, 15 Oct 2016 08:08:10 +0200 Original-Received: from localhost ([::1]:50586 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bvI8e-0000ey-0w for ged-emacs-devel@m.gmane.org; Sat, 15 Oct 2016 02:08:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58995) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bvI81-0000ec-HY for emacs-devel@gnu.org; Sat, 15 Oct 2016 02:07:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bvI7x-0003lO-9J for emacs-devel@gnu.org; Sat, 15 Oct 2016 02:07:28 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:40304) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bvI7x-0003lG-67; Sat, 15 Oct 2016 02:07:25 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3199 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bvI7w-0005sr-4Z; Sat, 15 Oct 2016 02:07:24 -0400 In-reply-to: (message from Wilfred Hughes on Fri, 14 Oct 2016 23:26:01 -0400) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:208277 Archived-At: > From: Wilfred Hughes > Date: Fri, 14 Oct 2016 23:26:01 -0400 > > I've written a package [elisp-refs] that does a semantic search of all > the elisp in the current Emacs instance. > > elisp-refs works by parsing all the code on `load-path', then walking > the sexps. This allows it to precisely find relevant forms. > > For example, you can use elisp-refs-function to find all the calls to > the function `format', ignoring any variables of the same name. It's > even smart enough to understand that (apply #'format ...) is a > function call. > > Unlike xrefs, elisp-refs is sexp-oriented, so it always shows full > sexp that matched your search, even if the result is on multiple > lines. Results are also syntax highlighted. Can this package be adapted to be used as one back-end of xref? I think this is what we prefer as the future direction of xref-based development of similar tools. > I hope this package is useful to some of you. I'd like to put it on > GNU ELPA, and I already have copyright assignment sorted. Would this > be possible? I don't see why not, but I don't know the details, so I'll let other brief you about them. Thanks.