unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#26928: 25.1; The xref-find-definitions cannot recognize the `tags' file generated by ctags
@ 2017-05-14 14:12 palagend
  2017-05-14 18:15 ` Eli Zaretskii
  0 siblings, 1 reply; 3+ messages in thread
From: palagend @ 2017-05-14 14:12 UTC (permalink / raw)
  To: 26928

I use `ctags -R' command in the working directory `/usr/include',
generating a file named `tags' in the directory.And then I open one file in
`/usr/include' and then key in `M-x xref-find-definitions',the emacs
says that the tags file is not valid.




In GNU Emacs 25.1.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.22.4)
 of 2016-12-15 built on buildvm-30.phx2.fedoraproject.org
Windowing system distributor 'Fedora Project', version 11.0.11903000
System Description:	Fedora release 25 (Twenty Five)

Configured using:
 'configure --build=x86_64-redhat-linux-gnu
 --host=x86_64-redhat-linux-gnu --program-prefix=
 --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr
 --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc
 --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64
 --libexecdir=/usr/libexec --localstatedir=/var
 --sharedstatedir=/var/lib --mandir=/usr/share/man
 --infodir=/usr/share/info --with-dbus --with-gif --with-jpeg --with-png
 --with-rsvg --with-tiff --with-xft --with-xpm --with-x-toolkit=gtk3
 --with-gpm=no --with-xwidgets build_alias=x86_64-redhat-linux-gnu
 host_alias=x86_64-redhat-linux-gnu 'CFLAGS=-DMAIL_USE_LOCKF -O2 -g
 -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4
 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1
 -m64 -mtune=generic' LDFLAGS=-Wl,-z,relro
 PKG_CONFIG_PATH=:/usr/lib64/pkgconfig:/usr/share/pkgconfig'

Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND DBUS GCONF GSETTINGS NOTIFY
ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB
TOOLKIT_SCROLL_BARS GTK3 X11 XWIDGETS

Important settings:
  value of $LANG: zh_CN.UTF-8
  value of $XMODIFIERS: @im=ibus
  locale-coding-system: utf-8-unix

Major mode: Help

Minor modes in effect:
  display-time-mode: t
  global-linum-mode: t
  linum-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-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
  buffer-read-only: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent messages:
Checking 24 files in /usr/share/emacs/25.1/lisp/cedet...
Checking 57 files in /usr/share/emacs/25.1/lisp/calendar...
Checking 87 files in /usr/share/emacs/25.1/lisp/calc...
Checking 120 files in /usr/share/emacs/25.1/lisp/obsolete...
Checking for load-path shadows...done
Auto-saving...
Message modified; kill anyway? (y or n) y

Making completion list...
user-error: Previous command was not a yank

