aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2008-07-28 20:18:52 +0000
committerChong Yidong2008-07-28 20:18:52 +0000
commit458ce40a6ab1437e388809fa4ec0dd31aa4437a8 (patch)
tree019e30b0352cd4ce035f1e24b51cfab563d936a6
parent1bd045d53a0b63429c5f8d5ec11ff1bc12842404 (diff)
downloademacs-458ce40a6ab1437e388809fa4ec0dd31aa4437a8.tar.gz
emacs-458ce40a6ab1437e388809fa4ec0dd31aa4437a8.zip
(flyspell-word, flyspell-large-region, flyspell-region): Call
ispell-maybe-find-aspell-dictionaries.
-rw-r--r--lisp/textmodes/flyspell.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/textmodes/flyspell.el b/lisp/textmodes/flyspell.el
index 91b3f7549d1..121b4b29d3f 100644
--- a/lisp/textmodes/flyspell.el
+++ b/lisp/textmodes/flyspell.el
@@ -1004,6 +1004,7 @@ Mostly we check word delimiters."
1004(defun flyspell-word (&optional following) 1004(defun flyspell-word (&optional following)
1005 "Spell check a word." 1005 "Spell check a word."
1006 (interactive (list ispell-following-word)) 1006 (interactive (list ispell-following-word))
1007 (ispell-maybe-find-aspell-dictionaries)
1007 (save-excursion 1008 (save-excursion
1008 ;; use the correct dictionary 1009 ;; use the correct dictionary
1009 (flyspell-accept-buffer-local-defs) 1010 (flyspell-accept-buffer-local-defs)
@@ -1512,7 +1513,7 @@ The buffer to mark them in is `flyspell-large-region-buffer'."
1512 ;; this is done, we can start checking... 1513 ;; this is done, we can start checking...
1513 (if flyspell-issue-message-flag (message "Checking region...")) 1514 (if flyspell-issue-message-flag (message "Checking region..."))
1514 (set-buffer curbuf) 1515 (set-buffer curbuf)
1515 (ispell-check-version) 1516 (ispell-maybe-find-aspell-dictionaries)
1516 (let ((c (apply 'ispell-call-process-region beg 1517 (let ((c (apply 'ispell-call-process-region beg
1517 end 1518 end
1518 ispell-program-name 1519 ispell-program-name
@@ -1558,6 +1559,7 @@ The buffer to mark them in is `flyspell-large-region-buffer'."
1558(defun flyspell-region (beg end) 1559(defun flyspell-region (beg end)
1559 "Flyspell text between BEG and END." 1560 "Flyspell text between BEG and END."
1560 (interactive "r") 1561 (interactive "r")
1562 (ispell-maybe-find-aspell-dictionaries)
1561 (if (= beg end) 1563 (if (= beg end)
1562 () 1564 ()
1563 (save-excursion 1565 (save-excursion