all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#23400: Emacs 25.0.92.1: etags fails to handle file format generated by Exuberant Ctags 5.8 in etags emulation mode
@ 2016-04-29 14:42 Robert Weiner
  2016-04-29 16:28 ` Andreas Schwab
  2020-08-19 13:30 ` Lars Ingebrigtsen
  0 siblings, 2 replies; 6+ messages in thread
From: Robert Weiner @ 2016-04-29 14:42 UTC (permalink / raw
  To: 23400


[-- 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 --]

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

end of thread, other threads:[~2020-08-19 13:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-29 14:42 bug#23400: Emacs 25.0.92.1: etags fails to handle file format generated by Exuberant Ctags 5.8 in etags emulation mode Robert Weiner
2016-04-29 16:28 ` 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

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.