emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/m-buffer 69750033c2 043/115: m-buffer-replace-matches h


From: ELPA Syncer
Subject: [elpa] externals/m-buffer 69750033c2 043/115: m-buffer-replace-matches has more arguments.
Date: Tue, 19 Jul 2022 15:58:47 -0400 (EDT)

branch: externals/m-buffer
commit 69750033c27e3a2974fdb32fa6023bbc2464f5b8
Author: Phillip Lord <phillip.lord@newcastle.ac.uk>
Commit: Phillip Lord <phillip.lord@newcastle.ac.uk>

    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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]