summaryrefslogtreecommitdiff
path: root/lisp/isearch.el
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2022-04-18 13:36:05 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2022-04-18 13:36:05 +0200
commit352fc739a1df259b1d2de6bc442465f344e44fec (patch)
treea0c55e1184653db237e5e8d1d37c60874a085dce /lisp/isearch.el
parent85db21b94b23b4701930892d1eecc9a1167ed968 (diff)
downloademacs-352fc739a1df259b1d2de6bc442465f344e44fec.tar.gz
Make isearch-lax-whitespace a user option
* lisp/isearch.el (isearch-lax-whitespace): Make into a defcustom (bug#20351).
Diffstat (limited to 'lisp/isearch.el')
-rw-r--r--lisp/isearch.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/isearch.el b/lisp/isearch.el
index 168d71ada3a..be0227b6e75 100644
--- a/lisp/isearch.el
+++ b/lisp/isearch.el
@@ -868,14 +868,16 @@ This variable is set and changed during isearch. To change the
default behavior used for searches, see `search-default-mode'
instead.")
-(defvar isearch-lax-whitespace t
+(defcustom isearch-lax-whitespace t
"If non-nil, a space will match a sequence of whitespace chars.
When you enter a space or spaces in ordinary incremental search, it
will match any sequence matched by the regexp defined by the variable
`search-whitespace-regexp'. If the value is nil, each space you type
matches literally, against one space. You can toggle the value of this
variable by the command `isearch-toggle-lax-whitespace', usually bound to
-`M-s SPC' during isearch.")
+`M-s SPC' during isearch."
+ :type 'boolean
+ :version "25.1")
(defvar isearch-regexp-lax-whitespace nil
"If non-nil, a space will match a sequence of whitespace chars.