[Top][All Lists]

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

[elpa] externals/relint 7a1b632 33/44: Add wildcard-to-regexp as 'pure'

From: Mattias Engdegård
Subject: [elpa] externals/relint 7a1b632 33/44: Add wildcard-to-regexp as 'pure' function
Date: Tue, 26 Mar 2019 12:57:30 -0400 (EDT)

branch: externals/relint
commit 7a1b632f65baff84ed862decef2383ed63f3bd7b
Author: Mattias Engdegård <address@hidden>
Commit: Mattias Engdegård <address@hidden>

    Add wildcard-to-regexp as 'pure' function
 relint.el | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/relint.el b/relint.el
index e1d9c27..0147bf0 100644
--- a/relint.el
+++ b/relint.el
@@ -171,7 +171,7 @@
 (defvar relint--regexp-functions)
 ;; Functions that are safe to call during evaluation.
-;; With some exceptions (noted), these are pure.
+;; Except for altering the match state, these are pure.
 ;; More functions could be added if there is evidence that it would
 ;; help in evaluating more regexp strings.
 (defconst relint--safe-functions
@@ -191,10 +191,8 @@
     null not
     eq eql equal
     string-equal string= string< string-lessp char-equal string-match-p
-    ; These alter the match state.
     string-match split-string replace-regexp-in-string
+    wildcard-to-regexp
     combine-and-quote-strings split-string-and-unquote
     string-join string-trim-left string-trim-right string-trim
     string-prefix-p string-suffix-p

reply via email to

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