mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
Change the default value of search-whitespace-regexp
* lisp/isearch.el (search-whitespace-regexp): Change the default to always exclude newlines from the set (bug#21278). It used to be mode-dependent whether newlines were included or not, and this was confusing as a user interface.
This commit is contained in:
parent
44ba8278a6
commit
74d091a0a6
2 changed files with 8 additions and 2 deletions
|
|
@ -114,7 +114,7 @@ is called to let you enter the search string, and RET terminates editing
|
|||
and does a nonincremental search.)"
|
||||
:type 'boolean)
|
||||
|
||||
(defcustom search-whitespace-regexp (purecopy "\\s-+")
|
||||
(defcustom search-whitespace-regexp (purecopy "[ \t]")
|
||||
"If non-nil, regular expression to match a sequence of whitespace chars.
|
||||
When you enter a space or spaces in the incremental search, it
|
||||
will match any sequence matched by this regexp. As an exception,
|
||||
|
|
@ -134,7 +134,7 @@ add any capturing groups into this value; that can change the
|
|||
numbering of existing capture groups in unexpected ways."
|
||||
:type '(choice (const :tag "Match Spaces Literally" nil)
|
||||
regexp)
|
||||
:version "24.3")
|
||||
:version "28.1")
|
||||
|
||||
(defcustom search-invisible 'open
|
||||
"If t incremental search/query-replace can match hidden text.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue