From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Agustin Martin Newsgroups: gmane.emacs.bugs Subject: bug#13577: 24.3.50; Underscore in LaTeX comments can mess up ispell Date: Tue, 14 Jan 2014 12:00:57 +0100 Message-ID: <20140114110057.GA19456@agmartin.aq.upm.es> References: <26B00FA6-ED7E-4A0E-9EDF-C728B608BB41@gmail.com> <87y53evl5g.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1389697337 11819 80.91.229.3 (14 Jan 2014 11:02:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 14 Jan 2014 11:02:17 +0000 (UTC) Cc: Ivan Andrus , Chong Yidong To: 13577-done@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jan 14 12:02:24 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 1W31lD-0008UQ-4a for geb-bug-gnu-emacs@m.gmane.org; Tue, 14 Jan 2014 12:02:19 +0100 Original-Received: from localhost ([::1]:47488 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W31lC-0005y8-Cc for geb-bug-gnu-emacs@m.gmane.org; Tue, 14 Jan 2014 06:02:18 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48960) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W31l3-0005xj-NR for bug-gnu-emacs@gnu.org; Tue, 14 Jan 2014 06:02:16 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W31kx-0006ht-R1 for bug-gnu-emacs@gnu.org; Tue, 14 Jan 2014 06:02:09 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35741) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W31kx-0006hf-N2 for bug-gnu-emacs@gnu.org; Tue, 14 Jan 2014 06:02:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1W31kx-0000pu-0e for bug-gnu-emacs@gnu.org; Tue, 14 Jan 2014 06:02:03 -0500 Resent-From: Agustin Martin Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Tue, 14 Jan 2014 11:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 13577 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 13577@debbugs.gnu.org, agustin.martin@hispalinux.es, darthandrus@gmail.com Original-Received: via spool by 13577-done@debbugs.gnu.org id=D13577.13896972633104 (code D ref 13577); Tue, 14 Jan 2014 11:02:02 +0000 Original-Received: (at 13577-done) by debbugs.gnu.org; 14 Jan 2014 11:01:03 +0000 Original-Received: from localhost ([127.0.0.1]:49760 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W31jy-0000nz-KF for submit@debbugs.gnu.org; Tue, 14 Jan 2014 06:01:02 -0500 Original-Received: from fibonacci.ccupm.upm.es ([138.100.198.70]:39373) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W31jv-0000nW-MI for 13577-done@debbugs.gnu.org; Tue, 14 Jan 2014 06:01:00 -0500 Original-Received: from agmartin.aq.upm.es (Agmartin.aq.upm.es [138.100.41.131]) by smtp.upm.es (8.14.3/8.14.3/fibonacci-001) with ESMTP id s0EB0v4D007266; Tue, 14 Jan 2014 12:00:58 +0100 Original-Received: by agmartin.aq.upm.es (Postfix, from userid 1000) id E5AB140387; Tue, 14 Jan 2014 12:00:57 +0100 (CET) Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) 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:83453 Archived-At: On Sat, Dec 21, 2013 at 11:42:24PM -0700, Ivan Andrus wrote: > On Dec 20, 2013, at 10:16 PM, Chong Yidong wrote: > > > Ivan Andrus writes: > > > >> Starting from emacs -Q add the following to a buffer and put it in > >> latex-mode (I checked both AUCTeX and the builtin latex-mode): > >> > >> % Again, we ignore the actual values of $\zeta_{i}$. > >> It is clear that $Z(G)=\angles{c_{i}}\cong \mathbb{Z}_{p}^{2}$ and > >> $G'=\angles{b_{i},c_{i}}$. > >> Missssspeelllllled. > >> > >> Run ispell-buffer. I have to do the following to get ispell to work on > >> my system: > >> > >> (setq-default ispell-program-name "hunspell") > >> (setq ispell-dictionary "american") > >> > >> You will notice that it tries to correct G', when it should not (since > >> it's in math mode). It also ignores Missssspeelllllled. > > > > I can't reproduce this. For me, ispell-buffer tries only to correct > > Missssspeelllllled. > > Hmm... I still see the same behavior on trunk from about 3 days ago: > > Bzr revision: 115610 monnier@iro.umontreal.ca-20131219140055-r6qdeooy5rrd4q1f Hi, I debugged this problem to start with my commit http://bzr.savannah.gnu.org/lh/emacs/trunk/revision/110817 The reason is that `add-comment' is wrongly reset for new line instead of `in-comment' (`add-comment' is automatically reset after `in-comment' for each line). Fix comitted to trunk as r116025. This must also go into emacs24.x branch. Which is the best way to make this happen? Regards, -- Agustin