From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#6248: 23.1; justify (esc q) broken in Latex mode Date: Thu, 27 May 2010 00:24:11 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1274934453 13792 80.91.229.12 (27 May 2010 04:27:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 27 May 2010 04:27:33 +0000 (UTC) Cc: 6248@debbugs.gnu.org To: mark.lillibridge@hp.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu May 27 06:27:31 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 1OHUgs-0002EK-TV for geb-bug-gnu-emacs@m.gmane.org; Thu, 27 May 2010 06:27:31 +0200 Original-Received: from localhost ([127.0.0.1]:48281 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OHUgs-0007KN-5V for geb-bug-gnu-emacs@m.gmane.org; Thu, 27 May 2010 00:27:30 -0400 Original-Received: from [140.186.70.92] (port=33313 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OHUgm-0007JX-RO for bug-gnu-emacs@gnu.org; Thu, 27 May 2010 00:27:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OHUgl-0003L5-AI for bug-gnu-emacs@gnu.org; Thu, 27 May 2010 00:27:24 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34726) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OHUgl-0003L0-7l for bug-gnu-emacs@gnu.org; Thu, 27 May 2010 00:27:23 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OHUeT-0006Cq-NK; Thu, 27 May 2010 00:25:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 27 May 2010 04:25:01 +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.127493425923848 (code B ref 6248); Thu, 27 May 2010 04:25:01 +0000 Original-Received: (at 6248) by debbugs.gnu.org; 27 May 2010 04:24:19 +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 1OHUdm-0006Cb-1c for submit@debbugs.gnu.org; Thu, 27 May 2010 00:24:18 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OHUdj-0006CW-M3 for 6248@debbugs.gnu.org; Thu, 27 May 2010 00:24:16 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ap0FADeR/UtLd+tS/2dsb2JhbACSGIwNcsAwhRMEjEQ X-IronPort-AV: E=Sophos;i="4.53,308,1272859200"; d="scan'208";a="65566370" Original-Received: from 75-119-235-82.dsl.teksavvy.com (HELO pastel.home) ([75.119.235.82]) by ironport2-out.pppoe.ca with ESMTP; 27 May 2010 00:24:12 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id EB22080E5; Thu, 27 May 2010 00:24:11 -0400 (EDT) In-Reply-To: (Mark Lillibridge's message of "Wed, 26 May 2010 19:46:16 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 27 May 2010 00:25:01 -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:37320 Archived-At: > I tend to view latex as text with intermixed code so I see this > differently. I can see an argument for why text inside of a specific > environment might need to be indented specially, I don't see why that > would apply to top-level text outside of any environment. So you're saying that filling should not use indentation when filling top-level text and that would solve your use case? Hmm... I see some problems with that: - your original message reported that the whole paragraph was indented (apparently by 4 spaces), so either that paragraph was not "outside of any environment" or there is something I don't understand. - that would introduce unexpected difference between otherwise similar circumstances (top-level or not-top-level text). > I suspect we're going to agree to disagree on this one; feel free to > close this bug. Yes, I don't think we can satisfy everyone without someone having to do some extra configuration to express his preference (which is what fill-indent-according-to-mode is for). But I could offer another "way out", based on your example text: the indentation code could potentially be modified to try and recognize paragraph-beginnings and indent them by some extra N spaces, so as to look like: 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. I personally wouldn't like it, so it would still need to be controlled by some configuration variable. And I'm not sure it could be made reliable enough. Stefan