all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Dan Stratila" <dstrat@rci.rutgers.edu>
To: 5821@debbugs.gnu.org
Subject: bug#5821: bug in TeX mode
Date: Fri, 2 Apr 2010 01:01:25 -0400	[thread overview]
Message-ID: <6F64AD27569A4606B3F6B74279B0EDD9@somerville> (raw)

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








             reply	other threads:[~2010-04-02  5:01 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-02  5:01 Dan Stratila [this message]
2010-04-03 23:46 ` bug#5821: bug in TeX mode 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6F64AD27569A4606B3F6B74279B0EDD9@somerville \
    --to=dstrat@rci.rutgers.edu \
    --cc=5821@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.