From e42a01cb9ba61874ee9712e4e59017a949cb6b04 Mon Sep 17 00:00:00 2001 From: Chong Yidong Date: Sat, 23 Sep 2006 19:05:03 +0000 Subject: * textmodes/ispell.el (ispell-change-dictionary): Don't check the local dictionary when changing the global dictionary. --- lisp/textmodes/ispell.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lisp/textmodes') diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el index a0eb147d9c8..2a42a91f7e7 100644 --- a/lisp/textmodes/ispell.el +++ b/lisp/textmodes/ispell.el @@ -2613,8 +2613,9 @@ By just answering RET you can find out what the current dictionary is." (cond ((equal dict "") (ispell-internal-change-dictionary) (message "Using %s dictionary" - (or ispell-local-dictionary ispell-dictionary "default"))) - ((equal dict (or ispell-local-dictionary + (or (and (not arg) ispell-local-dictionary) + ispell-dictionary "default"))) + ((equal dict (or (and (not arg) ispell-local-dictionary) ispell-dictionary "default")) ;; Specified dictionary is the default already. Could reload ;; the dictionaries if needed. -- cgit v1.2.1