[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: flyspell bug

From: Richard M. Stallman
Subject: Re: flyspell bug
Date: Mon, 07 Nov 2005 10:35:10 -0500

    For example, run the below in this buffer:

    (setq flyspell-large-region 20)

    If you remove the line below, it still doesn't work. But if you remove
    the line, kill the buffer and revisit it, everything will work fine.

     LocalWords:  blabla

The bug in this case is that the LocalWords are not known to the
ispell process that is used by flyspell-large-region.  It clearly
needs the change below.

With that change, ispell-buffer-local-words gets called at the right
time, finds blabla, and sends it to the ispell process.
ispell-kill-ispell is not called again before flyspell-large-region
sends the text to the process.  Despite that, blabla is still included
in the list of misspelled words in the buffer.

I am stumped now.  Ken, can you help?

*** flyspell.el 04 Nov 2005 17:32:58 -0500      1.85
--- flyspell.el 06 Nov 2005 21:29:35 -0500      
*** 1384,1389 ****
--- 1384,1390 ----
      (setq flyspell-large-region-buffer curbuf)
      (setq flyspell-large-region-beg beg)
      (setq flyspell-large-region-end end)
+     (flyspell-accept-buffer-local-defs)
      (set-buffer buffer)
      ;; this is done, we can start checking...

reply via email to

[Prev in Thread] Current Thread [Next in Thread]