From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Kaushal Modi Newsgroups: gmane.emacs.help Subject: Re: xref-find-references in elisp (Was: Re: grep-at-point) Date: Wed, 11 Jan 2017 23:24:37 +0000 Message-ID: References: <20170111094846.122e7235@gauss> <42a1b0b4-b8c2-4eda-a70a-0442c059bb3c@default> <20170111132923.3e18d91f@gauss> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: blaine.gmane.org 1484177146 1162 195.159.176.226 (11 Jan 2017 23:25:46 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 11 Jan 2017 23:25:46 +0000 (UTC) Cc: Help Gnu Emacs mailing list To: Dmitry Gutov , Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 12 00:25:37 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 1cRSGd-0006Oe-4b for geh-help-gnu-emacs@m.gmane.org; Thu, 12 Jan 2017 00:25:19 +0100 Original-Received: from localhost ([::1]:57864 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cRSGh-0000IA-Pn for geh-help-gnu-emacs@m.gmane.org; Wed, 11 Jan 2017 18:25:23 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38884) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cRSGC-0000Hy-9P for help-gnu-emacs@gnu.org; Wed, 11 Jan 2017 18:24:53 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cRSGB-0006Cd-8H for help-gnu-emacs@gnu.org; Wed, 11 Jan 2017 18:24:52 -0500 Original-Received: from mail-vk0-x22d.google.com ([2607:f8b0:400c:c05::22d]:35474) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cRSG9-0006C3-Jw; Wed, 11 Jan 2017 18:24:49 -0500 Original-Received: by mail-vk0-x22d.google.com with SMTP id x75so2067194vke.2; Wed, 11 Jan 2017 15:24:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=x10CTBF+/ov3MDcSRmHFeavU5lkgWfsAJGQE39vmt7M=; b=aGEB8Fz2frec7pKCX8zohsN65aVaiWmR29hd7/hyfaMzbqhc+gEljwwH27dPP9KDCo PM6lkfU0J6u9qojYgCBRUrW+a0Ly55LdXE9sF4h6G6eipV4B79IYRiF0XzTKBZ2bGIKZ 7S95EMC3+/HrlVkOHbppZRDpYBJMZHR476IfnwC17uCbPamzg97GW/ptQwuV3PZ/vbsJ 8/PD1Qo9tu45IQQ25qXn5pPG8ltzBDOsfug2f0Re4T7aW9Oq2Avlc0IH1atA99noIpTB EMQM5Tg2blT9PuQMW/7ByQQ7KDeqyZe7YoeY+O1OF9odNSZKJgXeAaX/fmN6CyH4Nw3Y uyOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=x10CTBF+/ov3MDcSRmHFeavU5lkgWfsAJGQE39vmt7M=; b=rJkNlO0bksBnmi65pyxJvrOqH4PkKFTOPX1V7Nw0ka3bGnbe5D6MjcV3dzYlSnOSSh Luk0aFNs8oLRjNctas4BvfQk3u+n+H+BWG1/hcW1c9UqWqggZb8w7RB3Drr3F6iVapQX FYYnCKXzqNMWYi7vVxEO3fZBmRHlWahLGuv+3hb95T6WWv0qq68IJJPiheGIpCK0gpB1 mKwIxkInKk/D6sgaAePr9Gkgx0DKaBW4LE+lV+1knWxCEJIJH0oyCTT0NMTdPIgEijAD MGriTaRZ4uRXoAGhLhOAYfE2hTQThX/vSrM/n/A8U0R2GTQbmjdRy55jrUbeSZ/GAEJo YYVg== X-Gm-Message-State: AIkVDXL3KYsKOe3VwSQXmS4r1Z1ZYkoaPl3fLBFxyPPoPBDuxJuOB2DJR0pPWbrxDlauycF4h+HJ6QsnDffQPg== X-Received: by 10.31.132.2 with SMTP id g2mr5503372vkd.94.1484177088588; Wed, 11 Jan 2017 15:24:48 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400c:c05::22d X-Content-Filtered-By: Mailman/MimeDel 2.1.21 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:112104 Archived-At: On Wed, Jan 11, 2017 at 6:14 PM Dmitry Gutov wrote: > On 12.01.2017 01:15, Kaushal Modi wrote: > > > Correct me if I am wrong, but it looks like semantic/symref is not used > at > > all by xref-find-references (probably in emacs-lisp-mode only?) > > The package is used. Semantic's parsers are not used, though. > Correct. I was doing (featurep 'symref) by mistake instead of (featurep 'semantic/symref). > > > So regardless of availability of idutils or global, it just > > uses elisp--xref-find-definitions. > > Not true. That function is for definitions. > Yes, I am only talking about the case when xref-find-references is used. It doesn't use global or idutils for that. After calls to xref-find-references, the value of semantic-symref-tool stays at 'detect. Only after I do M-: semantic-symref-detect-symref-tool, the value of semantic-symref-tool changes to 'global (because I have GPATH file generated in rootdir). So global is not used at all by xref-find-references. > > So if I call xref-find-references in an emacs-lisp-mode buffer, > > semantic/symref is never required and > `semantic-symref-detect-symref-tool' > > is never called. > > Both things happen over here. > It was my mistake earlier; semantic/symref IS required. But semantic-symref-detect-symref-tool doesn't seem be called at all because the semantic-symref-tool value stays at 'detect unless I call semantic-symref-detect-symref-tool manually. Can you confirm the above? -- Kaushal Modi