Load-path shadows:
/home/pal/.emacs.d/elpa/org-20170210/ox-ascii hides /usr/share/emacs/25.1/lisp/org/ox-ascii
/home/pal/.emacs.d/elpa/org-20170210/ob-makefile hides /usr/share/emacs/25.1/lisp/org/ob-makefile
/home/pal/.emacs.d/elpa/org-20170210/org-mobile hides /usr/share/emacs/25.1/lisp/org/org-mobile
/home/pal/.emacs.d/elpa/org-20170210/ob-picolisp hides /usr/share/emacs/25.1/lisp/org/ob-picolisp
/home/pal/.emacs.d/elpa/org-20170210/org-colview hides /usr/share/emacs/25.1/lisp/org/org-colview
/home/pal/.emacs.d/elpa/org-20170210/ob-C hides /usr/share/emacs/25.1/lisp/org/ob-C
/home/pal/.emacs.d/elpa/org-20170210/org-pcomplete hides /usr/share/emacs/25.1/lisp/org/org-pcomplete
/home/pal/.emacs.d/elpa/org-20170210/ox-html hides /usr/share/emacs/25.1/lisp/org/ox-html
/home/pal/.emacs.d/elpa/org-20170210/ob-gnuplot hides /usr/share/emacs/25.1/lisp/org/ob-gnuplot
/home/pal/.emacs.d/elpa/org-20170210/ob-haskell hides /usr/share/emacs/25.1/lisp/org/ob-haskell
/home/pal/.emacs.d/elpa/org-20170210/ox-latex hides /usr/share/emacs/25.1/lisp/org/ox-latex
/home/pal/.emacs.d/elpa/org-20170210/ob-ditaa hides /usr/share/emacs/25.1/lisp/org/ob-ditaa
/home/pal/.emacs.d/elpa/org-20170210/ob-sass hides /usr/share/emacs/25.1/lisp/org/ob-sass
/home/pal/.emacs.d/elpa/org-20170210/ox-man hides /usr/share/emacs/25.1/lisp/org/ox-man
/home/pal/.emacs.d/elpa/org-20170210/org-feed hides /usr/share/emacs/25.1/lisp/org/org-feed
/home/pal/.emacs.d/elpa/org-20170210/ox-md hides /usr/share/emacs/25.1/lisp/org/ox-md
/home/pal/.emacs.d/elpa/org-20170210/org-src hides /usr/share/emacs/25.1/lisp/org/org-src
/home/pal/.emacs.d/elpa/org-20170210/org-inlinetask hides /usr/share/emacs/25.1/lisp/org/org-inlinetask
/home/pal/.emacs.d/elpa/org-20170210/org-bibtex hides /usr/share/emacs/25.1/lisp/org/org-bibtex
/home/pal/.emacs.d/elpa/org-20170210/ob-maxima hides /usr/share/emacs/25.1/lisp/org/ob-maxima
/home/pal/.emacs.d/elpa/org-20170210/org-docview hides /usr/share/emacs/25.1/lisp/org/org-docview
/home/pal/.emacs.d/elpa/org-20170210/ob-fortran hides /usr/share/emacs/25.1/lisp/org/ob-fortran
/home/pal/.emacs.d/elpa/org-20170210/ob-core hides /usr/share/emacs/25.1/lisp/org/ob-core
/home/pal/.emacs.d/elpa/org-20170210/ob-sqlite hides /usr/share/emacs/25.1/lisp/org/ob-sqlite
/home/pal/.emacs.d/elpa/org-20170210/org-indent hides /usr/share/emacs/25.1/lisp/org/org-indent
/home/pal/.emacs.d/elpa/org-20170210/org-attach hides /usr/share/emacs/25.1/lisp/org/org-attach
/home/pal/.emacs.d/elpa/org-20170210/org-macs hides /usr/share/emacs/25.1/lisp/org/org-macs
/home/pal/.emacs.d/elpa/org-20170210/org-mhe hides /usr/share/emacs/25.1/lisp/org/org-mhe
/home/pal/.emacs.d/elpa/org-20170210/org-footnote hides /usr/share/emacs/25.1/lisp/org/org-footnote
/home/pal/.emacs.d/elpa/org-20170210/org-macro hides /usr/share/emacs/25.1/lisp/org/org-macro
/home/pal/.emacs.d/elpa/org-20170210/org-compat hides /usr/share/emacs/25.1/lisp/org/org-compat
/home/pal/.emacs.d/elpa/org-20170210/ob-java hides /usr/share/emacs/25.1/lisp/org/ob-java
/home/pal/.emacs.d/elpa/org-20170210/ob-matlab hides /usr/share/emacs/25.1/lisp/org/ob-matlab
/home/pal/.emacs.d/elpa/org-20170210/ob-keys hides /usr/share/emacs/25.1/lisp/org/ob-keys
/home/pal/.emacs.d/elpa/org-20170210/org-id hides /usr/share/emacs/25.1/lisp/org/org-id
/home/pal/.emacs.d/elpa/org-20170210/ob-scala hides /usr/share/emacs/25.1/lisp/org/ob-scala
/home/pal/.emacs.d/elpa/org-20170210/ob-shen hides /usr/share/emacs/25.1/lisp/org/ob-shen
/home/pal/.emacs.d/elpa/org-20170210/ob-lisp hides /usr/share/emacs/25.1/lisp/org/ob-lisp
/home/pal/.emacs.d/elpa/org-20170210/ox-odt hides /usr/share/emacs/25.1/lisp/org/ox-odt
/home/pal/.emacs.d/elpa/org-20170210/ob-dot hides /usr/share/emacs/25.1/lisp/org/ob-dot
/home/pal/.emacs.d/elpa/org-20170210/org hides /usr/share/emacs/25.1/lisp/org/org
/home/pal/.emacs.d/elpa/org-20170210/ob-org hides /usr/share/emacs/25.1/lisp/org/ob-org
/home/pal/.emacs.d/elpa/org-20170210/org-w3m hides /usr/share/emacs/25.1/lisp/org/org-w3m
/home/pal/.emacs.d/elpa/org-20170210/org-gnus hides /usr/share/emacs/25.1/lisp/org/org-gnus
/home/pal/.emacs.d/elpa/org-20170210/ob-io hides /usr/share/emacs/25.1/lisp/org/ob-io
/home/pal/.emacs.d/elpa/org-20170210/org-version hides /usr/share/emacs/25.1/lisp/org/org-version
/home/pal/.emacs.d/elpa/org-20170210/ob-exp hides /usr/share/emacs/25.1/lisp/org/ob-exp
/home/pal/.emacs.d/elpa/org-20170210/org-datetree hides /usr/share/emacs/25.1/lisp/org/org-datetree
/home/pal/.emacs.d/elpa/org-20170210/ob hides /usr/share/emacs/25.1/lisp/org/ob
/home/pal/.emacs.d/elpa/org-20170210/org-mouse hides /usr/share/emacs/25.1/lisp/org/org-mouse
/home/pal/.emacs.d/elpa/org-20170210/ob-eval hides /usr/share/emacs/25.1/lisp/org/ob-eval
/home/pal/.emacs.d/elpa/org-20170210/ox-texinfo hides /usr/share/emacs/25.1/lisp/org/ox-texinfo
/home/pal/.emacs.d/elpa/org-20170210/ob-latex hides /usr/share/emacs/25.1/lisp/org/ob-latex
/home/pal/.emacs.d/elpa/org-20170210/ob-lilypond hides /usr/share/emacs/25.1/lisp/org/ob-lilypond
/home/pal/.emacs.d/elpa/org-20170210/org-crypt hides /usr/share/emacs/25.1/lisp/org/org-crypt
/home/pal/.emacs.d/elpa/org-20170210/ob-awk hides /usr/share/emacs/25.1/lisp/org/ob-awk
/home/pal/.emacs.d/elpa/org-20170210/org-faces hides /usr/share/emacs/25.1/lisp/org/org-faces
/home/pal/.emacs.d/elpa/org-20170210/ox-org hides /usr/share/emacs/25.1/lisp/org/ox-org
/home/pal/.emacs.d/elpa/org-20170210/org-agenda hides /usr/share/emacs/25.1/lisp/org/org-agenda
/home/pal/.emacs.d/elpa/org-20170210/ob-ledger hides /usr/share/emacs/25.1/lisp/org/ob-ledger
/home/pal/.emacs.d/elpa/org-20170210/ob-ocaml hides /usr/share/emacs/25.1/lisp/org/ob-ocaml
/home/pal/.emacs.d/elpa/org-20170210/ox-publish hides /usr/share/emacs/25.1/lisp/org/ox-publish
/home/pal/.emacs.d/elpa/org-20170210/ob-asymptote hides /usr/share/emacs/25.1/lisp/org/ob-asymptote
/home/pal/.emacs.d/elpa/org-20170210/ob-screen hides /usr/share/emacs/25.1/lisp/org/ob-screen
/home/pal/.emacs.d/elpa/org-20170210/ob-emacs-lisp hides /usr/share/emacs/25.1/lisp/org/ob-emacs-lisp
/home/pal/.emacs.d/elpa/org-20170210/org-clock hides /usr/share/emacs/25.1/lisp/org/org-clock
/home/pal/.emacs.d/elpa/org-20170210/org-irc hides /usr/share/emacs/25.1/lisp/org/org-irc
/home/pal/.emacs.d/elpa/org-20170210/ob-python hides /usr/share/emacs/25.1/lisp/org/ob-python
/home/pal/.emacs.d/elpa/org-20170210/ob-lob hides /usr/share/emacs/25.1/lisp/org/ob-lob
/home/pal/.emacs.d/elpa/org-20170210/org-info hides /usr/share/emacs/25.1/lisp/org/org-info
/home/pal/.emacs.d/elpa/org-20170210/ox-beamer hides /usr/share/emacs/25.1/lisp/org/ox-beamer
/home/pal/.emacs.d/elpa/org-20170210/ob-calc hides /usr/share/emacs/25.1/lisp/org/ob-calc
/home/pal/.emacs.d/elpa/org-20170210/ob-sql hides /usr/share/emacs/25.1/lisp/org/ob-sql
/home/pal/.emacs.d/elpa/org-20170210/org-entities hides /usr/share/emacs/25.1/lisp/org/org-entities
/home/pal/.emacs.d/elpa/org-20170210/ob-comint hides /usr/share/emacs/25.1/lisp/org/ob-comint
/home/pal/.emacs.d/elpa/org-20170210/org-element hides /usr/share/emacs/25.1/lisp/org/org-element
/home/pal/.emacs.d/elpa/org-20170210/ob-plantuml hides /usr/share/emacs/25.1/lisp/org/ob-plantuml
/home/pal/.emacs.d/elpa/org-20170210/ob-mscgen hides /usr/share/emacs/25.1/lisp/org/ob-mscgen
/home/pal/.emacs.d/elpa/org-20170210/ob-R hides /usr/share/emacs/25.1/lisp/org/ob-R
/home/pal/.emacs.d/elpa/org-20170210/ob-octave hides /usr/share/emacs/25.1/lisp/org/ob-octave
/home/pal/.emacs.d/elpa/org-20170210/ob-tangle hides /usr/share/emacs/25.1/lisp/org/ob-tangle
/home/pal/.emacs.d/elpa/org-20170210/ob-scheme hides /usr/share/emacs/25.1/lisp/org/ob-scheme
/home/pal/.emacs.d/elpa/org-20170210/org-table hides /usr/share/emacs/25.1/lisp/org/org-table
/home/pal/.emacs.d/elpa/org-20170210/org-timer hides /usr/share/emacs/25.1/lisp/org/org-timer
/home/pal/.emacs.d/elpa/org-20170210/ox hides /usr/share/emacs/25.1/lisp/org/ox
/home/pal/.emacs.d/elpa/org-20170210/org-ctags hides /usr/share/emacs/25.1/lisp/org/org-ctags
/home/pal/.emacs.d/elpa/org-20170210/org-rmail hides /usr/share/emacs/25.1/lisp/org/org-rmail
/home/pal/.emacs.d/elpa/org-20170210/org-eshell hides /usr/share/emacs/25.1/lisp/org/org-eshell
/home/pal/.emacs.d/elpa/org-20170210/org-habit hides /usr/share/emacs/25.1/lisp/org/org-habit
/home/pal/.emacs.d/elpa/org-20170210/ob-ruby hides /usr/share/emacs/25.1/lisp/org/ob-ruby
/home/pal/.emacs.d/elpa/org-20170210/ox-icalendar hides /usr/share/emacs/25.1/lisp/org/ox-icalendar
/home/pal/.emacs.d/elpa/org-20170210/ob-css hides /usr/share/emacs/25.1/lisp/org/ob-css
/home/pal/.emacs.d/elpa/org-20170210/ob-js hides /usr/share/emacs/25.1/lisp/org/ob-js
/home/pal/.emacs.d/elpa/org-20170210/org-plot hides /usr/share/emacs/25.1/lisp/org/org-plot
/home/pal/.emacs.d/elpa/org-20170210/org-archive hides /usr/share/emacs/25.1/lisp/org/org-archive
/home/pal/.emacs.d/elpa/org-20170210/org-bbdb hides /usr/share/emacs/25.1/lisp/org/org-bbdb
/home/pal/.emacs.d/elpa/org-20170210/ob-clojure hides /usr/share/emacs/25.1/lisp/org/ob-clojure
/home/pal/.emacs.d/elpa/org-20170210/ob-table hides /usr/share/emacs/25.1/lisp/org/ob-table
/home/pal/.emacs.d/elpa/org-20170210/org-capture hides /usr/share/emacs/25.1/lisp/org/org-capture
/home/pal/.emacs.d/elpa/org-20170210/org-protocol hides /usr/share/emacs/25.1/lisp/org/org-protocol
/home/pal/.emacs.d/elpa/org-20170210/ob-perl hides /usr/share/emacs/25.1/lisp/org/ob-perl
/home/pal/.emacs.d/elpa/org-20170210/org-list hides /usr/share/emacs/25.1/lisp/org/org-list
/home/pal/.emacs.d/elpa/org-20170210/ob-ref hides /usr/share/emacs/25.1/lisp/org/ob-ref
/home/pal/.emacs.d/elpa/org-20170210/org-loaddefs hides /usr/share/emacs/25.1/lisp/org/org-loaddefs
/home/pal/.emacs.d/elpa/org-20170210/org-install hides /usr/share/emacs/25.1/lisp/org/org-install

