GNU bug report logs - #5821
bug in TeX mode

Previous Next

Package: emacs;

Reported by: "Dan Stratila" <dstrat <at> rci.rutgers.edu>

Date: Fri, 2 Apr 2010 05:16:02 UTC

Severity: normal

Merged with 6862, 6889, 7341

Found in version 23.1

Fixed in version 23.2

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 5821 in the body.
You can then email your comments to 5821 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5821; Package emacs. (Fri, 02 Apr 2010 05:16:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Dan Stratila" <dstrat <at> rci.rutgers.edu>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 02 Apr 2010 05:16:02 GMT) Full text and rfc822 format available.

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

From: "Dan Stratila" <dstrat <at> rci.rutgers.edu>
To: <bug-gnu-emacs <at> gnu.org>
Subject: bug in TeX mode
Date: Fri, 2 Apr 2010 01:01:25 -0400
Hello,

The TeX mode introduces a new bug in Emacs 23.1 that was not present in
22.3. This bug is not present when using AUCTeX - I am referring to the TeX
mode that comes with Emacs.

Specifically, when I want to manually re-fill a paragraph that has an empty
comment line right before it, the first line of the paragraph is "bumped up"
into the comment line. This "breaks" the document, since of course comment
lines do not appear in the document LaTeX produces. Here is an example:

===
%
Aaa aaa bbb bbb. Aaa aaa bbb bbb. Aaa aaa bbb bbb. Aaa aaa bbb bbb. 
Aaa aaa bbb bbb. Aaa aaa bbb bbb. Aaa aaa bbb bbb. 
===

Placing the cursor on a sentence and then manually re-filling triggers the
bug. It seems to be introduced by a change on line 1052 (of the new
list/textmodes/tex-mode.el). The new line says:

===
  (setq paragraph-separate
	(concat "[\f]\\|[ \t]*\\($\\|"
		"\\\\[][]\\|"
===

The old line (which had a different number) used to say

===
  (setq paragraph-separate
	(concat "[\f%]\\|[ \t]*\\($\\|"
		"\\\\[][]\\|"
===

Reverting just this line to the old one fixes the problem.

Thanks,
Dan






Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5821; Package emacs. (Sat, 03 Apr 2010 23:47:02 GMT) Full text and rfc822 format available.

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

From: Chong Yidong <cyd <at> stupidchicken.com>
To: Stefan Monnier  <monnier <at> iro.umontreal.ca>
Cc: 5821 <at> debbugs.gnu.org, Dan Stratila <dstrat <at> rci.rutgers.edu>
Subject: Re: bug in TeX mode
Date: Sat, 03 Apr 2010 19:46:50 -0400
> ===
> %
> Aaa aaa bbb bbb. Aaa aaa bbb bbb. Aaa aaa bbb bbb. Aaa aaa bbb bbb.
> Aaa aaa bbb bbb. Aaa aaa bbb bbb. Aaa aaa bbb bbb.
> ===
>
> Placing the cursor on a sentence and then manually re-filling triggers the
> bug.

This seems to have been done deliberately.  Stefan, could you check your
change?


  2008-03-03  Stefan Monnier  <monnier <at> iro.umontreal.ca>

    * textmodes/tex-mode.el (latex-mode): Remove % from paragraph-separate
    so that M-q can fill comments.




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5821; Package emacs. (Sun, 04 Apr 2010 00:45:02 GMT) Full text and rfc822 format available.

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

From: "Dan Stratila" <dstrat <at> rci.rutgers.edu>
To: "'Chong Yidong'" <cyd <at> stupidchicken.com>,
	"'Stefan Monnier'" <monnier <at> iro.umontreal.ca>
Cc: 5821 <at> debbugs.gnu.org
Subject: RE: bug in TeX mode
Date: Sat, 3 Apr 2010 20:44:23 -0400
M-q does fill comments without the change. It just doesn't mix them with
non-comment text (which is probably what you want anyway). 


> -----Original Message-----
> From: Chong Yidong [mailto:cyd <at> stupidchicken.com] 
> Sent: Saturday, April 03, 2010 7:47 PM
> To: Stefan Monnier
> Cc: Dan Stratila; 5821 <at> debbugs.gnu.org
> Subject: Re: bug in TeX mode
> 
> > ===
> > %
> > Aaa aaa bbb bbb. Aaa aaa bbb bbb. Aaa aaa bbb bbb. Aaa aaa bbb bbb.
> > Aaa aaa bbb bbb. Aaa aaa bbb bbb. Aaa aaa bbb bbb.
> > ===
> >
> > Placing the cursor on a sentence and then manually 
> re-filling triggers the
> > bug.
> 
> This seems to have been done deliberately.  Stefan, could you 
> check your
> change?
> 
> 
>   2008-03-03  Stefan Monnier  <monnier <at> iro.umontreal.ca>
> 
>     * textmodes/tex-mode.el (latex-mode): Remove % from 
> paragraph-separate
>     so that M-q can fill comments.





Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5821; Package emacs. (Sun, 04 Apr 2010 14:38:02 GMT) Full text and rfc822 format available.

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

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Chong Yidong <cyd <at> stupidchicken.com>
Cc: 5821 <at> debbugs.gnu.org, Dan Stratila <dstrat <at> rci.rutgers.edu>
Subject: Re: bug in TeX mode
Date: Sun, 04 Apr 2010 10:37:22 -0400
> This seems to have been done deliberately.  Stefan, could you check your
> change?

>   2008-03-03  Stefan Monnier  <monnier <at> iro.umontreal.ca>
>     * textmodes/tex-mode.el (latex-mode): Remove % from paragraph-separate
>     so that M-q can fill comments.

It looks like this commit was mistaken: the problem it introduces is
too serious.  Please revert it if you get to it before I do,


        Stefan




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5821; Package emacs. (Tue, 06 Apr 2010 15:44:02 GMT) Full text and rfc822 format available.

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

From: Chong Yidong <cyd <at> stupidchicken.com>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 5821 <at> debbugs.gnu.org, Dan Stratila <dstrat <at> rci.rutgers.edu>
Subject: Re: bug in TeX mode
Date: Tue, 06 Apr 2010 11:43:42 -0400
> > This seems to have been done deliberately.  Stefan, could you check your
> > change?
>
> >   2008-03-03  Stefan Monnier  <monnier <at> iro.umontreal.ca>
> >     * textmodes/tex-mode.el (latex-mode): Remove % from paragraph-separate
> >     so that M-q can fill comments.
>
> It looks like this commit was mistaken: the problem it introduces is
> too serious.  Please revert it if you get to it before I do,

Done.




bug closed, send any further explanations to "Dan Stratila" <dstrat <at> rci.rutgers.edu> Request was from Chong Yidong <cyd <at> stupidchicken.com> to control <at> debbugs.gnu.org. (Tue, 06 Apr 2010 15:45:02 GMT) Full text and rfc822 format available.

Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5821; Package emacs. (Fri, 09 Apr 2010 01:57:02 GMT) Full text and rfc822 format available.

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

From: "Dan Stratila" <dstrat <at> rci.rutgers.edu>
To: "'Chong Yidong'" <cyd <at> stupidchicken.com>,
	"'Stefan Monnier'" <monnier <at> iro.umontreal.ca>
Cc: 5821 <at> debbugs.gnu.org
Subject: RE: bug in TeX mode
Date: Thu, 8 Apr 2010 21:56:42 -0400
Great, thanks!
 

> -----Original Message-----
> From: Chong Yidong [mailto:cyd <at> stupidchicken.com] 
> Sent: Tuesday, April 06, 2010 11:44 AM
> To: Stefan Monnier
> Cc: 5821 <at> debbugs.gnu.org; Dan Stratila
> Subject: Re: bug in TeX mode
> 
> > > This seems to have been done deliberately.  Stefan, could 
> you check your
> > > change?
> >
> > >   2008-03-03  Stefan Monnier  <monnier <at> iro.umontreal.ca>
> > >     * textmodes/tex-mode.el (latex-mode): Remove % from 
> paragraph-separate
> > >     so that M-q can fill comments.
> >
> > It looks like this commit was mistaken: the problem it introduces is
> > too serious.  Please revert it if you get to it before I do,
> 
> Done.





bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 07 May 2010 11:24:04 GMT) Full text and rfc822 format available.

bug unarchived. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Mon, 23 Aug 2010 22:30:03 GMT) Full text and rfc822 format available.

Forcibly Merged 5821 6862 6889. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Mon, 23 Aug 2010 22:30:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 21 Sep 2010 11:24:04 GMT) Full text and rfc822 format available.

bug unarchived. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Sat, 06 Nov 2010 18:32:02 GMT) Full text and rfc822 format available.

bug Marked as fixed in versions 23.2. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Sat, 06 Nov 2010 18:32:02 GMT) Full text and rfc822 format available.

Forcibly Merged 5821 6862 6889 7341. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Sat, 06 Nov 2010 18:32:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 05 Dec 2010 12:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 14 years and 200 days ago.

Previous Next


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