]> git.eshelyaron.com Git - emacs.git/commit
Correct regexp-opt return value for empty string list
authorMattias Engdegård <mattiase@acm.org>
Mon, 25 Feb 2019 14:22:02 +0000 (15:22 +0100)
committerMattias Engdegård <mattiase@acm.org>
Sat, 2 Mar 2019 15:22:37 +0000 (16:22 +0100)
commit7bda34af52687440632127b4b79986e951b978b1
treebe661e3d387f6bea5043746309b7d337da9e9014
parentda758046da74e33273265cd2e72a8aa1a0c9c7e3
Correct regexp-opt return value for empty string list

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.
doc/lispref/searching.texi
etc/NEWS
lisp/emacs-lisp/regexp-opt.el