From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mark Lillibridge Newsgroups: gmane.emacs.bugs Subject: bug#6248: 23.1; justify (esc q) broken in Latex mode Date: Mon, 24 May 2010 17:26:10 -0700 Message-ID: References: Reply-To: mark.lillibridge@hp.com NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1274747269 14884 80.91.229.12 (25 May 2010 00:27:49 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 25 May 2010 00:27:49 +0000 (UTC) Cc: 6248@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue May 25 02:27:47 2010 connect(): No such file or directory 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 1OGhzk-0004Wk-4Y for geb-bug-gnu-emacs@m.gmane.org; Tue, 25 May 2010 02:27:44 +0200 Original-Received: from localhost ([127.0.0.1]:38670 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OGhzj-0004ED-Hl for geb-bug-gnu-emacs@m.gmane.org; Mon, 24 May 2010 20:27:43 -0400 Original-Received: from [140.186.70.92] (port=39833 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OGhzN-00041n-Lw for bug-gnu-emacs@gnu.org; Mon, 24 May 2010 20:27:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OGhzI-0005H1-Pj for bug-gnu-emacs@gnu.org; Mon, 24 May 2010 20:27:21 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38046) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OGhzI-0005Gx-OI for bug-gnu-emacs@gnu.org; Mon, 24 May 2010 20:27:16 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OGhz5-0006EP-Au; Mon, 24 May 2010 20:27:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mark Lillibridge Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 25 May 2010 00:27:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6248 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6248-submit@debbugs.gnu.org id=B6248.127474718323922 (code B ref 6248); Tue, 25 May 2010 00:27:03 +0000 Original-Received: (at 6248) by debbugs.gnu.org; 25 May 2010 00:26:23 +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 1OGhyQ-0006Dn-N6 for submit@debbugs.gnu.org; Mon, 24 May 2010 20:26:22 -0400 Original-Received: from gundega.hpl.hp.com ([192.6.19.190]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OGhyN-0006Dh-VG for 6248@debbugs.gnu.org; Mon, 24 May 2010 20:26:20 -0400 Original-Received: from mailhub-pa1.hpl.hp.com (mailhub-pa1.hpl.hp.com [15.25.115.25]) by gundega.hpl.hp.com (8.14.3/8.14.3/HPL-PA Relay) with ESMTP id o4P0QDsv013916 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 24 May 2010 17:26:13 -0700 Original-Received: from ts-rhel4.hpl.hp.com (ts-rhel4.hpl.hp.com [15.25.118.24]) by mailhub-pa1.hpl.hp.com (8.14.3/8.14.3/HPL-PA Hub) with ESMTP id o4P0QA3L020688; Mon, 24 May 2010 17:26:11 -0700 In-reply-to: (message from Stefan Monnier on Sat, 22 May 2010 21:37:06 -0400) X-Scanned-By: MIMEDefang 2.67 on 15.0.48.190 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 24 May 2010 20:27:03 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:37243 Archived-At: Stefan wrote: > I (Mark) wrote: > > Repeat the steps using instead a suffix of .tex (latex mode); this time > > you instead obtain the following incorrect result: > > > > This is a sample paragraph of text that is long enough that it may > > need to be filled. Here's a second sentence to continue the > > paragraph. And one more sentence for good measure. > > > Justify in latex mode worked correctly in Emacs 21, but does not work > > correctly in 22 or 23. Please fix. > > It's not a bug, it's a feature. The change is because Emacs-21 did not > offer indentation for LaTeX, whereas Emacs>=22 does. > To get the behavior you want, you'll want to set > fill-indent-according-to-mode, e.g. > > (add-hook 'latex-mode-hook > (lambda () > (set (make-local-variable 'fill-indent-according-to-mode) nil))) While that workaround does work, I'm still not convinced this isn't a bug. Why is this broken behavior a feature? - Mark