From: Lars Ingebrigtsen Date: Sat, 8 Feb 2014 03:55:27 +0000 (-0800) Subject: * replace.el (replace-match-maybe-edit): Doc clarification. X-Git-Tag: emacs-24.3.90~173^2^2~42^2~45^2~116 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f7a17bb38a72e64128850c0b67f7421bd50c7a79;p=emacs.git * replace.el (replace-match-maybe-edit): Doc clarification. Fixes: debbugs:15632 --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index fe5e2914ee1..c3609617467 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,8 @@ 2014-02-08 Lars Ingebrigtsen + * replace.el (replace-match-maybe-edit): Doc clarification + (bug#15632). + * subr.el (add-to-list): Refill the paragraphs (bug#15791). * macros.el (insert-kbd-macro): Doc fix (bug#16025). diff --git a/lisp/replace.el b/lisp/replace.el index cce431f0248..945316f586d 100644 --- a/lisp/replace.el +++ b/lisp/replace.el @@ -1891,9 +1891,11 @@ but coerced to the correct value of INTEGERS." (defun replace-match-maybe-edit (newtext fixedcase literal noedit match-data backward) "Make a replacement with `replace-match', editing `\\?'. -NEWTEXT, FIXEDCASE, LITERAL are just passed on. If NOEDIT is true, no -check for `\\?' is made to save time. MATCH-DATA is used for the -replacement. In case editing is done, it is changed to use markers. +FIXEDCASE, LITERAL are passed to `replace-match' (which see). +After possibly editing it (if `\\?' is present), NEWTEXT is also +passed to `replace-match'. If NOEDIT is true, no check for `\\?' +is made (to save time). MATCH-DATA is used for the replacement. +In case editing is done, it is changed to use markers. The return value is non-nil if there has been no `\\?' or NOEDIT was passed in. If LITERAL is set, no checking is done, anyway."