]> git.eshelyaron.com Git - emacs.git/commitdiff
(etags-tags-table-files, etags-tags-included-tables):
authorRichard M. Stallman <rms@gnu.org>
Tue, 18 Oct 1994 02:19:25 +0000 (02:19 +0000)
committerRichard M. Stallman <rms@gnu.org>
Tue, 18 Oct 1994 02:19:25 +0000 (02:19 +0000)
Search backwards for the comma in case the file name contains one.

lisp/progmodes/etags.el

index 7e63bb176b4b65e9569b65b4faa4fca335b8d20c..42c43ee1f010bf492c1fc69975e54f5ee128f4e3 100644 (file)
@@ -1114,10 +1114,11 @@ See documentation of variable `tags-file-name'."
     (goto-char (point-min))
     (while (search-forward "\f\n" nil t)
       (setq beg (point))
-      (skip-chars-forward "^,\n")
-      (or (looking-at ",include$")
+      (end-of-line)
+      (skip-chars-backward "^," beg)
+      (or (looking-at "include$")
          ;; Expand in the default-directory of the tags table buffer.
-         (setq files (cons (expand-file-name (buffer-substring beg (point)))
+         (setq files (cons (expand-file-name (buffer-substring beg (1- (point))))
                            files))))
     (nreverse files)))
 
@@ -1127,10 +1128,11 @@ See documentation of variable `tags-file-name'."
     (goto-char (point-min))
     (while (search-forward "\f\n" nil t)
       (setq beg (point))
-      (skip-chars-forward "^,\n")
-      (if (looking-at ",include$")
+      (end-of-line)
+      (skip-chars-backward "^," beg)
+      (if (looking-at "include$")
          ;; Expand in the default-directory of the tags table buffer.
-         (setq files (cons (expand-file-name (buffer-substring beg (point)))
+         (setq files (cons (expand-file-name (buffer-substring beg (1- (point))))
                            files))))
     (nreverse files)))
 \f