aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoland McGrath1995-05-11 03:30:10 +0000
committerRoland McGrath1995-05-11 03:30:10 +0000
commit78809db739b070efbdf71d508f4c33a0ec4a13e5 (patch)
tree12bd7e893311d09c4a419bb517bfdc507a9792f5
parent4dbf8a2c70e4ba8f50776b1c17bdb23aa7b4b126 (diff)
downloademacs-78809db739b070efbdf71d508f4c33a0ec4a13e5.tar.gz
emacs-78809db739b070efbdf71d508f4c33a0ec4a13e5.zip
(tags-loop-continue): Doc fix.
Reset NEW after visiting for real, so we don't clobber the buffer again.
-rw-r--r--lisp/progmodes/etags.el12
1 files changed, 7 insertions, 5 deletions
diff --git a/lisp/progmodes/etags.el b/lisp/progmodes/etags.el
index 073bf862bb5..fb8ab956b2f 100644
--- a/lisp/progmodes/etags.el
+++ b/lisp/progmodes/etags.el
@@ -1307,11 +1307,12 @@ If it returns non-nil, this file needs processing by evalling
1307 "Continue last \\[tags-search] or \\[tags-query-replace] command. 1307 "Continue last \\[tags-search] or \\[tags-query-replace] command.
1308Used noninteractively with non-nil argument to begin such a command (the 1308Used noninteractively with non-nil argument to begin such a command (the
1309argument is passed to `next-file', which see). 1309argument is passed to `next-file', which see).
1310Two variables control the processing we do on each file: 1310
1311the value of `tags-loop-scan' is a form to be executed on each file 1311Two variables control the processing we do on each file: the value of
1312to see if it is interesting (it returns non-nil if so) 1312`tags-loop-scan' is a form to be executed on each file to see if it is
1313and `tags-loop-operate' is a form to execute to operate on an interesting file 1313interesting (it returns non-nil if so) and `tags-loop-operate' is a form to
1314If the latter returns non-nil, we exit; otherwise we scan the next file." 1314evaluate to operate on an interesting file. If the latter evaluates to
1315nil, we exit; otherwise we scan the next file."
1315 (interactive) 1316 (interactive)
1316 (let (new 1317 (let (new
1317 (messaged nil)) 1318 (messaged nil))
@@ -1338,6 +1339,7 @@ If the latter returns non-nil, we exit; otherwise we scan the next file."
1338 (let ((pos (point))) 1339 (let ((pos (point)))
1339 (erase-buffer) 1340 (erase-buffer)
1340 (set-buffer (find-file-noselect new)) 1341 (set-buffer (find-file-noselect new))
1342 (setq new nil) ;No longer in a temp buffer.
1341 (widen) 1343 (widen)
1342 (goto-char pos))) 1344 (goto-char pos)))
1343 1345