diff options
| author | Noam Postavsky | 2019-06-21 07:09:44 -0400 |
|---|---|---|
| committer | Noam Postavsky | 2019-06-25 22:00:03 -0400 |
| commit | 648fdbbcec159e6bfdb7cd06d32c59e8a17a055e (patch) | |
| tree | 49296e3df33421b1b086eb4e5d2912a20fcb2093 /src/search.c | |
| parent | b59ffd2290ff744ca4e7cc2748ba6b66fb2f99f1 (diff) | |
| download | emacs-648fdbbcec159e6bfdb7cd06d32c59e8a17a055e.tar.gz emacs-648fdbbcec159e6bfdb7cd06d32c59e8a17a055e.zip | |
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.c | 4 |
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) | |||
| 3390 | Some commands use this for user-specified regexps. | 3390 | Some commands use this for user-specified regexps. |
| 3391 | Spaces that occur inside character classes or repetition operators | 3391 | Spaces that occur inside character classes or repetition operators |
| 3392 | or other such regexp constructs are not replaced with this. | 3392 | or other such regexp constructs are not replaced with this. |
| 3393 | A value of nil (which is the normal value) means treat spaces literally. */); | 3393 | A value of nil (which is the normal value) means treat spaces |
| 3394 | literally. Note that a value with capturing groups can change the | ||
| 3395 | numbering of existing capture groups in unexpected ways. */); | ||
| 3394 | Vsearch_spaces_regexp = Qnil; | 3396 | Vsearch_spaces_regexp = Qnil; |
| 3395 | 3397 | ||
| 3396 | DEFSYM (Qinhibit_changing_match_data, "inhibit-changing-match-data"); | 3398 | DEFSYM (Qinhibit_changing_match_data, "inhibit-changing-match-data"); |