summaryrefslogtreecommitdiff
path: root/src/search.c
diff options
context:
space:
mode:
authorNoam Postavsky <npostavs@gmail.com>2019-06-21 07:09:44 -0400
committerNoam Postavsky <npostavs@gmail.com>2019-06-25 22:00:03 -0400
commit648fdbbcec159e6bfdb7cd06d32c59e8a17a055e (patch)
tree49296e3df33421b1b086eb4e5d2912a20fcb2093 /src/search.c
parentb59ffd2290ff744ca4e7cc2748ba6b66fb2f99f1 (diff)
downloademacs-648fdbbcec159e6bfdb7cd06d32c59e8a17a055e.tar.gz
Don't bind search-spaces-regexp around possible autoload (Bug#35802)
* lisp/isearch.el (isearch-search-fun-default): Move possible autoload trigger outside let-binding of search-spaces-regexp. * lisp/char-fold.el (char-fold-make-table): Remove no longer needed workaround. * lisp/info.el (Info-search-whitespace-regexp): * lisp/isearch.el (search-whitespace-regexp): * src/search.c (syms_of_search) <search-spaces-regexp>: Add warning about adding capturing groups to the value. * test/lisp/char-fold-tests.el: Remove, binding search-spaces-regexp to a different should be considered a bug.
Diffstat (limited to 'src/search.c')
-rw-r--r--src/search.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/search.c b/src/search.c
index 8a0f707b723..fa574959fb4 100644
--- a/src/search.c
+++ b/src/search.c
@@ -3390,7 +3390,9 @@ syms_of_search (void)
Some commands use this for user-specified regexps.
Spaces that occur inside character classes or repetition operators
or other such regexp constructs are not replaced with this.
-A value of nil (which is the normal value) means treat spaces literally. */);
+A value of nil (which is the normal value) means treat spaces
+literally. Note that a value with capturing groups can change the
+numbering of existing capture groups in unexpected ways. */);
Vsearch_spaces_regexp = Qnil;
DEFSYM (Qinhibit_changing_match_data, "inhibit-changing-match-data");