]> git.eshelyaron.com Git - emacs.git/commitdiff
(etags-file-of-tag): Handle file name used as tag.
authorRichard M. Stallman <rms@gnu.org>
Tue, 7 Feb 1995 21:00:28 +0000 (21:00 +0000)
committerRichard M. Stallman <rms@gnu.org>
Tue, 7 Feb 1995 21:00:28 +0000 (21:00 +0000)
lisp/progmodes/etags.el

index c0b04613ef0df3695c529ad0e2fed26f6cbb3293..e572d3361f737d51756f5b1a083d1e13e667da6f 100644 (file)
@@ -997,9 +997,12 @@ See documentation of variable `tags-file-name'."
 
 (defun etags-file-of-tag ()
   (save-excursion
-    (re-search-backward "\f\n\\([^\n]+\\),[0-9]*\n")
+    (if (looking-at "./")
+        (re-search-forward "\\([^\n]+\\),[0-9]*\n")
+      (re-search-backward "\f\n\\([^\n]+\\),[0-9]*\n"))
     (buffer-substring (match-beginning 1) (match-end 1))))
 
+
 (defun etags-tags-completion-table ()
   (let ((table (make-vector 511 0)))
     (save-excursion