From: Markus Triska <markus.triska@gmx.at>
To: Chong Yidong <cyd@stupidchicken.com>
Cc: 728@emacsbugs.donarmstrong.com
Subject: bug#728: 23.0.60; flyspell checking is sometimes silently disabled
Date: Thu, 21 Aug 2008 22:15:57 -0400 [thread overview]
Message-ID: <m1ej4hiyle.fsf@mt-computer.vdn.ca> (raw)
In-Reply-To: <87k5eaj6he.fsf@cyd.mit.edu> (Chong Yidong's message of "Thu, 21 Aug 2008 19:25:33 -0400")
Chong Yidong <cyd@stupidchicken.com> writes:
> Have you found a way to track down the problem causing this bug?
I have set debug-on-error to t, so the next time I see this problem, I
hope to catch which function raises the error. I already know that it is
either preview-move-point (from AUCTeX) or flyspell-post-command-hook.
Thus, especially if an AUCTeX user reads this: If you want to help to
debug this problem, please add the following to your .emacs:
(defun my-flyspell-check ()
(when flyspell-mode
(unless (memq 'flyspell-post-command-hook post-command-hook)
(with-current-buffer (get-buffer-create "flywarn")
(insert "flychecking inactive despite flyspell-mode!\n"))
(display-buffer "flywarn"))))
(setq flycheck-timer (run-with-timer 0 0.5 'my-flyspell-check))
and it will warn you when Flyspell is no longer really active.
Also, as I mentioned: I find it fair enough that Flyspell is disabled
when there are errors; I only wish that there were a general mechanism
to disable it in a cleaner way in case of errors, i.e., existing
underlines should be removed, the mode line should reflect that it is no
longer active etc. In short, when flyspell-post-command-hook must be
removed from post-command-hook, also (flyspell-mode 0) or anything
equivalent should be done. Analogously for some other modes (linum.el is
another example, where errors in a custom linum-format function should
make Emacs disable the minor mode completely, thus removing it from
other hooks as well).
next prev parent reply other threads:[~2008-08-22 2:15 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-21 23:25 bug#728: 23.0.60; flyspell checking is sometimes silently disabled Chong Yidong
2008-08-22 2:15 ` Markus Triska [this message]
2008-09-08 23:18 ` Markus Triska
2008-09-14 18:33 ` Markus Triska
-- strict thread matches above, loose matches on Subject: below --
2008-08-15 22:20 Markus Triska
2008-08-16 4:12 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m1ej4hiyle.fsf@mt-computer.vdn.ca \
--to=markus.triska@gmx.at \
--cc=728@emacsbugs.donarmstrong.com \
--cc=cyd@stupidchicken.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).