diff options
| author | Richard M. Stallman | 2001-10-25 15:26:46 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2001-10-25 15:26:46 +0000 |
| commit | c2c3a05deb42b36fd50ec196acd0d505a10b39cf (patch) | |
| tree | 9978230230751f6eed314cd07d99e5ed1c163833 | |
| parent | d6da5a06c503182699068e95f7f824b08f227980 (diff) | |
| download | emacs-c2c3a05deb42b36fd50ec196acd0d505a10b39cf.tar.gz emacs-c2c3a05deb42b36fd50ec196acd0d505a10b39cf.zip | |
(tags-query-replace): Make tags-loop-scan
bind case-fold-search if FROM is not all lower case.
| -rw-r--r-- | lisp/progmodes/etags.el | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/lisp/progmodes/etags.el b/lisp/progmodes/etags.el index 6f46e3103a8..d1e357aee5d 100644 --- a/lisp/progmodes/etags.el +++ b/lisp/progmodes/etags.el | |||
| @@ -1737,12 +1737,15 @@ with the command \\[tags-loop-continue]. | |||
| 1737 | See documentation of variable `tags-file-name'." | 1737 | See documentation of variable `tags-file-name'." |
| 1738 | (interactive (query-replace-read-args "Tags query replace (regexp)" t)) | 1738 | (interactive (query-replace-read-args "Tags query replace (regexp)" t)) |
| 1739 | (setq tags-loop-scan (list 'prog1 | 1739 | (setq tags-loop-scan (list 'prog1 |
| 1740 | (list 'if (list 're-search-forward | 1740 | (list 'let |
| 1741 | (list 'quote from) nil t) | 1741 | (if (not (equal from (downcase from))) |
| 1742 | ;; When we find a match, move back | 1742 | '((case-fold-search nil))) |
| 1743 | ;; to the beginning of it so perform-replace | 1743 | (list 'if (list 're-search-forward |
| 1744 | ;; will see it. | 1744 | (list 'quote from) nil t) |
| 1745 | '(goto-char (match-beginning 0)))) | 1745 | ;; When we find a match, move back |
| 1746 | ;; to the beginning of it so | ||
| 1747 | ;; perform-replace will see it. | ||
| 1748 | '(goto-char (match-beginning 0))))) | ||
| 1746 | tags-loop-operate (list 'perform-replace | 1749 | tags-loop-operate (list 'perform-replace |
| 1747 | (list 'quote from) (list 'quote to) | 1750 | (list 'quote from) (list 'quote to) |
| 1748 | t t (list 'quote delimited))) | 1751 | t t (list 'quote delimited))) |