Mercurial > emacs
comparison lisp/replace.el @ 2156:706a869e685d
(query-replace-map): New keymap.
(perform-replace): Use query-replace-map.
(query-replace, query-replace-regexp, map-query-replace-regexp):
(replace-string, replace-regexp): Don't print `done' if unread chars.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Fri, 12 Mar 1993 12:04:55 +0000 |
parents | ff782069e797 |
children | 9e7ec92a4fdf |
comparison
equal
deleted
inserted
replaced
2155:3ec142562a65 | 2156:706a869e685d |
---|---|
461 (progn | 461 (progn |
462 (store-match-data real-match-data) | 462 (store-match-data real-match-data) |
463 (replace-match next-replacement nocasify literal) | 463 (replace-match next-replacement nocasify literal) |
464 (setq replace-count (1+ replace-count))) | 464 (setq replace-count (1+ replace-count))) |
465 (undo-boundary) | 465 (undo-boundary) |
466 (let (done replaced key) | 466 (let (done replaced key def) |
467 ;; Loop reading commands until one of them sets done, | 467 ;; Loop reading commands until one of them sets done, |
468 ;; which means it has finished handling this occurrence. | 468 ;; which means it has finished handling this occurrence. |
469 (while (not done) | 469 (while (not done) |
470 (message "Query replacing %s with %s: " | 470 (message "Query replacing %s with %s: " |
471 from-string next-replacement) | 471 from-string next-replacement) |