From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#20650: 25.0.50; xref seems not to pick C++ destructors Date: Mon, 25 May 2015 18:27:44 +0300 Message-ID: <83k2vwzngv.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1432567834 24591 80.91.229.3 (25 May 2015 15:30:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 25 May 2015 15:30:34 +0000 (UTC) To: 20650@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon May 25 17:30:21 2015 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 1YwuKa-00065y-6r for geb-bug-gnu-emacs@m.gmane.org; Mon, 25 May 2015 17:30:20 +0200 Original-Received: from localhost ([::1]:44079 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YwuKZ-00059U-Fk for geb-bug-gnu-emacs@m.gmane.org; Mon, 25 May 2015 11:30:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37573) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YwuKQ-0004zw-M2 for bug-gnu-emacs@gnu.org; Mon, 25 May 2015 11:30:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YwuKN-0002hC-B2 for bug-gnu-emacs@gnu.org; Mon, 25 May 2015 11:30:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45787) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YwuKN-0002gN-7K for bug-gnu-emacs@gnu.org; Mon, 25 May 2015 11:30:07 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YwuKM-0001NI-7l for bug-gnu-emacs@gnu.org; Mon, 25 May 2015 11:30:06 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 25 May 2015 15:30:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 20650 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.14325677425184 (code B ref -1); Mon, 25 May 2015 15:30:04 +0000 Original-Received: (at submit) by debbugs.gnu.org; 25 May 2015 15:29:02 +0000 Original-Received: from localhost ([127.0.0.1]:55761 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YwuJF-0001LD-J5 for submit@debbugs.gnu.org; Mon, 25 May 2015 11:29:02 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:51851) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YwuJ8-0001Kt-IT for submit@debbugs.gnu.org; Mon, 25 May 2015 11:28:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YwuIz-0002Bc-Us for submit@debbugs.gnu.org; Mon, 25 May 2015 11:28:45 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:42372) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YwuIz-0002BX-SN for submit@debbugs.gnu.org; Mon, 25 May 2015 11:28:41 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37054) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YwuIv-0004Dt-Fn for bug-gnu-emacs@gnu.org; Mon, 25 May 2015 11:28:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YwuIr-00028t-4L for bug-gnu-emacs@gnu.org; Mon, 25 May 2015 11:28:37 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:46400) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YwuIq-00028a-Ov for bug-gnu-emacs@gnu.org; Mon, 25 May 2015 11:28:33 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0NOW00100VUH6E00@a-mtaout22.012.net.il> for bug-gnu-emacs@gnu.org; Mon, 25 May 2015 18:27:57 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NOW001MCWAL4H30@a-mtaout22.012.net.il> for bug-gnu-emacs@gnu.org; Mon, 25 May 2015 18:27:57 +0300 (IDT) X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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:103158 Archived-At: From: eliz@HOME-C4E4A596F7.i-did-not-set--mail-host-address--so-tickle-me --text follows this line-- To reproduce: emacs -Q C-x C-f test/etags/cp-src/c.C RET C-s ~A This should land you on line 118 of c.C, which says: struct A { ~A(); <<<<<<<<<<<<<<<<<<<<<<< line 118 }; Now, with point on "A" in "~A", type "M-." and when Emacs prompts for TAGS table, direct it to use test/etags/ETAGS.good_1. The result is that you are presented with a 17-line *xref* buffer showing the possible candidates, but it is clear that xref thought you wanted to find the symbol "A". Now switch back to the buffer visiting c.C and type: C-u M-. ~A RET Result: you are immediately placed on the line of c.C that defines the destructor for class A. IOW, the tags table is OK, it's xref that didn't understand that when point is on "~A", you want ~A, not A. In GNU Emacs 25.0.50.82 (i686-pc-mingw32) of 2015-05-25 on HOME-C4E4A596F7 Windowing system distributor `Microsoft Corp.', version 5.1.2600 Configured using: `configure --prefix=/d/usr --enable-checking=yes,glyphs 'CFLAGS=-gdwarf-4 -g3 -O0'' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY ACL GNUTLS LIBXML2 ZLIB Important settings: value of $LANG: ENU locale-coding-system: cp1255 Major mode: C/l Minor modes in effect: diff-auto-refine-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t abbrev-mode: t Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Mark set Starting a new list of tags tables Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message dired format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils pulse compile comint ansi-color cl-macs thingatpt etags xref cl-seq eieio byte-opt gv bytecomp byte-compile cl-extra seq cconv eieio-core ring vc cl-loaddefs pcase cl-lib vc-dispatcher vc-git diff-mode easy-mmode cc-mode cc-fonts easymenu cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp disp-table w32-win w32-vars term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote w32notify w32 multi-tty make-network-process emacs) Memory information: ((conses 8 124602 4439) (symbols 32 23214 0) (miscs 32 55 152) (strings 16 26670 4578) (string-bytes 1 866172) (vectors 8 17026) (vector-slots 4 473904 2152) (floats 8 180 106) (intervals 28 1101 344) (buffers 516 14))