From a76162fad3ba211c15f932c266393b1c0f8104b1 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Fri, 7 Feb 2014 19:55:27 -0800 Subject: [PATCH] * replace.el (replace-match-maybe-edit): Doc clarification. --- lisp/ChangeLog | 3 +++ lisp/replace.el | 8 +++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index d3859378a14..4da077df4fc 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." -- 2.11.4.GIT