From: Stefan Kangas Date: Thu, 27 Aug 2020 19:56:26 +0000 (+0200) Subject: Make flyspell-prog-text-faces into defcustom X-Git-Tag: emacs-28.0.90~6163 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=fab443827a6127174861fa8406d3f82a4faa596e;p=emacs.git Make flyspell-prog-text-faces into defcustom * lisp/textmodes/flyspell.el (flyspell-prog-text-faces): Make into defcustom. (Bug#32136) --- diff --git a/lisp/textmodes/flyspell.el b/lisp/textmodes/flyspell.el index 6889d7eadac..51ed3a2f789 100644 --- a/lisp/textmodes/flyspell.el +++ b/lisp/textmodes/flyspell.el @@ -387,9 +387,13 @@ like \"Some." ;;*---------------------------------------------------------------------*/ ;;* Programming mode */ ;;*---------------------------------------------------------------------*/ -(defvar flyspell-prog-text-faces +(defcustom flyspell-prog-text-faces '(font-lock-string-face font-lock-comment-face font-lock-doc-face) - "Faces corresponding to text in programming-mode buffers.") + "Faces corresponding to text in programming-mode buffers." + :type '(set (const font-lock-string-face) + (const font-lock-comment-face) + (const font-lock-doc-face)) + :version "28.1") (defun flyspell-generic-progmode-verify () "Used for `flyspell-generic-check-word-predicate' in programming modes."