From: Philip Kaludercic <philipk@posteo.net>
Date: Wed, 26 Oct 2022 07:33:48 +0000 (+0200)
Subject: Allow nil as a valid value for 'ecomplete-filter-regexp'
X-Git-Tag: emacs-29.0.90~1616^2~461
X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=0367208e6e9cb7621eb5faa3c44b94948207c5c7;p=emacs.git

Allow nil as a valid value for 'ecomplete-filter-regexp'

* lisp/ecomplete.el (ecomplete-filter-regexp): Replace user option type.

Reported by Mattias EngdegÄrd.
---

diff --git a/lisp/ecomplete.el b/lisp/ecomplete.el
index 54d60c84d4f..dfee0734817 100644
--- a/lisp/ecomplete.el
+++ b/lisp/ecomplete.el
@@ -88,7 +88,8 @@ string that was matched."
 
 (defcustom ecomplete-filter-regexp nil
   "Regular expression of addresses that should not be stored by ecomplete."
-  :type 'regexp
+  :type '(choice (const :tag "None" nil)
+                 (regexp :tag "Regexp"))
   :version "29.1")
 
 ;;; Internal variables.