unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* More problems with flyspell
@ 2006-01-05 13:37 Piet van Oostrum
  2006-01-05 21:52 ` Stefan Monnier
  2006-01-06  0:11 ` Agustin Martin
  0 siblings, 2 replies; 10+ messages in thread
From: Piet van Oostrum @ 2006-01-05 13:37 UTC (permalink / raw)


Some recent changes in flyspell.el (flyspell-accept-buffer-local-defs) have
caused me a problem. It hit me when I updated my CVS emacs this week:

I want my email and news messages to be flyspell-checked automatically,
preferably with the right language. So in mail-mode-hook, message-mode-hook
and vm-mail-mode-hook I run a function that installs a first-change-hook.
In the latter I do some regular expression grepping to guess what language
the message is in. This only works when replying to a message, for an new
message the default is "Dutch". When I am going to enter a new message in
English, I manually run a command to reset it to English. Each time I call
(flyspell-mode 1). This used to work, but stopped with the recent version.
The reason is the optimization in flyspell-accept-buffer-local-defs. It
won't restart ispell because there was no buffer change. So I think when
flyspell-accept-buffer-local-defs is called from flyspell-mode-on it should
do its work unconditionally. This can be done by setting
flyspell-last-buffer to nil in flyspell-mode-on.

Or maybe another solution is to give flyspell-accept-buffer-local-defs a
parameter that tells whether to do the optimization and only do it in
time-critical situations.
-- 
Piet van Oostrum <piet@cs.uu.nl>
URL: http://www.cs.uu.nl/~piet [PGP 8DAE142BE17999C4]
Private email: piet@vanoostrum.org

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2006-01-10 14:46 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-05 13:37 More problems with flyspell Piet van Oostrum
2006-01-05 21:52 ` Stefan Monnier
2006-01-06  0:11 ` Agustin Martin
2006-01-08 14:47   ` Richard M. Stallman
2006-01-09 12:53     ` Agustin Martin
2006-01-09 18:26       ` Agustin Martin
2006-01-09 21:53         ` Stefan Monnier
2006-01-09 22:56           ` Agustin Martin
2006-01-10  4:16             ` Stefan Monnier
2006-01-10 14:46               ` Agustin Martin

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).