• Mattias Engdegård's avatar
    Disallow reversed char ranges in `rx' · 3ed1621d
    Mattias Engdegård authored
    (any "a-Z0-9") generated "[0-9]", and (any (?9 . ?0)) generated "[9-0]".
    Reversed ranges are either mistakes or abuse.  Neither should be allowed.
    
    etc/NEWS: Explain the change.
    lisp/emacs-lisp/rx.el (rx): Document.
    (rx-check-any-string, rx-check-any): Add error checks for reversed ranges.
    test/lisp/emacs-lisp/rx-tests.el (rx-char-any-range-bad): New test.
    3ed1621d
NEWS 67.2 KB