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#7781: hunspell and latex-mode Date: Tue, 29 Apr 2014 18:25:31 +0300 Message-ID: <83d2g0ma38.fsf@gnu.org> References: <87sjx9fula.fsf@sc3d.org> <87y4yqh34e.fsf@micropit.couberia.selfip.net> <83eh0ho482.fsf@gnu.org> <87mwf5fmwt.fsf@micropit.couberia.selfip.net> <20140429100325.GA13604@agmartin.aq.upm.es> <87r44ga131.fsf@micropit.roche-blanche.homenet.org> <20140429103949.GA28561@agmartin.aq.upm.es> <87fvkw9wq9.fsf@micropit.roche-blanche.homenet.org> <87bnvk9u8k.fsf@micropit.roche-blanche.homenet.org> <83tx9cme5r.fsf@gnu.org> <878uqo439s.fsf@micropit.roche-blanche.homenet.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8BIT X-Trace: ger.gmane.org 1398785188 30594 80.91.229.3 (29 Apr 2014 15:26:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 29 Apr 2014 15:26:28 +0000 (UTC) Cc: agustin.martin@hispalinux.es, 7781@debbugs.gnu.org To: Peter =?UTF-8?Q?M=C3=BCnster?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Apr 29 17:26:21 2014 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 1Wf9vI-00005D-DX for geb-bug-gnu-emacs@m.gmane.org; Tue, 29 Apr 2014 17:26:20 +0200 Original-Received: from localhost ([::1]:50675 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wf9vI-0000gj-1X for geb-bug-gnu-emacs@m.gmane.org; Tue, 29 Apr 2014 11:26:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45484) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wf9vA-0000eL-FC for bug-gnu-emacs@gnu.org; Tue, 29 Apr 2014 11:26:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wf9v0-00034d-MB for bug-gnu-emacs@gnu.org; Tue, 29 Apr 2014 11:26:12 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56102) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wf9v0-00033f-BN for bug-gnu-emacs@gnu.org; Tue, 29 Apr 2014 11:26:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Wf9uz-0004pm-Up for bug-gnu-emacs@gnu.org; Tue, 29 Apr 2014 11:26:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 29 Apr 2014 15:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7781 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 7781-submit@debbugs.gnu.org id=B7781.139878513318530 (code B ref 7781); Tue, 29 Apr 2014 15:26:01 +0000 Original-Received: (at 7781) by debbugs.gnu.org; 29 Apr 2014 15:25:33 +0000 Original-Received: from localhost ([127.0.0.1]:45220 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wf9uW-0004on-O1 for submit@debbugs.gnu.org; Tue, 29 Apr 2014 11:25:33 -0400 Original-Received: from mtaout29.012.net.il ([80.179.55.185]:51678) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wf9uT-0004oT-MD for 7781@debbugs.gnu.org; Tue, 29 Apr 2014 11:25:31 -0400 Original-Received: from conversion-daemon.mtaout29.012.net.il by mtaout29.012.net.il (HyperSendmail v2007.08) id <0N4S00000THEQF00@mtaout29.012.net.il> for 7781@debbugs.gnu.org; Tue, 29 Apr 2014 18:26:42 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout29.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N4S00KBITKI5460@mtaout29.012.net.il>; Tue, 29 Apr 2014 18:26:42 +0300 (IDT) In-reply-to: <878uqo439s.fsf@micropit.roche-blanche.homenet.org> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.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:88431 Archived-At: > From: Peter Münster > Cc: agustin.martin@hispalinux.es, 7781@debbugs.gnu.org > Date: Tue, 29 Apr 2014 16:30:07 +0200 > > On Tue, Apr 29 2014, Eli Zaretskii wrote: > > > (I have no idea why visiting the same file in Text mode avoids the > > problem. The only difference is that in Text mode, ispell.el does not > > skip the first 2 lines, but instead submits them to Hunspell. > > No. In latex-mode, emacs switches hunspell into TeX-mode with the "+". It does both, evidently. Compare this part of your debug output (in LaTeX buffer): ispell-region: First skip: \documentclass at (pos,line,column): (1,1,0). ispell-region: Continue spell-checking with hunspell and default dictionary... ispell-region: string pos (41->41), eol: 45, [in-comment]: [nil], [add-comment]: [nil], [string]: [nil] ispell-region: string pos (42->45), eol: 45, [in-comment]: [nil], [add-comment]: [nil], [string]: [^bla ] with this (in Text buffer): ispell-region: string pos (1->24), eol: 24, [in-comment]: [nil], [add-comment]: [nil], [string]: [^\documentclass{article} ] ispell-region: string pos (24->24), eol: 41, [in-comment]: [nil], [add-comment]: [nil], [string]: [nil] ispell-region: string pos (25->41), eol: 41, [in-comment]: [nil], [add-comment]: [nil], [string]: [^\begin{document} ] ispell-region: string pos (41->41), eol: 45, [in-comment]: [nil], [add-comment]: [nil], [string]: [nil] ispell-region: string pos (42->45), eol: 45, [in-comment]: [nil], [add-comment]: [nil], [string]: [^bla ] ispell-region: string pos (45->45), eol: 60, [in-comment]: [nil], [add-comment]: [nil], [string]: [nil] ispell-region: string pos (46->60), eol: 60, [in-comment]: [nil], [add-comment]: [nil], [string]: [^\end{document} ] As you see, in the second case, the TeX directives are also sent to Hunspell for checking, while in the first case they are not.