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

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

[elpa] externals/xr 6f2e516 09/12: Comment update


From: Mattias Engdegård
Subject: [elpa] externals/xr 6f2e516 09/12: Comment update
Date: Mon, 30 Nov 2020 04:32:25 -0500 (EST)

branch: externals/xr
commit 6f2e5166bd067365a0ba48e902d1bf8e5c4382fb
Author: Mattias Engdegård <mattiase@acm.org>
Commit: Mattias Engdegård <mattiase@acm.org>

    Comment update
    
    Emacs 27.1 and later understand `(any)` and `unmatchable` in rx.
---
 xr.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/xr.el b/xr.el
index 0941309..03ab308 100644
--- a/xr.el
+++ b/xr.el
@@ -246,9 +246,9 @@
             (push (string (aref interv 0) ?- (aref interv 1))
                   ranges)))
         
-        ;; Note that we return (any) for non-negated empty sets,
-        ;; such as [z-a]. (any) is not accepted by rx but at least we
-        ;; are not hiding potential bugs from the user.
+        ;; We return (any) for non-negated empty sets, such as [z-a].
+        ;; `unmatchable' would perhaps be better; both require Emacs 27.1
+        ;; or newer for use in rx.
         (cond
          ;; Negated empty set, like [^z-a]: anything.
          ((and negated



reply via email to

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