branch: externals/m-buffer
commit 69750033c27e3a2974fdb32fa6023bbc2464f5b8
Author: Phillip Lord <[email protected]>
Commit: Phillip Lord <[email protected]>
m-buffer-replace-matches has more arguments.
Now supports other arguments following replace-match.
---
m-buffer.el | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/m-buffer.el b/m-buffer.el
index 7c65629492..8042ec2668 100644
--- a/m-buffer.el
+++ b/m-buffer.el
@@ -325,7 +325,8 @@ POSTNIL sets markers to till afterwards."
(make-marker) pos buffer))
positions))
-(defun m-buffer-replace-match (match-data replacement &optional subexp)
+(defun m-buffer-replace-match (match-data replacement
+ &optional fixedcase literal subexp)
"Given a list of MATCH-DATA, replace with REPLACEMENT.
SUBEXP should be a number indicating the regexp group to replace.
Returns markers to the start and end of the replacement. These
@@ -337,7 +338,7 @@ markers are part of MATCH-DATA, so niling them will
percolate backward."
(save-match-data
(set-match-data match)
(replace-match
- replacement nil nil nil
+ replacement fixedcase literal nil
(or subexp 0)))))
match-data)
;; we have match-data