changeset 75287:a884e6b92a3e

(ispell-change-dictionary): Ensure that aspell dictionaries are initialized when called non-interactively.
author Reiner Steib <Reiner.Steib@gmx.de>
date Fri, 19 Jan 2007 17:22:13 +0000
parents 2eb7060c5458
children 15fac103b3a6
files lisp/ChangeLog lisp/textmodes/ispell.el
diffstat 2 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Fri Jan 19 11:35:16 2007 +0000
+++ b/lisp/ChangeLog	Fri Jan 19 17:22:13 2007 +0000
@@ -1,3 +1,8 @@
+2007-01-19  Reiner Steib  <Reiner.Steib@gmx.de>
+
+	* textmodes/ispell.el (ispell-change-dictionary): Ensure that
+	aspell dictionaries are initialized when called non-interactively.
+
 2007-01-19  Chong Yidong  <cyd@stupidchicken.com>
 
 	* progmodes/compile.el (compilation-loop): New arg limit.  Handle
--- a/lisp/textmodes/ispell.el	Fri Jan 19 11:35:16 2007 +0000
+++ b/lisp/textmodes/ispell.el	Fri Jan 19 17:22:13 2007 +0000
@@ -2607,6 +2607,7 @@
 	       (mapcar 'list (ispell-valid-dictionary-list)))
 	  nil t)
 	 current-prefix-arg))
+  (ispell-maybe-find-aspell-dictionaries)
   (unless arg (ispell-buffer-local-dict 'no-reload))
   (if (equal dict "default") (setq dict nil))
   ;; This relies on completing-read's bug of returning "" for no match