]> git.eshelyaron.com Git - emacs.git/commitdiff
(ispell-internal-change-dictionary, ispell-change-dictionary):
authorStefan Monnier <monnier@iro.umontreal.ca>
Sun, 15 Jan 2006 06:05:50 +0000 (06:05 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Sun, 15 Jan 2006 06:05:50 +0000 (06:05 +0000)
Undo most of last change of 2006-01-13.
(start, end): Move declaration outside of eval-when-compile.

lisp/ChangeLog
lisp/textmodes/ispell.el

index 4c009714ce456dbc99cc4ca15ba355bdf8f1b118..84fbb0126d4cda7392c08effae0365b37c5e4c4f 100644 (file)
@@ -1,5 +1,9 @@
 2006-01-15  Stefan Monnier  <monnier@iro.umontreal.ca>
 
+       * textmodes/ispell.el (ispell-internal-change-dictionary)
+       (ispell-change-dictionary): Undo most of last change of 2006-01-13.
+       (start, end): Move declaration outside of eval-when-compile.
+
        * textmodes/flyspell.el (flyspell-kill-ispell-hook): New fun.
        (flyspell-mode-on): Use it.
 
index c3e74043c0d482c83431ea526753448f68aee549..5b5e748af741acc7f275f3023684ae32d5b4f213 100644 (file)
 ;;; 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 @@ By just answering RET you can find out what the current dictionary is."
               (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 @@ a new one will be started when needed."
   (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 @@ Point is placed at end of skipped region."
                                      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.