unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#13577: 24.3.50; Underscore in LaTeX comments can mess up ispell
@ 2013-01-28 17:49 Ivan Andrus
  2013-12-21  5:16 ` Chong Yidong
  0 siblings, 1 reply; 5+ messages in thread
From: Ivan Andrus @ 2013-01-28 17:49 UTC (permalink / raw)
  To: 13577

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.  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 <left> <left> C-t C-e C-x C-e 
q <C-left> <C-left> <C-left> <C-left> <C-right> M-t 
C-e C-x C-e M-x <up> <return> SPC SPC SPC SPC SPC SPC 
SPC SPC SPC <C-tab> C-x 0 C-x b * s <backspace> i <tab> 
<return> <C-up> <C-up> C-s - C-a C-s _ C-s C-s C-s 
C-s C-s C-s C-s C-s C-x 1 <help-echo> <wheel-down> 
<wheel-down> C-x 2 C-x b <return> <tool-bar> <kill-buffer> 
C-x b <return> <return> , , i <backspace> <backspace> 
<backspace> M-( i s p e l l - b u f f e r C-e C-x C-e 
SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC <down> <down> 
<down> C-; C-a % SPC <C-up> <C-down> C-x C-e SPC SPC 
SPC SPC SPC SPC SPC SPC SPC SPC SPC <down> <down> <down> 
<down> C-k <up> <up> <down> C-y <up> C-a C-k C-k C-k 
<C-up> <C-up> C-y <return> <up> <return> <up> <up> 
<down> <down> <down> <return> <C-tab> <help-echo> <down-mouse-1> 
<mouse-1> <help-echo> <down-mouse-1> <mouse-1> C-x 
C-e <down> C-x C-e SPC <help-echo> <down-mouse-1> <mouse-1> 
d d d d d <down-mouse-1> <mouse-1> C-x C-e SPC SPC 
<C-tab> <down-mouse-1> <mouse-1> C-3 C-a <C-up> <C-up> 
<C-up> C-M-SPC <C-down> <C-down> <C-down> <C-down> 
C-w <C-backspace> <C-backspace> <C-backspace> <C-tab> 
<help-echo> <down-mouse-1> <mouse-1> C-x C-e SPC <help-echo> 
<wheel-up> <double-wheel-up> <wheel-down> <double-wheel-down> 
<triple-wheel-down> <wheel-up> <double-wheel-up> <triple-wheel-up> 
<triple-wheel-up> <wheel-down> <double-wheel-down> 
<triple-wheel-down> <triple-wheel-down> <triple-wheel-down> 
<triple-wheel-down> <triple-wheel-down> <triple-wheel-down> 
<wheel-up> <double-wheel-up> <triple-wheel-up> <triple-wheel-up> 
<wheel-down> <double-wheel-down> <triple-wheel-down> 
<triple-wheel-down> <triple-wheel-down> <triple-wheel-down> 
<down-mouse-1> <mouse-1> C-M-SPC <C-up> C-w <down> 
<down> <C-tab> C-x o C-x C-e SPC <C-tab> <down-mouse-1> 
<mouse-1> <wheel-down> <double-wheel-down> <triple-wheel-down> 
<wheel-down> <double-wheel-down> <triple-wheel-down> 
<triple-wheel-down> <wheel-up> <double-wheel-up> <triple-wheel-up> 
<triple-wheel-up> <triple-wheel-up> <triple-wheel-up> 
<triple-wheel-up> <triple-wheel-up> <down-mouse-1> 
<mouse-1> C-a <up> <up> <up> <C-right> <C-right> <C-right> 
<C-right> <C-right> <C-left> <left> <left> C-s C-w 
C-w C-s <C-tab> <C-tab> M-x r e p o <tab> r t <tab> 
<return>

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)





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#13577: 24.3.50; Underscore in LaTeX comments can mess up ispell
  2013-01-28 17:49 bug#13577: 24.3.50; Underscore in LaTeX comments can mess up ispell Ivan Andrus
@ 2013-12-21  5:16 ` Chong Yidong
  2013-12-22  6:42   ` Ivan Andrus
  0 siblings, 1 reply; 5+ messages in thread
From: Chong Yidong @ 2013-12-21  5:16 UTC (permalink / raw)
  To: Ivan Andrus; +Cc: 13577

Ivan Andrus <darthandrus@gmail.com> 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.





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#13577: 24.3.50; Underscore in LaTeX comments can mess up ispell
  2013-12-21  5:16 ` Chong Yidong
@ 2013-12-22  6:42   ` Ivan Andrus
  2014-01-14 11:00     ` Agustin Martin
  0 siblings, 1 reply; 5+ messages in thread
From: Ivan Andrus @ 2013-12-22  6:42 UTC (permalink / raw)
  To: Chong Yidong; +Cc: 13577

On Dec 20, 2013, at 10:16 PM, Chong Yidong <cyd@gnu.org> wrote:

> Ivan Andrus <darthandrus@gmail.com> 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

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




^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#13577: 24.3.50; Underscore in LaTeX comments can mess up ispell
  2013-12-22  6:42   ` Ivan Andrus
@ 2014-01-14 11:00     ` Agustin Martin
  2014-01-15  5:01       ` Ivan Andrus
  0 siblings, 1 reply; 5+ messages in thread
From: Agustin Martin @ 2014-01-14 11:00 UTC (permalink / raw)
  To: 13577-done; +Cc: Ivan Andrus, Chong Yidong

On Sat, Dec 21, 2013 at 11:42:24PM -0700, Ivan Andrus wrote:
> On Dec 20, 2013, at 10:16 PM, Chong Yidong <cyd@gnu.org> wrote:
> 
> > Ivan Andrus <darthandrus@gmail.com> 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





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#13577: 24.3.50; Underscore in LaTeX comments can mess up ispell
  2014-01-14 11:00     ` Agustin Martin
@ 2014-01-15  5:01       ` Ivan Andrus
  0 siblings, 0 replies; 5+ messages in thread
From: Ivan Andrus @ 2014-01-15  5:01 UTC (permalink / raw)
  To: Agustin Martin; +Cc: 13577-done, Chong Yidong

On Jan 14, 2014, at 4:00 AM, Agustin Martin <agustin.martin@hispalinux.es> wrote:

> On Sat, Dec 21, 2013 at 11:42:24PM -0700, Ivan Andrus wrote:
>> On Dec 20, 2013, at 10:16 PM, Chong Yidong <cyd@gnu.org> wrote:
>> 
>>> Ivan Andrus <darthandrus@gmail.com> 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?

Cool! 

Thanks,
Ivan




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-01-15  5:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-28 17:49 bug#13577: 24.3.50; Underscore in LaTeX comments can mess up ispell Ivan Andrus
2013-12-21  5:16 ` Chong Yidong
2013-12-22  6:42   ` Ivan Andrus
2014-01-14 11:00     ` Agustin Martin
2014-01-15  5:01       ` Ivan Andrus

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).