]> git.eshelyaron.com Git - emacs.git/commit
string-search robustness and documentation improvement (bug#43598)
authorMattias Engdegård <mattiase@acm.org>
Fri, 25 Sep 2020 15:00:17 +0000 (17:00 +0200)
committerMattias Engdegård <mattiase@acm.org>
Fri, 25 Sep 2020 15:08:00 +0000 (17:08 +0200)
commit497a1ed8bba528bf4078c80bb00b29870eb01e6f
tree55aec2280ff0b5cf281838ba3260cd2df41d955d
parent499848d8407855d8ca24f0c175c602a0f24da074
string-search robustness and documentation improvement (bug#43598)

* src/fns.c (Fstring_search): Check START-POS argument range.
Simplify logic.  Improve doc string.
* test/src/fns-tests.el (string-search): Add test cases.
* doc/lispref/strings.texi (Text Comparison): Elaborate.
* lisp/emacs-lisp/byte-opt.el (pure-fns): Mark string-search as pure.
doc/lispref/strings.texi
lisp/emacs-lisp/byte-opt.el
src/fns.c
test/src/fns-tests.el