Mercurial > emacs
comparison lisp/progmodes/etags.el @ 79948:d8c232d0bd1c
(tags-query-replace): Delete unused optional args. Doc fix.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Tue, 29 Jan 2008 14:47:32 +0000 |
parents | 7ae2b20e0d16 |
children | 3fe97133ed17 eda73292b257 |
comparison
equal
deleted
inserted
replaced
79947:c293ff04d6e9 | 79948:d8c232d0bd1c |
---|---|
1813 (setq tags-loop-scan `(re-search-forward ',regexp nil t) | 1813 (setq tags-loop-scan `(re-search-forward ',regexp nil t) |
1814 tags-loop-operate nil) | 1814 tags-loop-operate nil) |
1815 (tags-loop-continue (or file-list-form t)))) | 1815 (tags-loop-continue (or file-list-form t)))) |
1816 | 1816 |
1817 ;;;###autoload | 1817 ;;;###autoload |
1818 (defun tags-query-replace (from to &optional delimited file-list-form start end) | 1818 (defun tags-query-replace (from to &optional delimited file-list-form) |
1819 "Do `query-replace-regexp' of FROM with TO on all files listed in tags table. | 1819 "Do `query-replace-regexp' of FROM with TO on all files listed in tags table. |
1820 Third arg DELIMITED (prefix arg) means replace only word-delimited matches. | 1820 Third arg DELIMITED (prefix arg) means replace only word-delimited matches. |
1821 If you exit (\\[keyboard-quit], RET or q), you can resume the query replace | 1821 If you exit (\\[keyboard-quit], RET or q), you can resume the query replace |
1822 with the command \\[tags-loop-continue]. | 1822 with the command \\[tags-loop-continue]. |
1823 Fourth arg FILE-LIST-FORM non-nil means initialize the replacement loop. | 1823 Fourth arg FILE-LIST-FORM non-nil means initialize the replacement loop. |
1824 Fifth and sixth arguments START and END are accepted, for compatibility | 1824 Fifth and sixth arguments START and END are accepted, for compatibility |
1825 with `query-replace-regexp', and ignored. | 1825 with `query-replace-regexp', and ignored. |
1826 | 1826 |
1827 See also documentation of the variable `tags-file-name'." | 1827 If FILE-LIST-FORM is non-nil, it is a form to evaluate to |
1828 produce the list of files to search. | |
1829 | |
1830 See also the documentation of the variable `tags-file-name'." | |
1828 (interactive (query-replace-read-args "Tags query replace (regexp)" t t)) | 1831 (interactive (query-replace-read-args "Tags query replace (regexp)" t t)) |
1829 (setq tags-loop-scan `(let ,(unless (equal from (downcase from)) | 1832 (setq tags-loop-scan `(let ,(unless (equal from (downcase from)) |
1830 '((case-fold-search nil))) | 1833 '((case-fold-search nil))) |
1831 (if (re-search-forward ',from nil t) | 1834 (if (re-search-forward ',from nil t) |
1832 ;; When we find a match, move back | 1835 ;; When we find a match, move back |