Features:
(pp shadow sort mail-extr emacsbug sendmail noutline outline easy-mmode
jka-compr thingatpt finder find-func lisp-mnt gnus-demon nntp gnus-group
gnus-undo gnus-start gnus-cloud nnimap nnmail mail-source tls gnutls
utf7 netrc parse-time gnus-spec nnoo gnus-int gnus-range message idna
dired format-spec rfc822 mml mml-sec password-cache epg mm-decode
mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums
mailabbrev gmm-utils mailheader gnus-win gnus gnus-ems nnheader
gnus-util mail-utils mm-util help-fns mail-prsvr wid-edit time linum
wheatgrass-theme finder-inf tex-site info package epg-config seq
byte-opt gv bytecomp byte-compile cl-extra help-mode easymenu cconv
cl-loaddefs pcase cl-lib time-date mule-util china-util tooltip eldoc
electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win
term/common-win x-dnd 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 charscript 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
dbusbind inotify dynamic-setting system-font-setting font-render-setting
xwidget-internal move-toolbar gtk x-toolkit x multi-tty
make-network-process emacs)

Memory information:
((conses 16 138114 20293)
 (symbols 48 25467 0)
 (miscs 40 315 262)
 (strings 32 31491 4841)
 (string-bytes 1 987133)
 (vectors 16 19493)
 (vector-slots 8 536758 7855)
 (floats 8 298 425)
 (intervals 56 717 141)
 (buffers 976 22))






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

