From: João Távora Date: Wed, 15 Apr 2020 17:41:53 +0000 (+0100) Subject: Default completion-flex-nospace to nil X-Git-Tag: emacs-27.0.91~5 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=660b9b8cfbfff8f94d1e9e0a701d5f94d05d4221;p=emacs.git Default completion-flex-nospace to nil By default, the flex completion style _does_ match spaces. Fixes: bug#40625 * lisp/icomplete.el (icomplete--fido-mode-setup): Force completion-flex-nospace to nil. * lisp/minibuffer.el (completion-flex-nospace): Default to nil. --- diff --git a/lisp/icomplete.el b/lisp/icomplete.el index 66bc731f67f..ac14a850d4d 100644 --- a/lisp/icomplete.el +++ b/lisp/icomplete.el @@ -329,6 +329,7 @@ if that doesn't produce a completion match." icomplete-show-matches-on-no-input t icomplete-hide-common-prefix nil completion-styles '(flex) + completion-flex-nospace nil completion-category-defaults nil))) ;;;###autoload diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el index 7f5b597542a..b81f778eb4f 100644 --- a/lisp/minibuffer.el +++ b/lisp/minibuffer.el @@ -3607,7 +3607,7 @@ that is non-nil." ;;; "flex" completion, also known as flx/fuzzy/scatter completion ;; Completes "foo" to "frodo" and "farfromsober" -(defcustom completion-flex-nospace t +(defcustom completion-flex-nospace nil "Non-nil if `flex' completion rejects spaces in search pattern." :version "27.1" :type 'boolean)