Mercurial > emacs
changeset 43853:815a7e661d37
* progmodes/etags.el (tag-exact-file-name-match-p)
(tag-file-name-match-p, tag-partial-file-name-match-p): Assume
that the header of a tags section has either a number or nothing
after the last comma.
author | Francesco Potortì <pot@gnu.org> |
---|---|
date | Tue, 12 Mar 2002 13:12:34 +0000 |
parents | 81831e8ae980 |
children | e71940336640 |
files | lisp/progmodes/etags.el |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/progmodes/etags.el Tue Mar 12 13:12:10 2002 +0000 +++ b/lisp/progmodes/etags.el Tue Mar 12 13:12:34 2002 +0000 @@ -1506,13 +1506,13 @@ ;; 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 ",") + (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 ",") + (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 @@ ;; 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 ".*,") + (and (looking-at ".*,[0-9]\\|\n") (save-excursion (beginning-of-line) (backward-char 2) (looking-at "\f\n"))))