aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoland McGrath1995-01-18 21:57:03 +0000
committerRoland McGrath1995-01-18 21:57:03 +0000
commit8e8f2c4a3ce23bbb672aec275a9718ff25d4392b (patch)
tree74a5f85233d164e360b48048e54f5da78176c8f0
parent0220c51857539b3bf812c3c0948efaa3429c3852 (diff)
downloademacs-8e8f2c4a3ce23bbb672aec275a9718ff25d4392b.tar.gz
emacs-8e8f2c4a3ce23bbb672aec275a9718ff25d4392b.zip
(etags-file-of-tag): Use a regexp search to find the file name,
allowing it to contain any char but a newline.
-rw-r--r--lisp/progmodes/etags.el6
1 files changed, 2 insertions, 4 deletions
diff --git a/lisp/progmodes/etags.el b/lisp/progmodes/etags.el
index 0f93051ee69..5066514687d 100644
--- a/lisp/progmodes/etags.el
+++ b/lisp/progmodes/etags.el
@@ -980,10 +980,8 @@ See documentation of variable `tags-file-name'."
980 980
981(defun etags-file-of-tag () 981(defun etags-file-of-tag ()
982 (save-excursion 982 (save-excursion
983 (search-backward "\f\n") 983 (re-search-backward "\f\n\\([^\n]+\\),[0-9]*\n")
984 (forward-char 2) 984 (buffer-substring (match-beginning 1) (match-end 1))))
985 (buffer-substring (point)
986 (progn (skip-chars-forward "^,") (point)))))
987 985
988(defun etags-tags-completion-table () 986(defun etags-tags-completion-table ()
989 (let ((table (make-vector 511 0))) 987 (let ((table (make-vector 511 0)))