unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#5821: bug in TeX mode
@ 2010-04-02  5:01 Dan Stratila
  2010-04-03 23:46 ` Chong Yidong
  2010-04-06 15:43 ` Chong Yidong
  0 siblings, 2 replies; 6+ messages in thread
From: Dan Stratila @ 2010-04-02  5:01 UTC (permalink / raw)
  To: 5821

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








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

end of thread, other threads:[~2010-04-09  1:56 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-02  5:01 bug#5821: bug in TeX mode Dan Stratila
2010-04-03 23:46 ` Chong Yidong
2010-04-04  0:44   ` Dan Stratila
2010-04-04 14:37   ` Stefan Monnier
2010-04-06 15:43 ` Chong Yidong
2010-04-09  1:56   ` Dan Stratila

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).