Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
46de1c5a
Commit
46de1c5a
authored
May 21, 2004
by
Masatake YAMATO
Browse files
(etags-tags-completion-table): Show parsing progress.
parent
a6e7bdf1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
6 deletions
+12
-6
lisp/ChangeLog
lisp/ChangeLog
+1
-0
lisp/progmodes/etags.el
lisp/progmodes/etags.el
+11
-6
No files found.
lisp/ChangeLog
View file @
46de1c5a
...
...
@@ -2,6 +2,7 @@
* progmodes/etags.el (tags-apropos, list-tags): Require
apropos.
(etags-tags-completion-table): Show parsing progress.
2004-05-20 Luc Teirlinck <teirllm@auburn.edu>
...
...
lisp/progmodes/etags.el
View file @
46de1c5a
...
...
@@ -1248,7 +1248,11 @@ where they were found."
(
defun
etags-tags-completion-table
()
(
let
((
table
(
make-vector
511
0
)))
(
let
((
table
(
make-vector
511
0
))
(
point-max
(
/
(
float
(
point-max
))
100.0
))
(
msg-fmt
(
format
"Making tags completion table for %s...%%d%%%%"
buffer-file-name
)))
(
save-excursion
(
goto-char
(
point-min
))
;; This monster regexp matches an etags tag line.
...
...
@@ -1264,11 +1268,12 @@ where they were found."
\\
(
[-a-zA-Z0-9_+*$?:]+\\
)
[^-a-zA-Z0-9_+*$?:\177]*\\
)
\177
\
\\
(
\\
(
[^\n\001]+\\
)
\001\\
)
?\\
(
[0-9]+\\
)
?,\\
(
[0-9]+\\
)
?\n
"
nil t)
(intern (if (match-beginning 5)
;; There is an explicit tag name.
(buffer-substring (match-beginning 5) (match-end 5))
;; No explicit tag name. Best guess.
(buffer-substring (match-beginning 3) (match-end 3)))
(intern (prog1 (if (match-beginning 5)
;; There is an explicit tag name.
(buffer-substring (match-beginning 5) (match-end 5))
;; No explicit tag name. Best guess.
(buffer-substring (match-beginning 3) (match-end 3)))
(message msg-fmt (/ (point) point-max)))
table)))
table))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment