]> git.eshelyaron.com Git - emacs.git/commitdiff
Make flyspell-prog-text-faces into defcustom
authorStefan Kangas <stefankangas@gmail.com>
Thu, 27 Aug 2020 19:56:26 +0000 (21:56 +0200)
committerStefan Kangas <stefan@marxist.se>
Wed, 9 Sep 2020 18:08:51 +0000 (20:08 +0200)
* lisp/textmodes/flyspell.el (flyspell-prog-text-faces):
Make into defcustom.  (Bug#32136)

lisp/textmodes/flyspell.el

index 6889d7eadac4327643d714b436207bdb97feb6a2..51ed3a2f7898ca0e6b1b8baa42f25adae91a38f8 100644 (file)
@@ -387,9 +387,13 @@ like <img alt=\"Some thing.\">."
 ;;*---------------------------------------------------------------------*/
 ;;*    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."