From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#12768: 24.1; flyspell highlights words which ispell accepts Date: Thu, 01 Nov 2012 16:44:01 +0200 Message-ID: <83625p758u.fsf@gnu.org> References: <87zk3414cf.fsf@sc3d.org> <20121031123140.GA17066@agmartin.aq.upm.es> <20121031145318.GA16471@agmartin.aq.upm.es> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1351781132 16965 80.91.229.3 (1 Nov 2012 14:45:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 1 Nov 2012 14:45:32 +0000 (UTC) Cc: 12768@debbugs.gnu.org, agustin.martin@upm.es, rrt@sc3d.org To: Agustin Martin Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Nov 01 15:45:41 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TTw1b-0004ih-U2 for geb-bug-gnu-emacs@m.gmane.org; Thu, 01 Nov 2012 15:45:40 +0100 Original-Received: from localhost ([::1]:57464 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TTw1T-0000kl-GW for geb-bug-gnu-emacs@m.gmane.org; Thu, 01 Nov 2012 10:45:31 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:55944) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TTw1N-0000br-H4 for bug-gnu-emacs@gnu.org; Thu, 01 Nov 2012 10:45:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TTw1I-0004AL-A9 for bug-gnu-emacs@gnu.org; Thu, 01 Nov 2012 10:45:25 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33020) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TTw1I-0004AD-6U for bug-gnu-emacs@gnu.org; Thu, 01 Nov 2012 10:45:20 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TTw3t-0004yu-Rm for bug-gnu-emacs@gnu.org; Thu, 01 Nov 2012 10:48:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 01 Nov 2012 14:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12768 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 12768-submit@debbugs.gnu.org id=B12768.135178127419135 (code B ref 12768); Thu, 01 Nov 2012 14:48:01 +0000 Original-Received: (at 12768) by debbugs.gnu.org; 1 Nov 2012 14:47:54 +0000 Original-Received: from localhost ([127.0.0.1]:43271 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TTw3m-0004yZ-5O for submit@debbugs.gnu.org; Thu, 01 Nov 2012 10:47:54 -0400 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:63411) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TTw3h-0004yP-PO for 12768@debbugs.gnu.org; Thu, 01 Nov 2012 10:47:51 -0400 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0MCT00200CUAPE00@a-mtaout21.012.net.il> for 12768@debbugs.gnu.org; Thu, 01 Nov 2012 16:43:43 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MCT002XYCWUII60@a-mtaout21.012.net.il>; Thu, 01 Nov 2012 16:43:43 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:66311 Archived-At: > Date: Thu, 1 Nov 2012 01:10:11 +0100 > From: Agustin Martin > Cc: agustin.martin@upm.es > > Really strange. With your steps I can even reproduce the problem with > something as simple as > > dnl -- D > > If I add something before dnl I still get the problem. > > sdfdsfsdnl -- D > > IIf I either break the double dash (no double dashes at all) or the > dnl or remove the "D" after the dashes problem disappear > > dfnl -- D > dnl - - D > dnl -- > > autotest-mode.el is a small file, but II do not see any hint about > what is happening here. Seems to do something strange with double > dashes associated with dnl, but I am absolutely clueless, help > welcome. If you step through ispell-region, you will see that it goes bananas because ispell-skip-region-alist has "--+" as part of it, which matches the dashes between "dnl" and the text of the comment. What ispell-region does is remove the dashes, and then _prepend_ "dnl" (because it's a comment-start string). The result is that we send something like "^dnl FOO" to the speller, and the character positions get screwed up, because the characters between "dnl" and "FOO" were removed. FWIW, I really don't understand why ispell.el removes patterns that pertain to email messages from buffers that have nothing to do with mail-mode or its derivatives. > Dirty workaround in the meantime, avoid double dashes and try something like > > dnl - - - - Hi, whatever I want to add here > > But I really wonder what is happening here. See above. A single dash doesn't get removed, so the workaround works around. Btw, WIBNI ispell.el had a debug option, which, if set, would collect in a special buffer everything we send to the speller and its responses. I find myself adding '(message "sent %s" strin)' etc. every time I need to debug the communications between ispell.el and the speller program. WDYT?