From: Eli Zaretskii Date: Fri, 4 May 2018 14:25:33 +0000 (+0300) Subject: Make 'ispell-initialize-spellchecker-hook' work again X-Git-Tag: emacs-26.1~47 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d0d75f9b4ecbaa7e49aaad8802ca2f0e3de7e480;p=emacs.git Make 'ispell-initialize-spellchecker-hook' work again * lisp/textmodes/ispell.el (ispell-base-dicts-override-alist): Defvar it to allow dynamic binding. (Bug#31341) --- diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el index 9288a77ba3e..88ab7fe1e95 100644 --- a/lisp/textmodes/ispell.el +++ b/lisp/textmodes/ispell.el @@ -1237,6 +1237,10 @@ If LANG is omitted, get the extra word characters for the default language." (defvar ispell-last-program-name nil "Last value of `ispell-program-name'. Internal use.") +;; Allow dynamically binding ispell-base-dicts-override-alist as +;; advertised in the doc string of ispell-initialize-spellchecker-hook. +(defvar ispell-base-dicts-override-alist) + (defvar ispell-initialize-spellchecker-hook nil "Normal hook run on spellchecker initialization. This hook is run when a spellchecker is used for the first