GNU bug report logs - #13577
24.3.50; Underscore in LaTeX comments can mess up ispell

Previous Next

Package: emacs;

Reported by: Ivan Andrus <darthandrus <at> gmail.com>

Date: Mon, 28 Jan 2013 17:51:01 UTC

Severity: normal

Merged with 14419

Found in version 24.3.50

Done: Agustin Martin <agustin.martin <at> hispalinux.es>

Bug is archived. No further changes may be made.

Full log


Message #21 received at control <at> debbugs.gnu.org (full text, mbox):

From: Agustin Martin <agustin.martin <at> hispalinux.es>
To: 14419-done <at> debbugs.gnu.org
Subject: Re: bug#14419: 24.3.50; ispell behaves badly with some TeX documents
Date: Thu, 16 Jan 2014 14:52:15 +0100
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




This bug report was last modified 11 years and 130 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.