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:42:11 +0000 Message-ID: References: <20170111094846.122e7235@gauss> <42a1b0b4-b8c2-4eda-a70a-0442c059bb3c@default> <20170111132923.3e18d91f@gauss> <2ccbfaec-0ff8-a5cb-bab3-cb9d39deaa9c@yandex.ru> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: blaine.gmane.org 1484178178 23140 195.159.176.226 (11 Jan 2017 23:42:58 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 11 Jan 2017 23:42:58 +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:42:50 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 1cRSXX-0004zs-Hq for geh-help-gnu-emacs@m.gmane.org; Thu, 12 Jan 2017 00:42:47 +0100 Original-Received: from localhost ([::1]:58209 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cRSXa-0007w3-Ay for geh-help-gnu-emacs@m.gmane.org; Wed, 11 Jan 2017 18:42:50 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47090) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cRSXA-0007pV-L1 for help-gnu-emacs@gnu.org; Wed, 11 Jan 2017 18:42:25 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cRSX9-0006ON-KV for help-gnu-emacs@gnu.org; Wed, 11 Jan 2017 18:42:24 -0500 Original-Received: from mail-vk0-x22c.google.com ([2607:f8b0:400c:c05::22c]:35994) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cRSX8-0006Nm-7E; Wed, 11 Jan 2017 18:42:22 -0500 Original-Received: by mail-vk0-x22c.google.com with SMTP id t8so2249705vke.3; Wed, 11 Jan 2017 15:42:22 -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=DaSkT67a4inq24H0SFJ4VpQ0yp2f/LIjZHzednSLDaA=; b=BuCzoSeIPcpPOYtdHlNkoTLKTVq559+G8sIX9WL4mgNC34K3qMamCeM9COf+ofJ8Mm gThR9LdeymTcJ4eXS8LoYC86ZEz+AmcIcRho64v6jGVWjoJTB0A67kCRXRYvl9fBAIdR TNXI0BC+tnvKgQUnrXqS0ESPzIbhBDi/uMnyvp44ilc/QsU2C9jWhrJ/M7ghQAvuy3ks fiNyScBYDvD5KlLboSRet+DvZShPuAKxudwsAmx1frhzWMscmJ6Oka5uPnI0EpQh+22S cYhfKzPlFVfozkXhbA4JGB9V/JRza33MLbbUBeEyrdZl8rKsi03szmuFXsAyQIZFB7vm +iOA== 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=DaSkT67a4inq24H0SFJ4VpQ0yp2f/LIjZHzednSLDaA=; b=Ivf5+PJmPxXX7622PJdUmG7BAOzeT0rNqwrzvqyM61OWaXWiGGXUDHREemI0rB9vXW ceH3waIbYyCFxU9g3PmUb53+SrnDItHtVg8lqVvRR7G8TkBZYqxWRWFSPi4DB927rVC8 Wi2zhXj70blB8FdDox6LxfOroedPfAogEwHYIO+zGKJOyQSDb81L8zTaR5Hi7pPhYa8J m3jnYZNsPXsvAjJyTRkZDGYlQ6Jt8SKSbqBKeOTYR1qszbndjBnMeg8cIFUt5CVFZ4tp ta+ePICOJI67FeAOjPrNSwxHzKcFks1a1XIg1NNAErQtzjqQLU8GjWJUgHbk3hZ8BYzG 3yNA== X-Gm-Message-State: AIkVDXKIAf2HKqv36qc3Z/VLa1cvR1phPPRhBmE6TCX20NElW/ra7xXgx2ahZVzJksbkdkDeiSUUaNNbF4JRzw== X-Received: by 10.31.102.134 with SMTP id a128mr4604421vkc.104.1484178141518; Wed, 11 Jan 2017 15:42:21 -0800 (PST) In-Reply-To: <2ccbfaec-0ff8-a5cb-bab3-cb9d39deaa9c@yandex.ru> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400c:c05::22c 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:112106 Archived-At: Sorry for the noise. I now understand what's happening. On Wed, Jan 11, 2017 at 6:37 PM Dmitry Gutov wrote: > On 12.01.2017 02:24, Kaushal Modi wrote: > > > After calls to > > xref-find-references, the value of semantic-symref-tool stays at 'detect. > > That's because it creates a local binding for this variable before > detecting the tool. In order not to interfere with its other uses. > Yup, thanks! > > 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. > > Try M-x debug-on-entry, maybe. > Got it. I edebugged that function and saw it execute. > > 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? > > Nope! > Understood. Thanks. -- Kaushal Modi