Mercurial > emacs
comparison lisp/replace.el @ 86238:7a5fb763a182
(map-query-replace-regexp): Doc fix (revert part of revision 1.104,
made on 2000-05-21 with no ChangeLog entry).
author | Juanma Barranquero <lekktu@gmail.com> |
---|---|
date | Mon, 19 Nov 2007 12:07:00 +0000 |
parents | 05bcbc7677d3 |
children | c92242b4fd11 |
comparison
equal
deleted
inserted
replaced
86237:2155f31345ad | 86238:7a5fb763a182 |
---|---|
370 `query-replace-regexp' instead. Non-interactively, a loop | 370 `query-replace-regexp' instead. Non-interactively, a loop |
371 using `search-forward-regexp' and `replace-match' is preferred." "22.1") | 371 using `search-forward-regexp' and `replace-match' is preferred." "22.1") |
372 | 372 |
373 (defun map-query-replace-regexp (regexp to-strings &optional n start end) | 373 (defun map-query-replace-regexp (regexp to-strings &optional n start end) |
374 "Replace some matches for REGEXP with various strings, in rotation. | 374 "Replace some matches for REGEXP with various strings, in rotation. |
375 The second argument TO-STRINGS contains the replacement strings, | 375 The second argument TO-STRINGS contains the replacement strings, separated |
376 separated by spaces. Third arg DELIMITED (prefix arg if interactive), | 376 by spaces. This command works like `query-replace-regexp' except that |
377 if non-nil, means replace only matches surrounded by word boundaries. | 377 each successive replacement uses the next successive replacement string, |
378 This command works like `query-replace-regexp' except that each | |
379 successive replacement uses the next successive replacement string, | |
380 wrapping around from the last such string to the first. | 378 wrapping around from the last such string to the first. |
381 | 379 |
382 In Transient Mark mode, if the mark is active, operate on the contents | 380 In Transient Mark mode, if the mark is active, operate on the contents |
383 of the region. Otherwise, operate from point to the end of the buffer. | 381 of the region. Otherwise, operate from point to the end of the buffer. |
384 | 382 |