* bug#26928: 25.1; The xref-find-definitions cannot recognize the `tags' file generated by ctags
  2017-05-14 14:12 bug#26928: 25.1; The xref-find-definitions cannot recognize the `tags' file generated by ctags palagend
@ 2017-05-14 18:15 ` Eli Zaretskii
  2017-06-15  0:08   ` npostavs
  0 siblings, 1 reply; 3+ messages in thread
From: Eli Zaretskii @ 2017-05-14 18:15 UTC (permalink / raw)
  To: palagend; +Cc: 26928

> From: palagend <palagend@163.com>
> Date: Sun, 14 May 2017 22:12:23 +0800
> 
> I use `ctags -R' command in the working directory `/usr/include',
> generating a file named `tags' in the directory.And then I open one file in
> `/usr/include' and then key in `M-x xref-find-definitions',the emacs
> says that the tags file is not valid.

You need to use 'etags', not 'ctags'.  It will create a file named
'TAGS', in upper-case.  Try "M-x xref-find-definitions" after telling
Emacs to read it with "M-x visit-tags-table".

If 'etags' produces a TAGS file that xref-find-definitions says is
invalid, please send the TAGS file as an attachment, so we could
investigate.

Thanks.





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

* bug#26928: 25.1; The xref-find-definitions cannot recognize the `tags' file generated by ctags
  2017-05-14 18:15 ` Eli Zaretskii
@ 2017-06-15  0:08   ` npostavs
  0 siblings, 0 replies; 3+ messages in thread
From: npostavs @ 2017-06-15  0:08 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: palagend, 26928

close 26928 
quit

Eli Zaretskii <eliz@gnu.org> writes:

>> From: palagend <palagend@163.com>
>> Date: Sun, 14 May 2017 22:12:23 +0800
>> 
>> I use `ctags -R' command in the working directory `/usr/include',
>> generating a file named `tags' in the directory.And then I open one file in
>> `/usr/include' and then key in `M-x xref-find-definitions',the emacs
>> says that the tags file is not valid.
>
> You need to use 'etags', not 'ctags'.  It will create a file named
> 'TAGS', in upper-case.  Try "M-x xref-find-definitions" after telling
> Emacs to read it with "M-x visit-tags-table".

I'm therefore closing this as notabug.





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

end of thread, other threads:[~2017-06-15  0:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-14 14:12 bug#26928: 25.1; The xref-find-definitions cannot recognize the `tags' file generated by ctags palagend
2017-05-14 18:15 ` Eli Zaretskii
2017-06-15  0:08   ` npostavs

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