From unknown Fri Sep 05 16:58:29 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6248: 23.1; justify (esc q) broken in Latex mode 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: Sat, 22 May 2010 17:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 6248 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 6248@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Reply-To: mark.lillibridge@hp.com Received: via spool by submit@debbugs.gnu.org id=B.127455072625926 (code B ref -1); Sat, 22 May 2010 17:53:02 +0000 Received: (at submit) by debbugs.gnu.org; 22 May 2010 17:52:06 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OFsrm-0006k7-LT for submit@debbugs.gnu.org; Sat, 22 May 2010 13:52:06 -0400 Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OFsrl-0006jl-TE for submit@debbugs.gnu.org; Sat, 22 May 2010 13:52:06 -0400 Received: from lists.gnu.org ([199.232.76.165]:33669) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1OFsrh-0007w3-AZ for submit@debbugs.gnu.org; Sat, 22 May 2010 13:52:01 -0400 Received: from [140.186.70.92] (port=44194 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OFsrf-00078v-QY for bug-gnu-emacs@gnu.org; Sat, 22 May 2010 13:52:00 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD autolearn=unavailable version=3.3.1 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OFsre-000141-BU for bug-gnu-emacs@gnu.org; Sat, 22 May 2010 13:51:59 -0400 Received: from gundega.hpl.hp.com ([192.6.19.190]:43548) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OFsrd-00013T-UW for bug-gnu-emacs@gnu.org; Sat, 22 May 2010 13:51:58 -0400 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 o4MHpiIi017639 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Sat, 22 May 2010 10:51:44 -0700 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 o4MHpgUN015508; Sat, 22 May 2010 10:51:42 -0700 Date: Sat, 22 May 2010 10:51:42 -0700 Message-Id: From: Mark Lillibridge X-Scanned-By: MIMEDefang 2.67 on 15.0.48.190 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-Spam-Score: -5.3 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.3 (-----) To reproduce the bug, paste the following text into a new .txt file: ==================== cut here ==================== 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. ==================== cut here ==================== If you request justification via esc Q, the paragraph is reformatted to: 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. 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. - Mark From unknown Fri Sep 05 16:58:29 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6248: 23.1; justify (esc q) broken in Latex mode 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: Sun, 23 May 2010 01:38: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: To: mark.lillibridge@hp.com Cc: 6248@debbugs.gnu.org Received: via spool by 6248-submit@debbugs.gnu.org id=B6248.12745786336183 (code B ref 6248); Sun, 23 May 2010 01:38:01 +0000 Received: (at 6248) by debbugs.gnu.org; 23 May 2010 01:37:13 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OG07t-0001bg-5I for submit@debbugs.gnu.org; Sat, 22 May 2010 21:37:13 -0400 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 1OG07r-0001bb-6w for 6248@debbugs.gnu.org; Sat, 22 May 2010 21:37:11 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AhkFAOci+EtFpZMM/2dsb2JhbACRfIwUcrwnhRMEjD8 X-IronPort-AV: E=Sophos;i="4.53,284,1272859200"; d="scan'208";a="64856485" Received: from 69-165-147-12.dsl.teksavvy.com (HELO pastel.home) ([69.165.147.12]) by ironport2-out.pppoe.ca with ESMTP; 22 May 2010 21:37:06 -0400 Received: by pastel.home (Postfix, from userid 20848) id 910738175; Sat, 22 May 2010 21:37:06 -0400 (EDT) From: Stefan Monnier Message-ID: References: Date: Sat, 22 May 2010 21:37:06 -0400 In-Reply-To: (Mark Lillibridge's message of "Sat, 22 May 2010 10:51:42 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -2.1 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.1 (--) > 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))) -- Stefan From unknown Fri Sep 05 16:58:29 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6248: 23.1; justify (esc q) broken in Latex mode 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: To: Stefan Monnier Cc: 6248@debbugs.gnu.org Reply-To: mark.lillibridge@hp.com Received: via spool by 6248-submit@debbugs.gnu.org id=B6248.127474718323922 (code B ref 6248); Tue, 25 May 2010 00:27:03 +0000 Received: (at 6248) by debbugs.gnu.org; 25 May 2010 00:26:23 +0000 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 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 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 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 Date: Mon, 24 May 2010 17:26:10 -0700 Message-Id: From: Mark Lillibridge In-reply-to: (message from Stefan Monnier on Sat, 22 May 2010 21:37:06 -0400) References: X-Scanned-By: MIMEDefang 2.67 on 15.0.48.190 X-Spam-Score: -2.2 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.3 (---) 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 From unknown Fri Sep 05 16:58:29 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6248: 23.1; justify (esc q) broken in Latex mode 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: Tue, 25 May 2010 02:44:02 +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: To: mark.lillibridge@hp.com Cc: 6248@debbugs.gnu.org Received: via spool by 6248-submit@debbugs.gnu.org id=B6248.127475538628016 (code B ref 6248); Tue, 25 May 2010 02:44:02 +0000 Received: (at 6248) by debbugs.gnu.org; 25 May 2010 02:43:06 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OGk6k-0007Hp-C9 for submit@debbugs.gnu.org; Mon, 24 May 2010 22:43:06 -0400 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 1OGk6i-0007HR-Fx for 6248@debbugs.gnu.org; Mon, 24 May 2010 22:43:04 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ai8FAF7V+ktFpZMM/2dsb2JhbACRd4wCcr4ChRMEjD8 X-IronPort-AV: E=Sophos;i="4.53,295,1272859200"; d="scan'208";a="64966409" Received: from 69-165-147-12.dsl.teksavvy.com (HELO pastel.home) ([69.165.147.12]) by ironport2-out.pppoe.ca with ESMTP; 24 May 2010 22:43:00 -0400 Received: by pastel.home (Postfix, from userid 20848) id 8ACA48267; Mon, 24 May 2010 22:43:00 -0400 (EDT) From: Stefan Monnier Message-ID: References: Date: Mon, 24 May 2010 22:43:00 -0400 In-Reply-To: (Mark Lillibridge's message of "Mon, 24 May 2010 17:26:10 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -2.0 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.0 (--) >> > 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? It's a feature if you consider LaTeX as code rather than as text, so you want the text parts of the LaTeX code to be properly indented, like any other. Stefan From unknown Fri Sep 05 16:58:29 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6248: 23.1; justify (esc q) broken in Latex mode 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: Thu, 27 May 2010 02:47:02 +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: To: Stefan Monnier Cc: 6248@debbugs.gnu.org Reply-To: mark.lillibridge@hp.com Received: via spool by 6248-submit@debbugs.gnu.org id=B6248.127492838921394 (code B ref 6248); Thu, 27 May 2010 02:47:02 +0000 Received: (at 6248) by debbugs.gnu.org; 27 May 2010 02:46:29 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OHT76-0005Z1-HP for submit@debbugs.gnu.org; Wed, 26 May 2010 22:46:28 -0400 Received: from madara.hpl.hp.com ([192.6.19.124]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OHT74-0005Yw-Mf for 6248@debbugs.gnu.org; Wed, 26 May 2010 22:46:27 -0400 Received: from mailhub-pa1.hpl.hp.com (mailhub-pa1.hpl.hp.com [15.25.115.25]) by madara.hpl.hp.com (8.14.3/8.14.3/HPL-PA Relay) with ESMTP id o4R2kJEs001212 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 26 May 2010 19:46:20 -0700 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 o4R2kGPZ020055; Wed, 26 May 2010 19:46:17 -0700 Date: Wed, 26 May 2010 19:46:16 -0700 Message-Id: From: Mark Lillibridge In-reply-to: (message from Stefan Monnier on Mon, 24 May 2010 22:43:00 -0400) References: X-Scanned-By: MIMEDefang 2.67 on 15.0.152.124 X-Spam-Score: -4.1 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.3 (-----) > >> 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? > > It's a feature if you consider LaTeX as code rather than as text, so you > want the text parts of the LaTeX code to be properly indented, like > any other. 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. I suspect we're going to agree to disagree on this one; feel free to close this bug. - Mark From unknown Fri Sep 05 16:58:29 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6248: 23.1; justify (esc q) broken in Latex mode 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: To: mark.lillibridge@hp.com Cc: 6248@debbugs.gnu.org Received: via spool by 6248-submit@debbugs.gnu.org id=B6248.127493425923848 (code B ref 6248); Thu, 27 May 2010 04:25:01 +0000 Received: (at 6248) by debbugs.gnu.org; 27 May 2010 04:24:19 +0000 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 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" 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 Received: by pastel.home (Postfix, from userid 20848) id EB22080E5; Thu, 27 May 2010 00:24:11 -0400 (EDT) From: Stefan Monnier Message-ID: References: Date: Thu, 27 May 2010 00:24:11 -0400 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) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -1.2 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.0 (--) > 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 From unknown Fri Sep 05 16:58:29 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6248: 23.1; justify (esc q) broken in Latex mode 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: Thu, 03 Jun 2010 23:03:02 +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: To: Stefan Monnier Cc: 6248@debbugs.gnu.org Reply-To: mark.lillibridge@hp.com Received: via spool by 6248-submit@debbugs.gnu.org id=B6248.127560614329195 (code B ref 6248); Thu, 03 Jun 2010 23:03:02 +0000 Received: (at 6248) by debbugs.gnu.org; 3 Jun 2010 23:02:23 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OKJQc-0007an-1A for submit@debbugs.gnu.org; Thu, 03 Jun 2010 19:02:23 -0400 Received: from gundega.hpl.hp.com ([192.6.19.190]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OKJQZ-0007ab-Uo for 6248@debbugs.gnu.org; Thu, 03 Jun 2010 19:02:20 -0400 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 o53N28Ko021081 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 3 Jun 2010 16:02:09 -0700 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 o53N26Xp023548; Thu, 3 Jun 2010 16:02:07 -0700 Date: Thu, 03 Jun 2010 16:02:06 -0700 Message-Id: From: Mark Lillibridge In-reply-to: (message from Stefan Monnier on Thu, 27 May 2010 00:24:11 -0400) References: X-Scanned-By: MIMEDefang 2.67 on 15.0.48.190 X-Spam-Score: -2.6 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.3 (---) Stefan wrote: > So you're saying that filling should not use indentation when filling > top-level text and that would solve your use case? I think so; in particular, text at the top level not containing latex commands should have the same filling rules as text in text mode. > 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. I think there is something else going on; that paragraph was contained in absolutely no environment. As an experiment, I indented the first line only of the original paragraph by 20 spaces. The result was that the entire paragraph is indented 20 spaces. I can't think of any argument for why this makes sense. - Mark From unknown Fri Sep 05 16:58:29 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6248: 23.1; justify (esc q) broken in Latex mode 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: Fri, 04 Jun 2010 13:42:02 +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: To: mark.lillibridge@hp.com Cc: 6248@debbugs.gnu.org Received: via spool by 6248-submit@debbugs.gnu.org id=B6248.12756588724409 (code B ref 6248); Fri, 04 Jun 2010 13:42:02 +0000 Received: (at 6248) by debbugs.gnu.org; 4 Jun 2010 13:41:12 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OKX95-000194-Vf for submit@debbugs.gnu.org; Fri, 04 Jun 2010 09:41:12 -0400 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 1OKX94-00018y-9e for 6248@debbugs.gnu.org; Fri, 04 Jun 2010 09:41:10 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ao0FAIefCEzO+K4b/2dsb2JhbACSKIwXcr8/hRcEjF8 X-IronPort-AV: E=Sophos;i="4.53,361,1272859200"; d="scan'208";a="67293578" Received: from 206-248-174-27.dsl.teksavvy.com (HELO pastel.home) ([206.248.174.27]) by ironport2-out.pppoe.ca with ESMTP; 04 Jun 2010 09:41:05 -0400 Received: by pastel.home (Postfix, from userid 20848) id D876F81F8; Fri, 4 Jun 2010 09:41:04 -0400 (EDT) From: Stefan Monnier Message-ID: References: Date: Fri, 04 Jun 2010 09:41:04 -0400 In-Reply-To: (Mark Lillibridge's message of "Thu, 03 Jun 2010 16:02:06 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -2.1 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.1 (--) >> 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. > I think there is something else going on; that paragraph was > contained in absolutely no environment. As an experiment, I indented > the first line only of the original paragraph by 20 spaces. The result > was that the entire paragraph is indented 20 spaces. I can't think of > any argument for why this makes sense. Oh, I see what's going on: the filling only reindents the lines after the first (i.e. only the lines that come after a newline inserted by the filling code), and the filling code simply trusts the first line to be properly indented. Stefan From unknown Fri Sep 05 16:58:29 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6248: 23.1; justify (esc q) broken in Latex mode Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 31 Jan 2022 17:05:02 +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: To: Stefan Monnier Cc: 6248@debbugs.gnu.org, mark.lillibridge@hp.com Received: via spool by 6248-submit@debbugs.gnu.org id=B6248.164364867716103 (code B ref 6248); Mon, 31 Jan 2022 17:05:02 +0000 Received: (at 6248) by debbugs.gnu.org; 31 Jan 2022 17:04:37 +0000 Received: from localhost ([127.0.0.1]:40532 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nEa6X-0004Bf-LK for submit@debbugs.gnu.org; Mon, 31 Jan 2022 12:04:37 -0500 Received: from quimby.gnus.org ([95.216.78.240]:48038) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nEa6W-0004BL-0M for 6248@debbugs.gnu.org; Mon, 31 Jan 2022 12:04:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=XP9X1Qf/4xVtiH63a0AGoFEuXLCc5ee4NM+bXTmj6Os=; b=e0Mb9xR7ypxXnLj47xPs60JHWn ErTQSD6c//CH8Cuv2C4WFRxrnoRHKk8cgaXwhbSAIP9xEgBzSI9HmzE+QGYfjOz1ymgWhAlr+7ifM z9vW7Jr31dX10eDYIDfHmDFJ0el2c88eHFobv6PBfb5pSf8ZRz4OOs6g+KBn/X2lvS7U=; Received: from [84.212.220.105] (helo=giant) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nEa6M-0004kL-Ov; Mon, 31 Jan 2022 18:04:29 +0100 From: Lars Ingebrigtsen References: X-Now-Playing: Nina Simone's _Little Girl Blue_: "I Loves You Porgy" Date: Mon, 31 Jan 2022 18:04:25 +0100 In-Reply-To: (Stefan Monnier's message of "Fri, 04 Jun 2010 09:41:04 -0400") Message-ID: <878ruvzvja.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Stefan Monnier writes: > Oh, I see what's going on: the filling only reindents the lines after > the first (i.e. only the lines that come after a newline inserted by the > filling code), and the filling code simply trusts t [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Stefan Monnier writes: > Oh, I see what's going on: the filling only reindents the lines after > the first (i.e. only the lines that come after a newline inserted by the > filling code), and the filling code simply trusts the first line to be > properly indented. (I'm going through old bug reports that unfortunately weren't resolved at the time.) This is generally how the filling code works, so skimming this thread, there doesn't seem to be anything to be fixed on the Emacs side here, and I'm therefore closing this bug report. (If I misunderstood, please respond to the debbugs address and we'll reopen.) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 31 12:04:50 2022 Received: (at control) by debbugs.gnu.org; 31 Jan 2022 17:04:50 +0000 Received: from localhost ([127.0.0.1]:40535 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nEa6j-0004C5-TD for submit@debbugs.gnu.org; Mon, 31 Jan 2022 12:04:50 -0500 Received: from quimby.gnus.org ([95.216.78.240]:48056) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nEa6a-0004BT-31 for control@debbugs.gnu.org; Mon, 31 Jan 2022 12:04:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=JG1k8RZQVGzXW2hFrJIoqgQWyPFcZhBF9HI69N5C14Q=; b=kZ/StQhTx2DcbSvNAxzLnZOWRi V+ITGMnmud+AR2O1O7wHiWKtIOVsFdEpyvyqbW1r4cdWTLTi0pXfCBlUdsGmMILHN8fYattdRj+88 VHghbcrfl5lAfb3G3id38E4MFjuhJ76Yy4o6CipmTJsAtNUrRz3dbLfecJQg0H6zuSoI=; Received: from [84.212.220.105] (helo=giant) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nEa6S-0004kW-4j for control@debbugs.gnu.org; Mon, 31 Jan 2022 18:04:34 +0100 Date: Mon, 31 Jan 2022 18:04:31 +0100 Message-Id: <877dafzvj4.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #6248 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 6248 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) close 6248 quit