aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMasatake YAMATO2004-05-21 08:36:46 +0000
committerMasatake YAMATO2004-05-21 08:36:46 +0000
commit46de1c5a15282e13d843ee553fc564d024e39fc2 (patch)
treec10cb7088ae362090780ac8cd9c235a6a8043257
parenta6e7bdf1717c7d99f9ce3f48c8f34439455ddd1b (diff)
downloademacs-46de1c5a15282e13d843ee553fc564d024e39fc2.tar.gz
emacs-46de1c5a15282e13d843ee553fc564d024e39fc2.zip
(etags-tags-completion-table): Show parsing progress.
-rw-r--r--lisp/ChangeLog1
-rw-r--r--lisp/progmodes/etags.el17
2 files changed, 12 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 2fce46e2fa6..09da454f20f 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -2,6 +2,7 @@
2 2
3 * progmodes/etags.el (tags-apropos, list-tags): Require 3 * progmodes/etags.el (tags-apropos, list-tags): Require
4 apropos. 4 apropos.
5 (etags-tags-completion-table): Show parsing progress.
5 6
62004-05-20 Luc Teirlinck <teirllm@auburn.edu> 72004-05-20 Luc Teirlinck <teirllm@auburn.edu>
7 8
diff --git a/lisp/progmodes/etags.el b/lisp/progmodes/etags.el
index 49294d6625c..184077f6a3a 100644
--- a/lisp/progmodes/etags.el
+++ b/lisp/progmodes/etags.el
@@ -1248,7 +1248,11 @@ where they were found."
1248 1248
1249 1249
1250(defun etags-tags-completion-table () 1250(defun etags-tags-completion-table ()
1251 (let ((table (make-vector 511 0))) 1251 (let ((table (make-vector 511 0))
1252 (point-max (/ (float (point-max)) 100.0))
1253 (msg-fmt (format
1254 "Making tags completion table for %s...%%d%%%%"
1255 buffer-file-name)))
1252 (save-excursion 1256 (save-excursion
1253 (goto-char (point-min)) 1257 (goto-char (point-min))
1254 ;; This monster regexp matches an etags tag line. 1258 ;; This monster regexp matches an etags tag line.
@@ -1264,11 +1268,12 @@ where they were found."
1264\\([-a-zA-Z0-9_+*$?:]+\\)[^-a-zA-Z0-9_+*$?:\177]*\\)\177\ 1268\\([-a-zA-Z0-9_+*$?:]+\\)[^-a-zA-Z0-9_+*$?:\177]*\\)\177\
1265\\(\\([^\n\001]+\\)\001\\)?\\([0-9]+\\)?,\\([0-9]+\\)?\n" 1269\\(\\([^\n\001]+\\)\001\\)?\\([0-9]+\\)?,\\([0-9]+\\)?\n"
1266 nil t) 1270 nil t)
1267 (intern (if (match-beginning 5) 1271 (intern (prog1 (if (match-beginning 5)
1268 ;; There is an explicit tag name. 1272 ;; There is an explicit tag name.
1269 (buffer-substring (match-beginning 5) (match-end 5)) 1273 (buffer-substring (match-beginning 5) (match-end 5))
1270 ;; No explicit tag name. Best guess. 1274 ;; No explicit tag name. Best guess.
1271 (buffer-substring (match-beginning 3) (match-end 3))) 1275 (buffer-substring (match-beginning 3) (match-end 3)))
1276 (message msg-fmt (/ (point) point-max)))
1272 table))) 1277 table)))
1273 table)) 1278 table))
1274 1279