From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Dan Stratila" Newsgroups: gmane.emacs.bugs Subject: bug#5821: bug in TeX mode Date: Fri, 2 Apr 2010 01:01:25 -0400 Organization: Rutgers University Message-ID: <6F64AD27569A4606B3F6B74279B0EDD9@somerville> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1270229515 19434 80.91.229.12 (2 Apr 2010 17:31:55 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 2 Apr 2010 17:31:55 +0000 (UTC) To: 5821@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Apr 02 19:31:50 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Nxkig-000561-RR for geb-bug-gnu-emacs@m.gmane.org; Fri, 02 Apr 2010 19:31:47 +0200 Original-Received: from localhost ([127.0.0.1]:49098 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nxkig-00017Y-74 for geb-bug-gnu-emacs@m.gmane.org; Fri, 02 Apr 2010 13:31:46 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NxZOD-0001A6-C2 for bug-gnu-emacs@gnu.org; Fri, 02 Apr 2010 01:25:53 -0400 Original-Received: from [140.186.70.92] (port=53639 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NxZO9-00019y-HL for bug-gnu-emacs@gnu.org; Fri, 02 Apr 2010 01:25:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NxZO8-0005ir-3a for bug-gnu-emacs@gnu.org; Fri, 02 Apr 2010 01:25:49 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41994) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NxZO8-0005ij-1w for bug-gnu-emacs@gnu.org; Fri, 02 Apr 2010 01:25:48 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1NxZEg-0002jz-Ev; Fri, 02 Apr 2010 01:16:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Dan Stratila" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 02 Apr 2010 05:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 5821 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: Original-Received: via spool by submit@debbugs.gnu.org id=B.127018531010527 (code B ref -1); Fri, 02 Apr 2010 05:16:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 2 Apr 2010 05:15:10 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NxZDp-0002jk-J9 for submit@debbugs.gnu.org; Fri, 02 Apr 2010 01:15:09 -0400 Original-Received: from mx10.gnu.org ([199.232.76.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NxZ1G-0002dW-KU for submit@debbugs.gnu.org; Fri, 02 Apr 2010 01:02:11 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:47904) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NxZ1D-0005gF-4T for submit@debbugs.gnu.org; Fri, 02 Apr 2010 01:02:07 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NxZ1C-0006g1-Nn for bug-gnu-emacs@gnu.org; Fri, 02 Apr 2010 01:02:06 -0400 Original-Received: from [140.186.70.92] (port=59060 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NxZ1A-0006ft-Ur for bug-gnu-emacs@gnu.org; Fri, 02 Apr 2010 01:02:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NxZ19-0003JG-GM for bug-gnu-emacs@gnu.org; Fri, 02 Apr 2010 01:02:04 -0400 Original-Received: from whitelist-out.rutgers.edu ([128.6.68.238]:15535 helo=annwn42.rutgers.edu) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NxZ19-0003J7-E4 for bug-gnu-emacs@gnu.org; Fri, 02 Apr 2010 01:02:03 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by annwn42.rutgers.edu (Postfix) with ESMTP id 1CF99396349 for ; Fri, 2 Apr 2010 01:02:01 -0400 (EDT) X-Virus-Scanned: Virus Scanned by NBCS Original-Received: from annwn42.rutgers.edu ([127.0.0.1]) by localhost (annwn42.rutgers.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vdz-AYqyrlWp for ; Fri, 2 Apr 2010 01:02:01 -0400 (EDT) Original-Received: from somerville (somerville.rutcor.rutgers.edu [128.6.29.122]) by annwn42.rutgers.edu (Postfix) with ESMTPSA id 5EE28396343 for ; Fri, 2 Apr 2010 01:02:00 -0400 (EDT) X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcrSIYml4W8722nZSeWf5qpckF4FNw== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Mailman-Approved-At: Fri, 02 Apr 2010 01:15:09 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 02 Apr 2010 01:16:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Mailman-Approved-At: Fri, 02 Apr 2010 13:31:27 -0400 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:35878 Archived-At: 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