From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Markus Triska Newsgroups: gmane.emacs.bugs Subject: bug#728: 23.0.60; flyspell checking is sometimes silently disabled Date: Thu, 21 Aug 2008 22:15:57 -0400 Message-ID: References: <87k5eaj6he.fsf@cyd.mit.edu> Reply-To: Markus Triska , 728@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1219372078 19119 80.91.229.12 (22 Aug 2008 02:27:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 22 Aug 2008 02:27:58 +0000 (UTC) Cc: 728@emacsbugs.donarmstrong.com To: Chong Yidong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Aug 22 04:28:51 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KWMOI-0003pS-Tx for geb-bug-gnu-emacs@m.gmane.org; Fri, 22 Aug 2008 04:28:43 +0200 Original-Received: from localhost ([127.0.0.1]:50466 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KWMNJ-0000ZT-1q for geb-bug-gnu-emacs@m.gmane.org; Thu, 21 Aug 2008 22:27:41 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KWMND-0000XA-6R for bug-gnu-emacs@gnu.org; Thu, 21 Aug 2008 22:27:35 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KWMNB-0000Si-0J for bug-gnu-emacs@gnu.org; Thu, 21 Aug 2008 22:27:34 -0400 Original-Received: from [199.232.76.173] (port=35286 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KWMNA-0000SO-Qq for bug-gnu-emacs@gnu.org; Thu, 21 Aug 2008 22:27:32 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:60549) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KWMN9-0006Bd-Tv for bug-gnu-emacs@gnu.org; Thu, 21 Aug 2008 22:27:32 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m7M2RRYs023595; Thu, 21 Aug 2008 19:27:27 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m7M2P5Bv022423; Thu, 21 Aug 2008 19:25:05 -0700 X-Loop: don@donarmstrong.com Resent-From: Markus Triska Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 22 Aug 2008 02:25:05 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 728 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 728-submit@emacsbugs.donarmstrong.com id=B728.121937137220433 (code B ref 728); Fri, 22 Aug 2008 02:25:05 +0000 Original-Received: (at 728) by emacsbugs.donarmstrong.com; 22 Aug 2008 02:16:12 +0000 Original-Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with SMTP id m7M2G88O020427 for <728@emacsbugs.donarmstrong.com>; Thu, 21 Aug 2008 19:16:10 -0700 Original-Received: (qmail invoked by alias); 22 Aug 2008 02:16:03 -0000 Original-Received: from v254-127.vps.tuwien.ac.at (EHLO v254-127.vps.tuwien.ac.at) [128.131.254.127] by mail.gmx.net (mp024) with SMTP; 22 Aug 2008 04:16:03 +0200 X-Authenticated: #4064391 X-Provags-ID: V01U2FsdGVkX1/9Dyhe3nb9tzYtZMaxeGpE966ZOb51dDxYCv4PIg d88YZxTyfrzonY Original-Received: by mt-computer.vdn.ca (Postfix, from userid 502) id 3A804A3875B; Thu, 21 Aug 2008 22:15:57 -0400 (EDT) In-Reply-To: <87k5eaj6he.fsf@cyd.mit.edu> (Chong Yidong's message of "Thu, 21 Aug 2008 19:25:33 -0400") X-Y-GMX-Trusted: 0 X-FuHaFi: 0.64 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Thu, 21 Aug 2008 22:27:34 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:19624 Archived-At: Chong Yidong 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).