On Sun, 13 Jan 2008, Agustin Martin wrote:

> > But I installed, and it seems to work, although M-x flyspell-version comes
> > back with "Autoloading failed to define a function flyspell-version".
>
> Yes, shipped emacs version does no longer provide flyspell-version. I am
> re-adding that function mostly to make clear that the file is modified by 
> Debian
> dictionaries-common package. This makes things more clear and may be useful 
> for
> debugging.
>
> Anyway, thanks a lot for having tested the changes and for all your feedback. 
> I
> could not test much this weekend, but unless I find problems, I expect a fixed
> package to be uploaded next week.

Bugger.  I was premature.  When I do the following:
(autoload 'flyspell-mode-on "flyspell" "On-the-fly ispell." t)
(add-hook 'TeX-mode-hook     'flyspell-mode-on) ; encompases LaTeX-mode as well
(add-hook 'text-mode-hook    'flyspell-mode-on)
(add-hook 'html-mode-hook    'flyspell-mode-on)
(add-hook 'mail-hook         'flyspell-mode-on)
(add-hook 'message-hook      'flyspell-mode-on)
(add-hook 'flyspell-mode-hook 'flyspell-buffer)

(I don't simply use 'flyspell-mode because it is a toggle, and some modes
encompass other modes and you end up with flyspell being turned on then
off immediately.  It's easier for my brain if I add the hook to the modes
I want explicitly rather than trying to work out which mode is a parent of
which other mode)

I get the flyspell-buffer being executed in the hook, which made it look
like it was working.  But if I type nonsense, the bad spelling doesn't get
picked up - so it looks like the mode isn't turned on even though it had
to be for the flyspell-mode-hook hook to be executed.  If I invoke
flyspell-mode explicitly, it then works as expected, and then
flyspell-mode again will turn off the mode as expected.  If I do use
'flyspell-mode as the hook, then it works, but I would have to go through
and change my functions to remove duplicate calls.  Since this works in
the other flyspell version I have, I presume it is *supposed* to work.
Can you see what I am doing wrong, or alternatively, what bug I am
triggering?


-- 
TimC
It typically takes 25-30 gallons of petrol/diesel to fully-consume an
average-sized body under ideal conditions.  That I am conversant with
this level of detail should serve as an indication of why the wise man
does not ask me questions about MS-Windows. --Tanuki on ASR



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to