]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/emacs-lisp/rx.el (rx--string-to-intervals): Fix error string.
authorMattias Engdegård <mattiase@acm.org>
Thu, 5 Mar 2020 11:10:51 +0000 (12:10 +0100)
committerMattias Engdegård <mattiase@acm.org>
Thu, 5 Mar 2020 11:12:18 +0000 (12:12 +0100)
lisp/emacs-lisp/rx.el

index a0b2444346ab5d6ab69d44461d7162c1c69ea301..d4a9171027353ebe1c396376746a24a90cd20856 100644 (file)
@@ -360,7 +360,7 @@ character X becomes (?X . ?X).  Return the intervals in a list."
                       (push (cons start end) intervals))
                      (t
                       (error "Invalid rx `any' range: %s"
-                             (substring str i 3))))
+                             (substring str i (+ i 3)))))
                (setq i (+ i 3))))
             (t
              ;; Single character.