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

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

[elpa] master c493716 404/433: Revert "mmm-match-region: Return front-po


From: Dmitry Gutov
Subject: [elpa] master c493716 404/433: Revert "mmm-match-region: Return front-pos even without front-delim; likewise for back"
Date: Thu, 15 Mar 2018 19:44:44 -0400 (EDT)

branch: master
commit c4937165efd43440fd4a23ade8627532bbc98172
Author: Dmitry Gutov <address@hidden>
Commit: Dmitry Gutov <address@hidden>

    Revert "mmm-match-region: Return front-pos even without front-delim; 
likewise for back"
    
    This reverts commit 4e218824039090af6e579dabe91ebfaaa291440d.
---
 mmm-class.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/mmm-class.el b/mmm-class.el
index 5ea40a7..436e85a 100644
--- a/mmm-class.el
+++ b/mmm-class.el
@@ -224,7 +224,7 @@ and OK-RESUME if the region is valid."
     (let ((beg (mmm-match->point include-front front-offset front-match))
          (front-pos (if front-delim
                         (mmm-match->point t front-delim front-match)
-                      (match-beginning front-match)))
+                      nil))
           (invalid-resume (match-end front-match))
           (front-form (mmm-get-form front-form)))
       (let ((submode (if match-submode
@@ -257,9 +257,9 @@ and OK-RESUME if the region is valid."
                                        back-offset back-match))
                 (back-pos (if back-delim
                               (mmm-match->point nil back-delim back-match)
-                            (match-end back-match)))
+                            nil))
                 (back-form (mmm-get-form back-form))
-                (ok-resume (if end-not-begin
+                (ok-resume (if end-not-begin 
                                (match-end back-match)
                              end)))
             (values beg end front-pos back-pos front-form back-form



reply via email to

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