aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoland McGrath1995-04-18 18:29:05 +0000
committerRoland McGrath1995-04-18 18:29:05 +0000
commita2416e212f9105c8e39834ad46fe9bbfe9683f39 (patch)
treea6951304e8c2d6f644ce3b0182f72876fba97621
parent5bbdb09071ac5681f6ef97418d9d0c54032dfd66 (diff)
downloademacs-a2416e212f9105c8e39834ad46fe9bbfe9683f39.tar.gz
emacs-a2416e212f9105c8e39834ad46fe9bbfe9683f39.zip
(tags-search, tags-query-replace): Put (quote ...) around args inserted
into forms to be evalled.
-rw-r--r--lisp/progmodes/etags.el9
1 files changed, 6 insertions, 3 deletions
diff --git a/lisp/progmodes/etags.el b/lisp/progmodes/etags.el
index 68d56bca5d3..073bf862bb5 100644
--- a/lisp/progmodes/etags.el
+++ b/lisp/progmodes/etags.el
@@ -1365,7 +1365,7 @@ See documentation of variable `tags-file-name'."
1365 ;; Continue last tags-search as if by M-,. 1365 ;; Continue last tags-search as if by M-,.
1366 (tags-loop-continue nil) 1366 (tags-loop-continue nil)
1367 (setq tags-loop-scan 1367 (setq tags-loop-scan
1368 (list 're-search-forward regexp nil t) 1368 (list 're-search-forward (list 'quote regexp) nil t)
1369 tags-loop-operate nil) 1369 tags-loop-operate nil)
1370 (tags-loop-continue (or file-list-form t)))) 1370 (tags-loop-continue (or file-list-form t))))
1371 1371
@@ -1379,12 +1379,15 @@ with the command \\[tags-loop-continue].
1379See documentation of variable `tags-file-name'." 1379See documentation of variable `tags-file-name'."
1380 (interactive (query-replace-read-args "Tags query replace (regexp)" t)) 1380 (interactive (query-replace-read-args "Tags query replace (regexp)" t))
1381 (setq tags-loop-scan (list 'prog1 1381 (setq tags-loop-scan (list 'prog1
1382 (list 'if (list 're-search-forward from nil t) 1382 (list 'if (list 're-search-forward
1383 (list 'quote from) nil t)
1383 ;; When we find a match, move back 1384 ;; When we find a match, move back
1384 ;; to the beginning of it so perform-replace 1385 ;; to the beginning of it so perform-replace
1385 ;; will see it. 1386 ;; will see it.
1386 '(goto-char (match-beginning 0)))) 1387 '(goto-char (match-beginning 0))))
1387 tags-loop-operate (list 'perform-replace from to t t delimited)) 1388 tags-loop-operate (list 'perform-replace
1389 (list 'quote from) (list 'quote to)
1390 t t (list 'quote delimited)))
1388 (tags-loop-continue (or file-list-form t))) 1391 (tags-loop-continue (or file-list-form t)))
1389 1392
1390;;;###autoload 1393;;;###autoload