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

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

[elpa] externals/rec-mode b389387 97/98: Escape plus sign in regexp


From: Stefan Monnier
Subject: [elpa] externals/rec-mode b389387 97/98: Escape plus sign in regexp
Date: Thu, 12 Nov 2020 13:18:48 -0500 (EST)

branch: externals/rec-mode
commit b389387a98fa9a1f42ba7844f694fc1035b4bf76
Author: Antoine Kalmbach <ane@iki.fi>
Commit: Antoine Kalmbach <ane@iki.fi>

    Escape plus sign in regexp
    
    * rec-mode.el (rec-beginning-of-field-pos): escape the plus sign
    (kudos to relint, http://elpa.gnu.org/packages/relint.html)
---
 rec-mode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rec-mode.el b/rec-mode.el
index 7e512f7..0decb99 100644
--- a/rec-mode.el
+++ b/rec-mode.el
@@ -521,7 +521,7 @@ If no such field exists in RECORD then nil is returned."
       (while
           (cond
            ((and (not (= (line-beginning-position) 1))
-                 (or (looking-at "+")
+                 (or (looking-at "\\+")
                      (looking-back "\\\\\n" 2)))
             (forward-line -1)
             t) ;;Continue



reply via email to

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