aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/progmodes/etags.el19
2 files changed, 16 insertions, 9 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index a0dd9c28a36..5f6bdb7f99c 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -4,6 +4,12 @@
4 (progress-reporter-force-update, progress-reporter-do-update) 4 (progress-reporter-force-update, progress-reporter-do-update)
5 (progress-reporter-done): New functions. 5 (progress-reporter-done): New functions.
6 6
7 * tar-mode.el (tar-summarize-buffer): Use progress reporter.
8
9 * progmodes/etags.el (etags-tags-completion-table): Use progress
10 reporter.
11 (etags-tags-apropos): Likewise.
12
72004-10-08 Alan Mackenzie <acm@muc.de> 132004-10-08 Alan Mackenzie <acm@muc.de>
8 14
9 * isearch.el (isearch-yank-line): C-y yanks to next EOL, not end 15 * isearch.el (isearch-yank-line): C-y yanks to next EOL, not end
diff --git a/lisp/progmodes/etags.el b/lisp/progmodes/etags.el
index ddbd2ce6f35..0569d26db61 100644
--- a/lisp/progmodes/etags.el
+++ b/lisp/progmodes/etags.el
@@ -1229,10 +1229,10 @@ where they were found."
1229 1229
1230(defun etags-tags-completion-table () 1230(defun etags-tags-completion-table ()
1231 (let ((table (make-vector 511 0)) 1231 (let ((table (make-vector 511 0))
1232 (point-max (/ (float (point-max)) 100.0)) 1232 (progress-reporter
1233 (msg-fmt (format 1233 (make-progress-reporter
1234 "Making tags completion table for %s...%%d%%%%" 1234 (format "Making tags completion table for %s..." buffer-file-name)
1235 buffer-file-name))) 1235 (point-min) (point-max))))
1236 (save-excursion 1236 (save-excursion
1237 (goto-char (point-min)) 1237 (goto-char (point-min))
1238 ;; This monster regexp matches an etags tag line. 1238 ;; This monster regexp matches an etags tag line.
@@ -1253,7 +1253,7 @@ where they were found."
1253 (buffer-substring (match-beginning 5) (match-end 5)) 1253 (buffer-substring (match-beginning 5) (match-end 5))
1254 ;; No explicit tag name. Best guess. 1254 ;; No explicit tag name. Best guess.
1255 (buffer-substring (match-beginning 3) (match-end 3))) 1255 (buffer-substring (match-beginning 3) (match-end 3)))
1256 (message msg-fmt (/ (point) point-max))) 1256 (progress-reporter-update progress-reporter (point)))
1257 table))) 1257 table)))
1258 table)) 1258 table))
1259 1259
@@ -1433,11 +1433,12 @@ where they were found."
1433 (tags-with-face 'highlight (princ buffer-file-name)) 1433 (tags-with-face 'highlight (princ buffer-file-name))
1434 (princ "':\n\n")) 1434 (princ "':\n\n"))
1435 (goto-char (point-min)) 1435 (goto-char (point-min))
1436 (let ((point-max (/ (float (point-max)) 100.0))) 1436 (let ((progress-reporter (make-progress-reporter
1437 (format "Making tags apropos buffer for `%s'..."
1438 string)
1439 (point-min) (point-max))))
1437 (while (re-search-forward string nil t) 1440 (while (re-search-forward string nil t)
1438 (message "Making tags apropos buffer for `%s'...%d%%" 1441 (progress-reporter-update progress-reporter (point))
1439 string
1440 (/ (point) point-max))
1441 (beginning-of-line) 1442 (beginning-of-line)
1442 1443
1443 (let* ( ;; Get the local value in the tags table 1444 (let* ( ;; Get the local value in the tags table