From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.bugs Subject: bug#54663: 29.0.50; align-current changed behavior Date: Fri, 01 Apr 2022 10:16:22 +0200 Message-ID: <87o81lte09.fsf@gmx.net> References: Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39400"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: henri@henrimenke.de To: 54663@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Apr 01 10:32:39 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1naChz-000A4B-Id for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 01 Apr 2022 10:32:39 +0200 Original-Received: from localhost ([::1]:33322 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1naChy-0004aV-HK for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 01 Apr 2022 04:32:38 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:47206) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1naCSu-0005yF-21 for bug-gnu-emacs@gnu.org; Fri, 01 Apr 2022 04:17:08 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46941) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1naCSs-0006RV-Hn for bug-gnu-emacs@gnu.org; Fri, 01 Apr 2022 04:17:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1naCSs-0000Q2-9z for bug-gnu-emacs@gnu.org; Fri, 01 Apr 2022 04:17:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stephen Berman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 01 Apr 2022 08:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54663 X-GNU-PR-Package: emacs X-Debbugs-Original-To: Henri Menke via "Bug reports for GNU Emacs, the Swiss army knife of text editors" X-Debbugs-Original-Cc: Henri Menke , 54663@debbugs.gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16488010001577 (code B ref -1); Fri, 01 Apr 2022 08:17:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 1 Apr 2022 08:16:40 +0000 Original-Received: from localhost ([127.0.0.1]:40838 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1naCSV-0000PN-V2 for submit@debbugs.gnu.org; Fri, 01 Apr 2022 04:16:40 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:55086) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1naCSU-0000PE-6S for submit@debbugs.gnu.org; Fri, 01 Apr 2022 04:16:38 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:47114) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1naCST-0005fT-6t for bug-gnu-emacs@gnu.org; Fri, 01 Apr 2022 04:16:37 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]:42579) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1naCSR-0006Pg-Hq for bug-gnu-emacs@gnu.org; Fri, 01 Apr 2022 04:16:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1648800983; bh=Pw8OuQTlC5Hes9eOSEILpM228iQdtHUc+RTHoT71lQw=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=bqV9gPNp2tPfogXjodqwWx5h2YQZsXLTThVGMuzN0H5j4rVl4Rwfh3lxs0axGu2JW uXc2RccoRztp1nfm2ATIKBvBY5jnqfwdfmlZvADPcV513Wx0OWxH4gNyJV71u1YDka yQWpbwwv75GdNND+CszXBu6galHzpN0ydJJdxtwQ= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from strobelfs2 ([89.246.36.200]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MoO6M-1oOcEp28JE-00onkR; Fri, 01 Apr 2022 10:16:23 +0200 In-Reply-To: (Henri Menke via's message of "Fri, 01 Apr 2022 02:37:27 +0000") X-Provags-ID: V03:K1:z+6GHIbFD2vhZQ+cXwFguHjKzVwApqLFVR6RB2PXKN41FOiXQcF lYx+yeIv8DRRmU+8KlFH0VDtlaRJFs2+gY1XcbH4LJLPOYxadqDPhEjWamYw3Vv6ThX/2VH Cz4cOppbI17eAN1tkreau8cjVGnLUmZYFFrAsCM7t7U2h7ZaCh8h1Yx3cnQNWr4oibbfpVG RFxXS5SW3NlKa+1lJdeTA== X-UI-Out-Filterresults: notjunk:1;V03:K0:m0IY6dcq//o=:fnw94cJtCyAQ85//gestnQ W4BWl/OJzd0sUYRo3S/i5tkGEDRcghgG4ETdChIO7y/PH4xOEU62FMgmWhSAfrVpiUPq/jkIT GilrnFdwZng5c6FWw258AXaMv3wbm4njBmpt0aSkFufYW9b97wpo7UBw+TZM23U3IQs7CYZ5h bvs35I0lb/F0tzI6QrwI12eXOF2AaqFUJ7jjHyelmI2KPnLLm0St0SZWbfd2wAeemUTWEf4yB 9x4+MykFUVIxocKBbh50VfDiByewCzy6OH5bBZNOerpCkwHaE1TS/DaTS6vJle7WccS2nFWLi 6s41nXc3KuMz6hiXc8d9WKnCBNtK0vvUigX8WACnLtu99gxVy+/uVLB6bv4c/X/hbRaCpLALR XUuKWCe/uhsLHNpIReIu3A5z+EbElTUCapN1lBI/wKbad5aS3QOgIm3Pmkhkv6Uvjglrntw60 /NXDGrEJKGPcPhUKRLneRUBjHy3otEbNWzt+rLWrRBDHNMdr+4I4u1pavCBGoxIzmmZ7sKxEv k15f02NW1QKCXdhFZyZHtCEPt3IVMJ3GlcTxq/LIcbGgZnrSw6S6euFGcBQcd/nYsegL9hY6N IzCbr5iBvClZZHS89+K3klULnY2XZOVXsW/MzjBVSmmS6B2vX7baQ/WFvmgDkhJu4i2aHXzmu rN1YeP0V895C9OD3X6676WpBU1YatIwRhwVGea4vt8vcdF/tTOQ5G3gwMQEx1lrl9CB6xXhKv 0kcwuL0Yd/Ttf4uH+4t+mb6eye/Z2HFq1Co7mrAJdAhGWaPeAfkXri9nIe+o+6eenYr9suUv Received-SPF: pass client-ip=212.227.15.19; envelope-from=stephen.berman@gmx.net; helo=mout.gmx.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:229208 Archived-At: On Fri, 01 Apr 2022 02:37:27 +0000 Henri Menke via "Bug reports for GNU Em= acs, the Swiss army knife of text editors" wrote: > Somewhere between version 27.1 and 29.0.50 the `align' command changed > its behavior. Examples below are executed in emacs -Q. > > Consider the following file `test.tex': > > \documentclass{article} > \begin{document} > \begin{tabular}{lr} > abc def & zzz \\ > foo & bar \\ > \end{tabular} > \end{document} > > Opening this file in 27.1 and using M-x align-current yields the > expected > > \documentclass{article} > \begin{document} > \begin{tabular}{lr} > abc def & zzz \\ > foo & bar \\ > \end{tabular} > \end{document} > > but opening the file in 29.0.50 and using M-x align-current produces > something weird: > > \documentclass{article} > \begin{document} > \begin{tabular}{lr} > abc def & zzz \\ > foo & bar \\ > \end{tabular} > \end{document} > > There is only a single space of indentation and alignment is now at > spaces instead of & and \\ as expected for align-tex-modes. If I debugged this correctly, this behavior change is due to this commit: commit 90266b8356dc5e7e6e437fb37b49970205b01408 Author: Lars Ingebrigtsen Commit: Lars Ingebrigtsen CommitDate: Tue Oct 19 22:39:05 2021 +0200 Tweak how 'align' and 'align-regexp' align text * lisp/align.el (align-rules-list): Change to work without `C-u'. diff --git a/lisp/align.el b/lisp/align.el index 7ced7b7044..2fd6dcda6d 100644 =2D-- a/lisp/align.el +++ b/lisp/align.el @@ -553,8 +553,7 @@ align-rules-list (modes . align-text-modes) (repeat . t) (run-if . ,(lambda () - (and current-prefix-arg - (not (eq '- current-prefix-arg)))))) + (not (eq '- current-prefix-arg))))) Steve Berman