• Mattias Engdegård's avatar
    Correct regexp-opt return value for empty string list · 7bda34af
    Mattias Engdegård authored
    When regexp-opt is called with an empty list of strings, return a regexp
    that doesn't match anything instead of the empty string (Bug#20307).
    
    * doc/lispref/searching.texi (Regular Expression Functions):
    * etc/NEWS:
    Document the new behaviour.
    * lisp/emacs-lisp/regexp-opt.el (regexp-opt):
    Return a never-match regexp for empty inputs.
    7bda34af
NEWS 64.9 KB