diff options
| author | Richard M. Stallman | 2005-10-04 20:28:27 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2005-10-04 20:28:27 +0000 |
| commit | 966a7f495bfbc49e5744c7950fd25ce4f9958903 (patch) | |
| tree | 4dc8310109c30329cc368f98769f6884a688ce5b | |
| parent | 1a1dd431f0af67dc07b96fcc785e084da670dfc5 (diff) | |
| download | emacs-966a7f495bfbc49e5744c7950fd25ce4f9958903.tar.gz emacs-966a7f495bfbc49e5744c7950fd25ce4f9958903.zip | |
(ispell-word, ispell-region): Call ispell-maybe-find-aspell-dictionaries.
(ispell-accept-buffer-local-defs):
Don't call ispell-maybe-find-aspell-dictionaries
| -rw-r--r-- | lisp/textmodes/ispell.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el index 3b3132757f9..235df714015 100644 --- a/lisp/textmodes/ispell.el +++ b/lisp/textmodes/ispell.el | |||
| @@ -1557,6 +1557,7 @@ quit spell session exited." | |||
| 1557 | (interactive (list ispell-following-word ispell-quietly current-prefix-arg)) | 1557 | (interactive (list ispell-following-word ispell-quietly current-prefix-arg)) |
| 1558 | (if continue | 1558 | (if continue |
| 1559 | (ispell-continue) | 1559 | (ispell-continue) |
| 1560 | (ispell-maybe-find-aspell-dictionaries) | ||
| 1560 | (ispell-accept-buffer-local-defs) ; use the correct dictionary | 1561 | (ispell-accept-buffer-local-defs) ; use the correct dictionary |
| 1561 | (let ((cursor-location (point)) ; retain cursor location | 1562 | (let ((cursor-location (point)) ; retain cursor location |
| 1562 | (word (ispell-get-word following)) | 1563 | (word (ispell-get-word following)) |
| @@ -2615,6 +2616,7 @@ a new one will be started when needed." | |||
| 2615 | Return nil if spell session is quit, | 2616 | Return nil if spell session is quit, |
| 2616 | otherwise returns shift offset amount for last line processed." | 2617 | otherwise returns shift offset amount for last line processed." |
| 2617 | (interactive "r") ; Don't flag errors on read-only bufs. | 2618 | (interactive "r") ; Don't flag errors on read-only bufs. |
| 2619 | (ispell-maybe-find-aspell-dictionaries) | ||
| 2618 | (if (not recheckp) | 2620 | (if (not recheckp) |
| 2619 | (ispell-accept-buffer-local-defs)) ; set up dictionary, local words, etc. | 2621 | (ispell-accept-buffer-local-defs)) ; set up dictionary, local words, etc. |
| 2620 | (let ((skip-region-start (make-marker)) | 2622 | (let ((skip-region-start (make-marker)) |
| @@ -3576,7 +3578,6 @@ You can bind this to the key C-c i in GNUS or mail by adding to | |||
| 3576 | 3578 | ||
| 3577 | (defun ispell-accept-buffer-local-defs () | 3579 | (defun ispell-accept-buffer-local-defs () |
| 3578 | "Load all buffer-local information, restarting Ispell when necessary." | 3580 | "Load all buffer-local information, restarting Ispell when necessary." |
| 3579 | (ispell-maybe-find-aspell-dictionaries) | ||
| 3580 | (ispell-buffer-local-dict) ; May kill ispell-process. | 3581 | (ispell-buffer-local-dict) ; May kill ispell-process. |
| 3581 | (ispell-buffer-local-words) ; Will initialize ispell-process. | 3582 | (ispell-buffer-local-words) ; Will initialize ispell-process. |
| 3582 | (ispell-buffer-local-parsing)) | 3583 | (ispell-buffer-local-parsing)) |