From a9ad0bbf14db51d44ad787892cc85eb9ebc397e7 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Fri, 25 Sep 2020 15:35:23 +0200 Subject: [PATCH] Fix defcustom type in whitespace.el * lisp/whitespace.el (whitespace-space-after-tab-regexp) (whitespace-indentation-regexp): The first string here isn't a regexp, it's a string (that's expanded with format to be a regexp). --- lisp/whitespace.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lisp/whitespace.el b/lisp/whitespace.el index 83551053033..2e05d93bf59 100644 --- a/lisp/whitespace.el +++ b/lisp/whitespace.el @@ -728,7 +728,7 @@ and the cons cdr is used for TABs visualization. Used when `whitespace-style' includes `indentation', `indentation::tab' or `indentation::space'." - :type '(cons (regexp :tag "Indentation SPACEs") + :type '(cons (string :tag "Indentation SPACEs") (regexp :tag "Indentation TABs")) :group 'whitespace) @@ -759,8 +759,8 @@ and the cons cdr is used for TABs visualization. Used when `whitespace-style' includes `space-after-tab', `space-after-tab::tab' or `space-after-tab::space'." - :type '(cons (regexp :tag "SPACEs After TAB") - regexp) + :type '(cons (string :tag "SPACEs After TAB") + string) :group 'whitespace) (defcustom whitespace-big-indent-regexp -- 2.39.5