aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes
diff options
context:
space:
mode:
authorFrancesco Potortì <[email protected]>2002-03-13 14:48:00 +0000
committerFrancesco Potortì <[email protected]>2002-03-13 14:48:00 +0000
commit1f21ea94721693d562b79c58909e0c464c5994af (patch)
treee0712ff5a32286d90115d3ab8d9fb90cd430dfa3 /lisp/progmodes
parentf6010b5421e87bb36f501992b969e857d4cd98a0 (diff)
* progmodes/etags.el (tag-exact-file-name-match-p)
(tag-file-name-match-p, tag-partial-file-name-match-p): Use a simpler regexp.
Diffstat (limited to 'lisp/progmodes')
-rw-r--r--lisp/progmodes/etags.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/progmodes/etags.el b/lisp/progmodes/etags.el
index 4bcc6135bb..c0613881db 100644
--- a/lisp/progmodes/etags.el
+++ b/lisp/progmodes/etags.el
@@ -1506,13 +1506,13 @@ where they were found."
;; exact file name match, i.e. searched tag must match complete file
;; name including directories parts if there are some.
(defun tag-exact-file-name-match-p (tag)
- (and (looking-at ",[0-9]\\|\n")
+ (and (looking-at ",[0-9\n]")
(save-excursion (backward-char (+ 2 (length tag)))
(looking-at "\f\n"))))
;; file name match as above, but searched tag must match the file
;; name not including the directories if there are some.
(defun tag-file-name-match-p (tag)
- (and (looking-at ",[0-9]\\|\n")
+ (and (looking-at ",[0-9\n]")
(save-excursion (backward-char (1+ (length tag)))
(looking-at "/"))))
;; this / to detect we are after a directory separator is ok for unix,
@@ -1523,7 +1523,7 @@ where they were found."
;; partial file name match, i.e. searched tag must match a substring
;; of the file name (potentially including a directory separator).
(defun tag-partial-file-name-match-p (tag)
- (and (looking-at ".*,[0-9]\\|\n")
+ (and (looking-at ".*,[0-9\n]")
(save-excursion (beginning-of-line)
(backward-char 2)
(looking-at "\f\n"))))