From unknown Sun Jun 22 08:04:20 2025 X-Loop: help-debbugs@gnu.org Subject: bug#13577: 24.3.50; Underscore in LaTeX comments can mess up ispell Resent-From: Ivan Andrus Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 28 Jan 2013 17:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 13577 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 13577@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.135939543628885 (code B ref -1); Mon, 28 Jan 2013 17:51:01 +0000 Received: (at submit) by debbugs.gnu.org; 28 Jan 2013 17:50:36 +0000 Received: from localhost ([127.0.0.1]:52822 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Tzsqp-0007Vq-QL for submit@debbugs.gnu.org; Mon, 28 Jan 2013 12:50:36 -0500 Received: from eggs.gnu.org ([208.118.235.92]:44589) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Tzsqm-0007Vi-OO for submit@debbugs.gnu.org; Mon, 28 Jan 2013 12:50:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TzsqK-0004Ep-Ah for submit@debbugs.gnu.org; Mon, 28 Jan 2013 12:50:06 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-102.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, T_DKIM_INVALID, USER_IN_WHITELIST autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:43294) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TzsqK-0004Ej-8e for submit@debbugs.gnu.org; Mon, 28 Jan 2013 12:50:04 -0500 Received: from eggs.gnu.org ([208.118.235.92]:55940) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TzsqI-00014x-FD for bug-gnu-emacs@gnu.org; Mon, 28 Jan 2013 12:50:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TzsqE-00048U-DU for bug-gnu-emacs@gnu.org; Mon, 28 Jan 2013 12:50:01 -0500 Received: from mail-ee0-f41.google.com ([74.125.83.41]:49296) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TzsqE-00046t-3J for bug-gnu-emacs@gnu.org; Mon, 28 Jan 2013 12:49:58 -0500 Received: by mail-ee0-f41.google.com with SMTP id c13so1481267eek.0 for ; Mon, 28 Jan 2013 09:49:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:content-type:content-transfer-encoding:subject :message-id:date:to:mime-version:x-mailer; bh=5mFHycmtYekd3aZXRlIPXRjTss6Kvp8QWx35ayKefRg=; b=nI13wpY4pYrGZiF8XOs29nygmRt12VSxOONszwUpzdLq+mHtE3pSUYui38RuwcMSzp 6zquXbPBar0JO2P6pfGRHXsI0+ONOw/PEDlu9NrWrA9234oIqzZhwFTwBNd+83M7cUv+ oWCVPfs3YaeMbRAMenz5P4z24UwzlIo4zA8UfZXs57llUE1XEEubrQPFkFDHDknoDPS6 aKakb8a3HqFdJMh/QM1bC5AHh//WZK3Tq/yK0UjYI/EgDKmGQKya/wQAfEDaTzEas7O7 O4c2qYMmvDcZaYXSb9y+LXukFVmrdaJs1hq1WSPZ+e5nujgJ/0TH6X53BcHsnYDdoSBf SL4w== X-Received: by 10.14.219.5 with SMTP id l5mr20980229eep.7.1359395396408; Mon, 28 Jan 2013 09:49:56 -0800 (PST) Received: from [10.0.2.25] (catv-80-99-48-145.catv.broadband.hu. [80.99.48.145]) by mx.google.com with ESMTPS id b2sm16804485eep.9.2013.01.28.09.49.54 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 28 Jan 2013 09:49:55 -0800 (PST) From: Ivan Andrus Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Message-Id: <26B00FA6-ED7E-4A0E-9EDF-C728B608BB41@gmail.com> Date: Mon, 28 Jan 2013 18:49:52 +0100 Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) X-Mailer: Apple Mail (2.1499) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -6.1 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.1 (------) 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)=3D\angles{c_{i}}\cong \mathbb{Z}_{p}^{2}$ and = $G'=3D\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. It seems it's getting math mode backwards. However, if the first line is uncommented then everything works correctly. -Ivan In GNU Emacs 24.3.50.19 (i386-apple-darwin12.2.0, NS = apple-appkit-1187.34) of 2013-01-25 on oroszlan.local Bzr revision: 111607 acm@muc.de-20130125181814-v129xa7rwqbntgq1 Windowing system distributor `Apple', version 10.3.1187 Configured using: `configure --with-ns --no-create --no-recursion' Important settings: value of $LC_CTYPE: UTF-8 locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Fundamental Minor modes in effect: shell-dirtrack-mode: t tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: - b u f f e r SPC C-e C-t C-e C-x C-e=20 q M-t=20 C-e C-x C-e M-x SPC SPC SPC SPC SPC SPC=20 SPC SPC SPC C-x 0 C-x b * s i =20 C-s - C-a C-s _ C-s C-s C-s=20 C-s C-s C-s C-s C-s C-x 1 =20 C-x 2 C-x b =20 C-x b , , i =20 M-( i s p e l l - b u f f e r C-e C-x C-e=20 SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC =20 C-; C-a % SPC C-x C-e SPC SPC=20 SPC SPC SPC SPC SPC SPC SPC SPC SPC =20 C-k C-y C-a C-k C-k C-k=20 C-y =20 =20 C-x=20 C-e C-x C-e SPC =20 d d d d d C-x C-e SPC SPC=20 C-3 C-a =20 C-M-SPC =20 C-w =20 C-x C-e SPC =20 =20 =20 =20 =20 =20 =20 =20 =20 C-M-SPC C-w =20 C-x o C-x C-e SPC =20 =20 =20 =20 =20 =20 C-a =20 C-s C-w=20 C-w C-s M-x r e p o r t =20 Recent messages: byte-code: Beginning of buffer [3 times] byte-code: End of buffer [5 times] Mark set End of buffer [2 times] Spell-checking *scratch* using hunspell with american dictionary...done 0 byte-code: End of buffer byte-code: Beginning of buffer [3 times] Mark saved where search started Making completion list... Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils misearch multi-isearch debug help-mode easymenu help-fns ispell tex-mode compile shell pcomplete comint ansi-color ring time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel ns-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process ns multi-tty emacs) From unknown Sun Jun 22 08:04:20 2025 X-Loop: help-debbugs@gnu.org Subject: bug#13577: 24.3.50; Underscore in LaTeX comments can mess up ispell Resent-From: Chong Yidong Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 21 Dec 2013 05:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13577 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Ivan Andrus Cc: 13577@debbugs.gnu.org Received: via spool by 13577-submit@debbugs.gnu.org id=B13577.138760299422830 (code B ref 13577); Sat, 21 Dec 2013 05:17:01 +0000 Received: (at 13577) by debbugs.gnu.org; 21 Dec 2013 05:16:34 +0000 Received: from localhost ([127.0.0.1]:60692 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VuEvR-0005w9-Kq for submit@debbugs.gnu.org; Sat, 21 Dec 2013 00:16:34 -0500 Received: from mail-pd0-f175.google.com ([209.85.192.175]:40621) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VuEvP-0005vw-9W for 13577@debbugs.gnu.org; Sat, 21 Dec 2013 00:16:32 -0500 Received: by mail-pd0-f175.google.com with SMTP id w10so3336752pde.20 for <13577@debbugs.gnu.org>; Fri, 20 Dec 2013 21:16:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=KPMF6g+zk77B2moJ2AxpuU0Ne4VMh/wH300GfjjfNOc=; b=L69lIdv5Z7pNOt5lhn/8KR3YYbffstWG/QeEvD6egT0cxQQ5EtDa12AvDduxe+JkKQ eQzFz+R8DQCsjcoEXavhLizv05QP8k6MHw+8XFgzuY8Z05lkNium0bylB7i5aJlbELrS Po5rGchUbpfTQsC0nO9NhYputQCe8G7MQFprP7yBB3xywxND5PSlwtI4JBl0glz8MTvM nnQMXWlltvsbckJ5Ig37Nw1x0ly37VZ5aXs4Du/6O6+akc77h2AwvTbiWSjRyhSdTwZx R8dU6H7hfYwakpuEnmuEmfMJ81CqvgiiWo3PsupFi/qN0Ota/kMMM3X9UGYioMQgm0Oq 6FAQ== X-Received: by 10.66.27.244 with SMTP id w20mr13209285pag.15.1387602990409; Fri, 20 Dec 2013 21:16:30 -0800 (PST) Received: from tsparkle (cm233.delta179.maxonline.com.sg. [59.189.179.233]) by mx.google.com with ESMTPSA id ql10sm18256898pbc.44.2013.12.20.21.16.28 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 20 Dec 2013 21:16:29 -0800 (PST) From: Chong Yidong References: <26B00FA6-ED7E-4A0E-9EDF-C728B608BB41@gmail.com> Date: Sat, 21 Dec 2013 13:16:27 +0800 In-Reply-To: <26B00FA6-ED7E-4A0E-9EDF-C728B608BB41@gmail.com> (Ivan Andrus's message of "Mon, 28 Jan 2013 18:49:52 +0100") Message-ID: <87y53evl5g.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) 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. From unknown Sun Jun 22 08:04:20 2025 X-Loop: help-debbugs@gnu.org Subject: bug#13577: 24.3.50; Underscore in LaTeX comments can mess up ispell Resent-From: Ivan Andrus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 22 Dec 2013 06:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13577 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Chong Yidong Cc: 13577@debbugs.gnu.org Received: via spool by 13577-submit@debbugs.gnu.org id=B13577.138769455627935 (code B ref 13577); Sun, 22 Dec 2013 06:43:02 +0000 Received: (at 13577) by debbugs.gnu.org; 22 Dec 2013 06:42:36 +0000 Received: from localhost ([127.0.0.1]:33954 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VuckE-0007GU-Nh for submit@debbugs.gnu.org; Sun, 22 Dec 2013 01:42:35 -0500 Received: from mail-ie0-f169.google.com ([209.85.223.169]:43680) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VuckA-0007GH-94 for 13577@debbugs.gnu.org; Sun, 22 Dec 2013 01:42:32 -0500 Received: by mail-ie0-f169.google.com with SMTP id e14so4934388iej.0 for <13577@debbugs.gnu.org>; Sat, 21 Dec 2013 22:42:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=29SpDtjzeTzgRLBNDdownXpeFkIzvItJek+YbD+mk08=; b=iB1CbQYntM/b47LJe7cWrERkFvfY5Hl1twSP7ettjw0yiLVj4jm2plGcTRc9cFyzKm kZEMTxGzvsJl1o5/kV2tMaMc1KT/uulWEDY10OnMnc1fZMy1Yj0fBbPDhNteGgQ2gpbT AlzCw3VH39N8EmpJau/FEdK7AGwrwSlZfM58GHDFqfjY4CYFKkfZxTHt9AtDxKR/UpnC E+RDwBOPxBfDJfIzxVyYuxk8g0c3OhvmyLLe86Xo3Oh+6B97NHVvKUII/QSM156LaFkE Svv9FaWKZumAV//OPyIkrPx/wuASrbQZ9w0Kyr0w8hGyl0zGz9NRHnfQgJNVX+CZrlAk 4Iyg== X-Received: by 10.50.43.195 with SMTP id y3mr15427162igl.33.1387694549547; Sat, 21 Dec 2013 22:42:29 -0800 (PST) Received: from [192.168.0.5] (71-33-203-155.hlrn.qwest.net. [71.33.203.155]) by mx.google.com with ESMTPSA id o1sm20189901igh.9.2013.12.21.22.42.28 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 21 Dec 2013 22:42:28 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) From: Ivan Andrus In-Reply-To: <87y53evl5g.fsf@gnu.org> Date: Sat, 21 Dec 2013 23:42:24 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: References: <26B00FA6-ED7E-4A0E-9EDF-C728B608BB41@gmail.com> <87y53evl5g.fsf@gnu.org> X-Mailer: Apple Mail (2.1510) X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On Dec 20, 2013, at 10:16 PM, Chong Yidong wrote: > Ivan Andrus writes: >=20 >> 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): >>=20 >> % Again, we ignore the actual values of $\zeta_{i}$. >> It is clear that $Z(G)=3D\angles{c_{i}}\cong \mathbb{Z}_{p}^{2}$ and >> $G'=3D\angles{b_{i},c_{i}}$. >> Missssspeelllllled. >>=20 >> Run ispell-buffer. I have to do the following to get ispell to work = on >> my system: >>=20 >> (setq-default ispell-program-name "hunspell") >> (setq ispell-dictionary "american") >>=20 >> You will notice that it tries to correct G', when it should not = (since >> it's in math mode). It also ignores Missssspeelllllled. >=20 > 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 Are you using AUCTeX or the builtin latex-mode? This has to do with skipping regions and in-comment. I think I have a = patch. However, I need to get my new employer to sign papers, and = they're shut down for about two weeks. -Ivan= From unknown Sun Jun 22 08:04:20 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.503 (Entity 5.503) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Ivan Andrus Subject: bug#13577: closed (Re: bug#13577: 24.3.50; Underscore in LaTeX comments can mess up ispell) Message-ID: References: <20140114110057.GA19456@agmartin.aq.upm.es> <26B00FA6-ED7E-4A0E-9EDF-C728B608BB41@gmail.com> X-Gnu-PR-Message: they-closed 13577 X-Gnu-PR-Package: emacs Reply-To: 13577@debbugs.gnu.org Date: Tue, 14 Jan 2014 11:02:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1389697323-3212-1" This is a multi-part message in MIME format... ------------=_1389697323-3212-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #13577: 24.3.50; Underscore in LaTeX comments can mess up ispell which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 13577@debbugs.gnu.org. --=20 13577: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D13577 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1389697323-3212-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 13577-done) by debbugs.gnu.org; 14 Jan 2014 11:01:03 +0000 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 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 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 Received: by agmartin.aq.upm.es (Postfix, from userid 1000) id E5AB140387; Tue, 14 Jan 2014 12:00:57 +0100 (CET) Date: Tue, 14 Jan 2014 12:00:57 +0100 From: Agustin Martin To: 13577-done@debbugs.gnu.org Subject: Re: bug#13577: 24.3.50; Underscore in LaTeX comments can mess up ispell Message-ID: <20140114110057.GA19456@agmartin.aq.upm.es> References: <26B00FA6-ED7E-4A0E-9EDF-C728B608BB41@gmail.com> <87y53evl5g.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Score: -2.4 (--) X-Debbugs-Envelope-To: 13577-done Cc: Ivan Andrus , Chong Yidong X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) 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 ------------=_1389697323-3212-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 28 Jan 2013 17:50:36 +0000 Received: from localhost ([127.0.0.1]:52822 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Tzsqp-0007Vq-QL for submit@debbugs.gnu.org; Mon, 28 Jan 2013 12:50:36 -0500 Received: from eggs.gnu.org ([208.118.235.92]:44589) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Tzsqm-0007Vi-OO for submit@debbugs.gnu.org; Mon, 28 Jan 2013 12:50:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TzsqK-0004Ep-Ah for submit@debbugs.gnu.org; Mon, 28 Jan 2013 12:50:06 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-102.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, T_DKIM_INVALID, USER_IN_WHITELIST autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:43294) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TzsqK-0004Ej-8e for submit@debbugs.gnu.org; Mon, 28 Jan 2013 12:50:04 -0500 Received: from eggs.gnu.org ([208.118.235.92]:55940) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TzsqI-00014x-FD for bug-gnu-emacs@gnu.org; Mon, 28 Jan 2013 12:50:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TzsqE-00048U-DU for bug-gnu-emacs@gnu.org; Mon, 28 Jan 2013 12:50:01 -0500 Received: from mail-ee0-f41.google.com ([74.125.83.41]:49296) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TzsqE-00046t-3J for bug-gnu-emacs@gnu.org; Mon, 28 Jan 2013 12:49:58 -0500 Received: by mail-ee0-f41.google.com with SMTP id c13so1481267eek.0 for ; Mon, 28 Jan 2013 09:49:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:content-type:content-transfer-encoding:subject :message-id:date:to:mime-version:x-mailer; bh=5mFHycmtYekd3aZXRlIPXRjTss6Kvp8QWx35ayKefRg=; b=nI13wpY4pYrGZiF8XOs29nygmRt12VSxOONszwUpzdLq+mHtE3pSUYui38RuwcMSzp 6zquXbPBar0JO2P6pfGRHXsI0+ONOw/PEDlu9NrWrA9234oIqzZhwFTwBNd+83M7cUv+ oWCVPfs3YaeMbRAMenz5P4z24UwzlIo4zA8UfZXs57llUE1XEEubrQPFkFDHDknoDPS6 aKakb8a3HqFdJMh/QM1bC5AHh//WZK3Tq/yK0UjYI/EgDKmGQKya/wQAfEDaTzEas7O7 O4c2qYMmvDcZaYXSb9y+LXukFVmrdaJs1hq1WSPZ+e5nujgJ/0TH6X53BcHsnYDdoSBf SL4w== X-Received: by 10.14.219.5 with SMTP id l5mr20980229eep.7.1359395396408; Mon, 28 Jan 2013 09:49:56 -0800 (PST) Received: from [10.0.2.25] (catv-80-99-48-145.catv.broadband.hu. [80.99.48.145]) by mx.google.com with ESMTPS id b2sm16804485eep.9.2013.01.28.09.49.54 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 28 Jan 2013 09:49:55 -0800 (PST) From: Ivan Andrus Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: 24.3.50; Underscore in LaTeX comments can mess up ispell Message-Id: <26B00FA6-ED7E-4A0E-9EDF-C728B608BB41@gmail.com> Date: Mon, 28 Jan 2013 18:49:52 +0100 To: bug-gnu-emacs@gnu.org Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) X-Mailer: Apple Mail (2.1499) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -6.1 (------) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.1 (------) 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)=3D\angles{c_{i}}\cong \mathbb{Z}_{p}^{2}$ and = $G'=3D\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. It seems it's getting math mode backwards. However, if the first line is uncommented then everything works correctly. -Ivan In GNU Emacs 24.3.50.19 (i386-apple-darwin12.2.0, NS = apple-appkit-1187.34) of 2013-01-25 on oroszlan.local Bzr revision: 111607 acm@muc.de-20130125181814-v129xa7rwqbntgq1 Windowing system distributor `Apple', version 10.3.1187 Configured using: `configure --with-ns --no-create --no-recursion' Important settings: value of $LC_CTYPE: UTF-8 locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Fundamental Minor modes in effect: shell-dirtrack-mode: t tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: - b u f f e r SPC C-e C-t C-e C-x C-e=20 q M-t=20 C-e C-x C-e M-x SPC SPC SPC SPC SPC SPC=20 SPC SPC SPC C-x 0 C-x b * s i =20 C-s - C-a C-s _ C-s C-s C-s=20 C-s C-s C-s C-s C-s C-x 1 =20 C-x 2 C-x b =20 C-x b , , i =20 M-( i s p e l l - b u f f e r C-e C-x C-e=20 SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC =20 C-; C-a % SPC C-x C-e SPC SPC=20 SPC SPC SPC SPC SPC SPC SPC SPC SPC =20 C-k C-y C-a C-k C-k C-k=20 C-y =20 =20 C-x=20 C-e C-x C-e SPC =20 d d d d d C-x C-e SPC SPC=20 C-3 C-a =20 C-M-SPC =20 C-w =20 C-x C-e SPC =20 =20 =20 =20 =20 =20 =20 =20 =20 C-M-SPC C-w =20 C-x o C-x C-e SPC =20 =20 =20 =20 =20 =20 C-a =20 C-s C-w=20 C-w C-s M-x r e p o r t =20 Recent messages: byte-code: Beginning of buffer [3 times] byte-code: End of buffer [5 times] Mark set End of buffer [2 times] Spell-checking *scratch* using hunspell with american dictionary...done 0 byte-code: End of buffer byte-code: Beginning of buffer [3 times] Mark saved where search started Making completion list... Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils misearch multi-isearch debug help-mode easymenu help-fns ispell tex-mode compile shell pcomplete comint ansi-color ring time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel ns-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process ns multi-tty emacs) ------------=_1389697323-3212-1-- From unknown Sun Jun 22 08:04:20 2025 X-Loop: help-debbugs@gnu.org Subject: bug#13577: 24.3.50; Underscore in LaTeX comments can mess up ispell Resent-From: Ivan Andrus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 15 Jan 2014 05:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13577 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Agustin Martin Cc: 13577-done@debbugs.gnu.org, Chong Yidong Received: via spool by 13577-done@debbugs.gnu.org id=D13577.13897621236951 (code D ref 13577); Wed, 15 Jan 2014 05:03:02 +0000 Received: (at 13577-done) by debbugs.gnu.org; 15 Jan 2014 05:02:03 +0000 Received: from localhost ([127.0.0.1]:50855 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W3Ic6-0001np-4V for submit@debbugs.gnu.org; Wed, 15 Jan 2014 00:02:02 -0500 Received: from mail-ie0-f169.google.com ([209.85.223.169]:59247) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W3Ibv-0001nS-Iq for 13577-done@debbugs.gnu.org; Wed, 15 Jan 2014 00:02:00 -0500 Received: by mail-ie0-f169.google.com with SMTP id at1so1615932iec.14 for <13577-done@debbugs.gnu.org>; Tue, 14 Jan 2014 21:01:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=mW055kvCKSmSPBZmUD1Mrl4croLRNTgZZTilL5CCJKM=; b=bwL1z5Pv5yUU5BiHM0Tal+rHOHyqa8ZwONuVA6FL7nJ9fN21aiex7DPJ1bPz7k1slL YgYYG5IxVRaC2o/wQaXr/ZrUfFnUVKJh5AWj0zPG63M5Ke8UDGeIq4Qb5wBcc9Xzny2J RieQ+WP7ZPvb5s4Z3ztTabzG5Tq3S/37rVjK0HLZC/XiVBu+Hr8985EAWgeENADb9ZLS Sq7sEaIDtRPT4SXTT2R7bxUnE3t9/5z6kYL3n8zK87hAoCNTCFCQnS/0wnFBXoZNpw+Z QbVjhBTgXPXbPMO2RGksDipXU9DBh1toUYX0AW5Om1gYU0O+8fOyaTFZR3uYRHNQapOP XPVg== X-Received: by 10.50.109.132 with SMTP id hs4mr319287igb.34.1389762110695; Tue, 14 Jan 2014 21:01:50 -0800 (PST) Received: from [10.0.2.30] (71-33-203-155.hlrn.qwest.net. [71.33.203.155]) by mx.google.com with ESMTPSA id lp9sm27722613igb.2.2014.01.14.21.01.49 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 14 Jan 2014 21:01:50 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) From: Ivan Andrus In-Reply-To: <20140114110057.GA19456@agmartin.aq.upm.es> Date: Tue, 14 Jan 2014 22:01:47 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <4BD6B886-C039-4670-B5BC-8578E68879CC@gmail.com> References: <26B00FA6-ED7E-4A0E-9EDF-C728B608BB41@gmail.com> <87y53evl5g.fsf@gnu.org> <20140114110057.GA19456@agmartin.aq.upm.es> X-Mailer: Apple Mail (2.1510) X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On Jan 14, 2014, at 4:00 AM, Agustin Martin = wrote: > On Sat, Dec 21, 2013 at 11:42:24PM -0700, Ivan Andrus wrote: >> On Dec 20, 2013, at 10:16 PM, Chong Yidong wrote: >>=20 >>> Ivan Andrus writes: >>>=20 >>>> 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): >>>>=20 >>>> % Again, we ignore the actual values of $\zeta_{i}$. >>>> It is clear that $Z(G)=3D\angles{c_{i}}\cong \mathbb{Z}_{p}^{2}$ = and >>>> $G'=3D\angles{b_{i},c_{i}}$. >>>> Missssspeelllllled. >>>>=20 >>>> Run ispell-buffer. I have to do the following to get ispell to = work on >>>> my system: >>>>=20 >>>> (setq-default ispell-program-name "hunspell") >>>> (setq ispell-dictionary "american") >>>>=20 >>>> You will notice that it tries to correct G', when it should not = (since >>>> it's in math mode). It also ignores Missssspeelllllled. >>>=20 >>> I can't reproduce this. For me, ispell-buffer tries only to correct >>> Missssspeelllllled. >>=20 >> Hmm... I still see the same behavior on trunk from about 3 days ago: >>=20 >> Bzr revision: 115610 = monnier@iro.umontreal.ca-20131219140055-r6qdeooy5rrd4q1f >=20 > Hi,=20 >=20 > I debugged this problem to start with my commit >=20 > http://bzr.savannah.gnu.org/lh/emacs/trunk/revision/110817 >=20 > 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). >=20 > Fix comitted to trunk as r116025. This must also go into emacs24.x = branch. > Which is the best way to make this happen? Cool!=20 Thanks, Ivan= From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 16 08:52:20 2014 Received: (at control) by debbugs.gnu.org; 16 Jan 2014 13:52:21 +0000 Received: from localhost ([127.0.0.1]:53012 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W3nMq-0000Am-EY for submit@debbugs.gnu.org; Thu, 16 Jan 2014 08:52:20 -0500 Received: from fibonacci.ccupm.upm.es ([138.100.198.70]:41692) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W3nMn-0000Aa-9P; Thu, 16 Jan 2014 08:52:18 -0500 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 s0GDqF3W004628; Thu, 16 Jan 2014 14:52:15 +0100 Received: by agmartin.aq.upm.es (Postfix, from userid 1000) id 8C1EE402B1; Thu, 16 Jan 2014 14:52:15 +0100 (CET) Date: Thu, 16 Jan 2014 14:52:15 +0100 From: Agustin Martin To: 14419-done@debbugs.gnu.org Subject: Re: bug#14419: 24.3.50; ispell behaves badly with some TeX documents Message-ID: <20140116135215.GA6512@agmartin.aq.upm.es> References: <273F0CF4-1050-4BEB-A005-5707AF9961BA@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <273F0CF4-1050-4BEB-A005-5707AF9961BA@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) forcemerge 13577 14419 thanks On Fri, May 17, 2013 at 11:21:26PM -0600, Ivan Andrus wrote: > ispell can overlook misspellings and (more annoyingly though easier to > detect) can start spell checking everything in math mode. > > > 1. emacs -Q > > 2. Edit the following document in latex-mode (built in or AUCTeX): > > > % \documentclass[12pt,draft,a4paper]{report} > \documentclass[12pt,a4paper]{report} > > \begin{document} > > Representation theory concerns itself with the cases when $Y$ is the general linear group $\GL_{n}(k)$, for some field $k$. > > spelling is basd $badmath$ here > > \end{document} > > > 3. Run ispell-buffer > > 4. It asks you to correct the word badmath. This is in math mode and > should be skipped. Moreover, it missed basd outside of math mode. > > 5. Delete the commented documentclass line (or move it after the other) > and things work as they are supposed to. Also fixed (in trunk) by commit r116025. Indeed it is the same problem. Closing bug report and merging both. Regards, -- Agustin