[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/textmodes/ispell.el
From: |
Stefan Monnier |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/textmodes/ispell.el |
Date: |
Sun, 15 Jan 2006 06:05:51 +0000 |
Index: emacs/lisp/textmodes/ispell.el
diff -u emacs/lisp/textmodes/ispell.el:1.188
emacs/lisp/textmodes/ispell.el:1.189
--- emacs/lisp/textmodes/ispell.el:1.188 Sun Jan 15 05:42:35 2006
+++ emacs/lisp/textmodes/ispell.el Sun Jan 15 06:05:50 2006
@@ -202,7 +202,6 @@
;;; Code:
(defvar mail-yank-prefix)
-(eval-when-compile (defvar flyspell-word-cache-word))
;;; Custom.el macros require recompiling this when they are not present.
;;; Add in backward compatible custom support.
@@ -2624,13 +2623,6 @@
(setq ispell-local-dictionary dict)
(setq ispell-local-dictionary-overridden t))
(error "Undefined dictionary: %s" dict))
- ;; For global setting clear out flyspell word cache when needed
- (when (and arg
- (featurep 'flyspell))
- (dolist (buf (buffer-list))
- (with-current-buffer buf
- (when flyspell-mode
- (setq flyspell-word-cache-word nil)))))
(ispell-internal-change-dictionary)
(message "%s Ispell dictionary set to %s"
(if arg "Global" "Local")
@@ -2643,12 +2635,7 @@
(let ((dict (or ispell-local-dictionary ispell-dictionary)))
(unless (equal ispell-current-dictionary dict)
(ispell-kill-ispell t)
- (setq ispell-current-dictionary dict)
- ;; If needed, start ispell process and clear out flyspell word cache
- (when (and (featurep 'flyspell)
- flyspell-mode)
- (ispell-init-process)
- (setq flyspell-word-cache-word nil)))))
+ (setq ispell-current-dictionary dict))))
;;; Spelling of comments are checked when ispell-check-comments is non-nil.
@@ -2981,9 +2968,8 @@
coding)))))
;;; Avoid error messages when compiling for these dynamic variables.
-(eval-when-compile
- (defvar start)
- (defvar end))
+(defvar start)
+(defvar end)
(defun ispell-process-line (string shift)
"Sends a LINE of text to ispell and processes the result.