From 0367208e6e9cb7621eb5faa3c44b94948207c5c7 Mon Sep 17 00:00:00 2001 From: Philip Kaludercic Date: Wed, 26 Oct 2022 09:33:48 +0200 Subject: [PATCH] Allow nil as a valid value for 'ecomplete-filter-regexp' MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit * lisp/ecomplete.el (ecomplete-filter-regexp): Replace user option type. Reported by Mattias Engdegård. --- lisp/ecomplete.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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. -- 2.39.5