From: Robert Weiner <rswgnu@gmail.com>
To: 23400@debbugs.gnu.org
Subject: bug#23400: Emacs 25.0.92.1: etags fails to handle file format generated by Exuberant Ctags 5.8 in etags emulation mode
Date: Fri, 29 Apr 2016 10:42:32 -0400 [thread overview]
Message-ID: <CA+OMD9iXZW9xKF5Z1gwV-Q9dr6J04EvON=a5yd9e7036UguMJw@mail.gmail.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 1167 bytes --]
Exuberant Ctags allows one to generate what is said to be an etags
compatible TAGS file.
However, a call to list-tags fails on such a file because it includes 2
lines of file names per file rather than one.
Attached is a sample TAGS file that triggers the error with this call:
(list-tags "hmouse-key.el")
and an associated patch that fixes it.
diff -u --label
/Applications/Emacs25.app/Contents/Resources/lisp/progmodes/etags.el.gz\~
--label
/Applications/Emacs25.app/Contents/Resources/lisp/progmodes/etags.el.gz
/var/folders/8s/b7pm6fms2nsc1x2651dpvrd00000gn/T/jka-com77357KwE
/var/folders/8s/b7pm6fms2nsc1x2651dpvrd00000gn/T/jka-com77357kER
--- /Applications/Emacs25.app/Contents/Resources/lisp/progmodes/etags.el.gz~
+++ /Applications/Emacs25.app/Contents/Resources/lisp/progmodes/etags.el.gz
@@ -1398,6 +1398,8 @@
(goto-func goto-tag-location-function)
tag tag-info pt)
(forward-line 1)
+ (if (looking-at "\177")
+ (forward-line 1))
(while (not (or (eobp) (looking-at "\f")))
;; We used to use explicit tags when available, but the current
goto-func
;; can only handle implicit tags.
Diff finished. Fri Apr 29 10:23:18 2016
[-- Attachment #1.2: Type: text/html, Size: 1623 bytes --]
[-- Attachment #2: TAGS --]
[-- Type: application/octet-stream, Size: 187 bytes --]
next reply other threads:[~2016-04-29 14:42 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-29 14:42 Robert Weiner [this message]
2016-04-29 16:28 ` bug#23400: Emacs 25.0.92.1: etags fails to handle file format generated by Exuberant Ctags 5.8 in etags emulation mode Andreas Schwab
2016-04-29 20:26 ` Dmitry Gutov
2016-05-01 15:47 ` Robert Weiner
2016-05-01 20:23 ` Dmitry Gutov
2020-08-19 13:30 ` Lars Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CA+OMD9iXZW9xKF5Z1gwV-Q9dr6J04EvON=a5yd9e7036UguMJw@mail.gmail.com' \
--to=rswgnu@gmail.com \
--cc=23400@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.