]> git.eshelyaron.com Git - emacs.git/commitdiff
(etags-list-tags): Check for explicit tag names.
authorRoland McGrath <roland@gnu.org>
Tue, 8 Mar 1994 05:58:50 +0000 (05:58 +0000)
committerRoland McGrath <roland@gnu.org>
Tue, 8 Mar 1994 05:58:50 +0000 (05:58 +0000)
lisp/progmodes/etags.el

index 75c949f8555abdb7b367cd070f93c7de059b2087..bbcf7e968286a4a2da633d6f4cf89afd83204533 100644 (file)
@@ -1020,9 +1020,15 @@ See documentation of variable `tags-file-name'."
       nil
     (forward-line 1)
     (while (not (or (eobp) (looking-at "\f")))
-      (princ (buffer-substring (point)
-                              (progn (skip-chars-forward "^\177")
-                                     (point))))
+      (let ((tag (buffer-substring (point)
+                                  (progn (skip-chars-forward "^\177")
+                                         (point)))))
+       (princ (if (looking-at "[^\n]+\001")
+                  ;; There is an explicit tag name; use that.
+                  (buffer-substring (point)
+                                    (progn (skip-chars-forward "^\001")
+                                           (point)))
+                tag)))
       (terpri)
       (forward-line 1))
     t))