Mercurial > emacs
comparison lisp/replace.el @ 79449:d326128c6b13
(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:47:03 +0000 |
parents | 9355f9b7bbff |
children | b55facd69022 |
comparison
equal
deleted
inserted
replaced
79448:7eeee580786a | 79449:d326128c6b13 |
---|---|
364 `query-replace-regexp' instead. Non-interactively, a loop | 364 `query-replace-regexp' instead. Non-interactively, a loop |
365 using `search-forward-regexp' and `replace-match' is preferred." "22.1") | 365 using `search-forward-regexp' and `replace-match' is preferred." "22.1") |
366 | 366 |
367 (defun map-query-replace-regexp (regexp to-strings &optional n start end) | 367 (defun map-query-replace-regexp (regexp to-strings &optional n start end) |
368 "Replace some matches for REGEXP with various strings, in rotation. | 368 "Replace some matches for REGEXP with various strings, in rotation. |
369 The second argument TO-STRINGS contains the replacement strings, | 369 The second argument TO-STRINGS contains the replacement strings, separated |
370 separated by spaces. Third arg DELIMITED (prefix arg if interactive), | 370 by spaces. This command works like `query-replace-regexp' except that |
371 if non-nil, means replace only matches surrounded by word boundaries. | 371 each successive replacement uses the next successive replacement string, |
372 This command works like `query-replace-regexp' except that each | |
373 successive replacement uses the next successive replacement string, | |
374 wrapping around from the last such string to the first. | 372 wrapping around from the last such string to the first. |
375 | 373 |
376 In Transient Mark mode, if the mark is active, operate on the contents | 374 In Transient Mark mode, if the mark is active, operate on the contents |
377 of the region. Otherwise, operate from point to the end of the buffer. | 375 of the region. Otherwise, operate from point to the end of the buffer. |
378 | 376 |