unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#20650: 25.0.50; xref seems not to pick C++ destructors
@ 2015-05-25 15:27 Eli Zaretskii
  2015-05-25 23:21 ` Dmitry Gutov
  0 siblings, 1 reply; 5+ messages in thread
From: Eli Zaretskii @ 2015-05-25 15:27 UTC (permalink / raw)
  To: 20650

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))





^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-11-26  3:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-25 15:27 bug#20650: 25.0.50; xref seems not to pick C++ destructors Eli Zaretskii
2015-05-25 23:21 ` Dmitry Gutov
2015-05-26  2:38   ` Eli Zaretskii
2015-05-26  9:58     ` Dmitry Gutov
2015-11-26  3:16   ` Dmitry Gutov

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).