]> git.eshelyaron.com Git - emacs.git/commitdiff
(etags-file-of-tag): Use a regexp search to find the file name,
authorRoland McGrath <roland@gnu.org>
Wed, 18 Jan 1995 21:57:03 +0000 (21:57 +0000)
committerRoland McGrath <roland@gnu.org>
Wed, 18 Jan 1995 21:57:03 +0000 (21:57 +0000)
allowing it to contain any char but a newline.

lisp/progmodes/etags.el

index 0f93051ee6973464b40c7c8dff3998c4fa6d25a9..5066514687dcf134b8e80c6e6a56e91a1db8a7a0 100644 (file)
@@ -980,10 +980,8 @@ See documentation of variable `tags-file-name'."
 
 (defun etags-file-of-tag ()
   (save-excursion
-    (search-backward "\f\n")
-    (forward-char 2)
-    (buffer-substring (point)
-                     (progn (skip-chars-forward "^,") (point)))))
+    (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)))