Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
e15bee3f
Commit
e15bee3f
authored
Dec 08, 1991
by
Eric S. Raymond
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
parent
d940e0e4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
39 deletions
+4
-39
lisp/progmodes/etags.el
lisp/progmodes/etags.el
+4
-39
No files found.
lisp/progmodes/etags.el
View file @
e15bee3f
...
...
@@ -151,46 +151,11 @@ See documentation of variable tags-file-name."
(
interactive
(
if
current-prefix-arg
'
(
nil
t
)
(
find-tag-tag
"Find tag: "
)))
(
let
(
buffer
file
linebeg
startpos
)
(
save-excursion
(
visit-tags-table-buffer
)
(
if
(
not
next
)
(
goto-char
(
point-min
))
(
setq
tagname
last-tag
))
(
setq
last-tag
tagname
)
(
while
(
progn
(
if
(
not
(
search-forward
tagname
nil
t
))
(
error
"No %sentries containing %s"
(
if
next
"more "
""
)
tagname
))
(
not
(
looking-at
"[^\n\177]*\177"
))))
(
search-forward
"\177"
)
(
setq
file
(
expand-file-name
(
file-of-tag
)
(
file-name-directory
tags-file-name
)))
(
setq
linebeg
(
buffer-substring
(
1-
(
point
))
(
save-excursion
(
beginning-of-line
)
(
point
))))
(
search-forward
","
)
(
setq
startpos
(
read
(
current-buffer
))))
(
let
((
tagbuf
(
find-tag-noselect
tagname
nil
next
)))
(
if
other-window
(
find-file-other-window
file
)
(
find-file
file
))
(
widen
)
(
push-mark
)
(
let
((
offset
1000
)
found
(
pat
(
concat
"^"
(
regexp-quote
linebeg
))))
(
or
startpos
(
setq
startpos
(
point-min
)))
(
while
(
and
(
not
found
)
(
progn
(
goto-char
(
-
startpos
offset
))
(
not
(
bobp
))))
(
setq
found
(
re-search-forward
pat
(
+
startpos
offset
)
t
))
(
setq
offset
(
*
3
offset
)))
(
or
found
(
re-search-forward
pat
nil
t
)
(
error
"%s not found in %s"
pat
file
)))
(
beginning-of-line
))
(
switch-to-buffer-other-window
tagbuf
)
(
switch-to-buffer
tagbuf
))
)
(
setq
tags-loop-form
'
(
find-tag
nil
t
))
;; Return t in case used as the tags-loop-form.
t
)
...
...
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