From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#22947: 25.0.92; xref-find-definitions fails for Perl & etags Date: Sat, 12 Mar 2016 02:50:00 +0200 Message-ID: <05d7d814-b74a-710c-cf81-c12ad1259e0f@yandex.ru> References: <22239.6546.544495.576771@gargle.gargle.HOWL> <88256367-3f1d-6dda-a509-d89e3c8e6c28@yandex.ru> <22239.36324.478948.721025@gargle.gargle.HOWL> <83y49qlbam.fsf@gnu.org> <272376b7-ad78-a16d-ceeb-d7408fb59fdb@yandex.ru> <83oaaml57e.fsf@gnu.org> <22241.50645.374350.820199@gargle.gargle.HOWL> <838u1qkraf.fsf@gnu.org> <22243.2464.750492.689924@gargle.gargle.HOWL> <83mvq4j23f.fsf@gnu.org> <22243.5907.314537.266543@gargle.gargle.HOWL> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1457743886 29001 80.91.229.3 (12 Mar 2016 00:51:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 12 Mar 2016 00:51:26 +0000 (UTC) Cc: 22947@debbugs.gnu.org To: Bob Rogers , Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Mar 12 01:51:15 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aeXlu-0002Hk-N7 for geb-bug-gnu-emacs@m.gmane.org; Sat, 12 Mar 2016 01:51:10 +0100 Original-Received: from localhost ([::1]:58421 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aeXlu-0006rF-15 for geb-bug-gnu-emacs@m.gmane.org; Fri, 11 Mar 2016 19:51:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47673) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aeXlp-0006r5-Uv for bug-gnu-emacs@gnu.org; Fri, 11 Mar 2016 19:51:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aeXlm-0007e1-Ob for bug-gnu-emacs@gnu.org; Fri, 11 Mar 2016 19:51:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48452) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aeXlm-0007dx-KD for bug-gnu-emacs@gnu.org; Fri, 11 Mar 2016 19:51:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aeXlm-0004sB-Fc for bug-gnu-emacs@gnu.org; Fri, 11 Mar 2016 19:51:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 12 Mar 2016 00:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22947 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22947-submit@debbugs.gnu.org id=B22947.145774381218672 (code B ref 22947); Sat, 12 Mar 2016 00:51:02 +0000 Original-Received: (at 22947) by debbugs.gnu.org; 12 Mar 2016 00:50:12 +0000 Original-Received: from localhost ([127.0.0.1]:45579 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aeXky-0004r6-2n for submit@debbugs.gnu.org; Fri, 11 Mar 2016 19:50:12 -0500 Original-Received: from mail-wm0-f52.google.com ([74.125.82.52]:38003) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aeXku-0004qr-QG for 22947@debbugs.gnu.org; Fri, 11 Mar 2016 19:50:10 -0500 Original-Received: by mail-wm0-f52.google.com with SMTP id l68so37222801wml.1 for <22947@debbugs.gnu.org>; Fri, 11 Mar 2016 16:50:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=AWQ84SzeSlUakVcEUxUveCOkiMX87quN8frH5eEk48c=; b=Jho8SssmVGkXwuILpttr9YW01hoIEeejqaVJ5ATwD03zzKTGyjkg674yMKIvBxE9HK YM/nRhv2Jm9BZdhSoPsydJY6i9LBMzq/LuqPwN3MkXF59DolzGrByLISS/94ZE8IYmxS U3d21X0YI0RbyBu1tL4jTcnNBIOVW/T4L4WLxH/sYDx8iy1LCSrNmHFqmv9wVPtk2gyK Jvmt9LUikHrymYmcxih2RYiLynPuUtVdr4WY4n7aG71L7O/OLXgkwwNxRELtmwtPJhwQ wBJF0S+ij+UPtI+jAJRNKtkaJ/XNDBsYh0QCu7DifIsq8hNte5f43VuvoIoZK7WYP1B7 x64Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:to:references:cc:from:message-id :date:user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=AWQ84SzeSlUakVcEUxUveCOkiMX87quN8frH5eEk48c=; b=iVXu+wwcZpjIJMFn1zz9YkX9UwxWI0QdNfc9DTx2PzZDw/7PmW5AmaNSwzct3UuBR7 Tcsml+HFZXszh+o+bgB7mm7tQvXHgoNArKGlobJGRftPn7Kzifhnvn0mlH4GkDu9HCzZ XGGGpGcvkdzQMWqaYVEcSMEjZAj4l7+W3y/8Cl3I3LCB2Iv06fk3StVh4MqY3qAhW5Ec w/fQgTImKrXrZ8/ckFM333Duj1SzSdJEaEKU6g5Km5DlJC+S6b8GaLXoN7DrqlIh6hL6 KfPTNvutragEuMCRYvV77Bdh1VU2p7pvABOyz+livnmBMqPYK152EBliIyqgkNeGKPbC m5/w== X-Gm-Message-State: AD7BkJIKNgXqailrge6AMpNLlKZfNTwXLlfFMSwrMIpWHBxExMgTKtdiUeWcBLIWuX9cdg== X-Received: by 10.194.85.161 with SMTP id i1mr13518811wjz.95.1457743802872; Fri, 11 Mar 2016 16:50:02 -0800 (PST) Original-Received: from [192.168.1.2] ([185.105.175.24]) by smtp.googlemail.com with ESMTPSA id vw2sm10718233wjc.43.2016.03.11.16.50.01 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 11 Mar 2016 16:50:02 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.0 In-Reply-To: <22243.5907.314537.266543@gargle.gargle.HOWL> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:114802 Archived-At: On 03/11/2016 09:05 PM, Bob Rogers wrote: > > The new etags builds the table without package qualifications, but > > after "emacs -Q" and "M-x visit-tags-table", "M-." still doesn't > > find either the parse_recipes or add_ingredient definitions. > > Probably because you were not visiting a Perl file. Because otherwise > it worked for me. It works fine for me either way. > Yes, I see that now. But shouldn't it also work from other files? One reason why it might not work, is if the same method name is not recognized by the other file's syntax table as the symbol at point. For etags, we're basically calling (thing-at-point 'symbol). You can evaluate this form in any context, and see if it returns the method name you were trying to look up. If not, though, you can still press `C-u M-.' and type out the name of the method to look for (or even press M-n, see the default value inserted, and edit it), and press RET. This is not too different from the find-tag workflow. > I > find it very useful to type M-. on a Perl method name that appears in > documentation or in my notes, or to find a Perl definition mentioned in > a Javascript file comment (and vice versa). In general, it should work. Could you describe exactly what it is you tried (which file did you open, and where did you navigate before pressing `M-.'? did you press C-u?), so that we can reproduce it? > And many Perl programs have substantial C components. Am I to > understand that M-. between C and Elisp no longer works for Emacs? You can just from C to Elisp just like before. From Elisp to C - a bit tricker, since emacs-lisp-mode sets up an xref backend using find-func by default, not etags. But you can (add-hook 'emacs-lisp-mode-hook 'xref-etags-mode) to make it use etags as well.