]> git.eshelyaron.com Git - emacs.git/commitdiff
Make ispell localwords safe local variable
authorJoseph Turner <joseph@breatheoutbreathe.in>
Tue, 15 Aug 2023 05:35:28 +0000 (22:35 -0700)
committerEli Zaretskii <eliz@gnu.org>
Sat, 26 Aug 2023 08:09:34 +0000 (11:09 +0300)
* lisp/textmodes/ispell.el (ispell-buffer-session-localwords):
Make safe local variable to so that checkdoc can ignore words in a
project in batch mode.

lisp/textmodes/ispell.el

index 97c4ce9f32d8d596a084c3dfc093657cf237dd9a..c73f92aa0b382adde66fa370a67f60f2d8dd3345 100644 (file)
@@ -1747,6 +1747,7 @@ Ispell is then restarted because the local words could conflict.")
 
 (defvar-local ispell-buffer-session-localwords nil
   "List of words accepted for session in this buffer.")
+(put 'ispell-buffer-session-localwords 'safe-local-variable #'list-of-strings-p)
 
 (defvar ispell-parser 'use-mode-name
   "Indicates whether ispell should parse the current buffer as TeX Code.