From unknown Fri Aug 15 20:22:43 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#954 <954@debbugs.gnu.org> To: bug#954 <954@debbugs.gnu.org> Subject: Status: indentation in latex-mode in emacs-23 Reply-To: bug#954 <954@debbugs.gnu.org> Date: Sat, 16 Aug 2025 03:22:43 +0000 retitle 954 indentation in latex-mode in emacs-23 reassign 954 emacs submitter 954 "Chirok Han" severity 954 normal thanks From chirok.han@gmail.com Wed Sep 10 00:46:47 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-5.0 required=4.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 10 Sep 2008 07:46:47 +0000 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8A7khI2021225 for ; Wed, 10 Sep 2008 00:46:45 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KdKPT-0002bG-OS for bug-gnu-emacs@gnu.org; Wed, 10 Sep 2008 03:46:43 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KdKPS-0002ap-7q for bug-gnu-emacs@gnu.org; Wed, 10 Sep 2008 03:46:43 -0400 Received: from [199.232.76.173] (port=48037 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KdKPS-0002af-0x for bug-gnu-emacs@gnu.org; Wed, 10 Sep 2008 03:46:42 -0400 Received: from mx20.gnu.org ([199.232.41.8]:41871) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KdKPR-0002NO-FR for bug-gnu-emacs@gnu.org; Wed, 10 Sep 2008 03:46:41 -0400 Received: from ti-out-0910.google.com ([209.85.142.185]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KdKPP-0006FZ-A0 for bug-gnu-emacs@gnu.org; Wed, 10 Sep 2008 03:46:39 -0400 Received: by ti-out-0910.google.com with SMTP id u5so1483181tia.10 for ; Wed, 10 Sep 2008 00:46:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=ffsS1MWa38f6EtzrHwa+yuMrmQJnDy5eb/jIAyqZzmA=; b=CFsG2pbD3DY11HnTcTniFqQ0IYoRE2GDnGAPEvC30DW8i9RbhfKR/krgZbP5sk+LKu mNZ9oBSaxjRyAgyOhOZi9xy2x3EiLTEQCTJkvO8ckpZKzXLBCGWc8K8umXQFFWdy0b1i dX7AakZPnYzDPwllPaNZeSkjo/npaHqUSHOqk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=m7Y7lDZvUQO65Mz9IaunCCb5xZSeBYfp/c8JIRvaBQp1MYe0DpWS9P8MIa5DzMBU0a zJ85x3tS5xbqI4EKN8oe5XaB6mTINCHaPToo6kh0thqzFIEavvl8XmBki4AWMXwL2/oa pJz08F3YLPM/loOsswWFStl3VpoCa2lUfCpKE= Received: by 10.110.26.20 with SMTP id 20mr1154655tiz.20.1221032795919; Wed, 10 Sep 2008 00:46:35 -0700 (PDT) Received: by 10.110.46.16 with HTTP; Wed, 10 Sep 2008 00:46:35 -0700 (PDT) Message-ID: <221cda020809100046i2c319f8apb9fb572831be0080@mail.gmail.com> Date: Wed, 10 Sep 2008 16:46:35 +0900 From: "Chirok Han" To: bug-gnu-emacs@gnu.org Subject: indentation in latex-mode in emacs-23 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-detected-kernel: by mx20.gnu.org: Linux 2.6 (newer, 2) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) Hi I've been using gnu emacs 22 so far (happily) and recently I compiled and installed cvs emacs-23 (updated today: 2008-09-10). I am very happy with this new version. Thank you! I do lots of latex work (and I don't use auctex). Up to emacs 22, the line following \[ is not indented but now in emacs 23, the line after \[ is indent. For example, in emacs 22, `indent-region' gives \[ abc \] but now in emacs 23 it looks like \[ abc \] This may be a new feature, but I would like the old style. Is there any way I can get back the old behavior? I tried to read tex-mode.el but it was too difficult for me. Thank you. ch From monnier@iro.umontreal.ca Wed Sep 10 09:41:25 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-7.4 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, RCVD_IN_DNSWL_LOW autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 10 Sep 2008 16:41:25 +0000 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8AGfLBP017938 for ; Wed, 10 Sep 2008 09:41:23 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KdSkr-0003vn-EX for bug-gnu-emacs@gnu.org; Wed, 10 Sep 2008 12:41:21 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KdSkp-0003u7-5E for bug-gnu-emacs@gnu.org; Wed, 10 Sep 2008 12:41:20 -0400 Received: from [199.232.76.173] (port=41692 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KdSko-0003te-PQ for bug-gnu-emacs@gnu.org; Wed, 10 Sep 2008 12:41:18 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.182]:19058) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KdSkn-00014Y-Dp for bug-gnu-emacs@gnu.org; Wed, 10 Sep 2008 12:41:17 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AhwGAHuVx0hFxIqP/2dsb2JhbACBZbBwCIYpXQMIfIEG X-IronPort-AV: E=Sophos;i="4.32,373,1217822400"; d="scan'208";a="26616748" Received: from 69-196-138-143.dsl.teksavvy.com (HELO pastel.home) ([69.196.138.143]) by ironport2-out.teksavvy.com with ESMTP; 10 Sep 2008 12:41:15 -0400 Received: by pastel.home (Postfix, from userid 20848) id 986C185E5; Wed, 10 Sep 2008 12:41:15 -0400 (EDT) From: Stefan Monnier To: Chirok Han Cc: 954@debbugs.gnu.org, bug-gnu-emacs@gnu.org Subject: Re: bug#954: indentation in latex-mode in emacs-23 Message-ID: References: <221cda020809100046i2c319f8apb9fb572831be0080@mail.gmail.com> Date: Wed, 10 Sep 2008 12:41:15 -0400 In-Reply-To: <221cda020809100046i2c319f8apb9fb572831be0080@mail.gmail.com> (Chirok Han's message of "Wed, 10 Sep 2008 16:46:35 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. > but now in emacs 23 it looks like > \[ > abc > \] This lookds like a bug in my indentation code which fails to take the \ into account. I'll take a look at it, Stefan From rudalics@gmx.at Mon Sep 22 23:36:18 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-6.6 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 954) by emacsbugs.donarmstrong.com; 23 Sep 2008 06:36:18 +0000 Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with SMTP id m8N6aEjO012404 for <954@emacsbugs.donarmstrong.com>; Mon, 22 Sep 2008 23:36:16 -0700 Received: (qmail invoked by alias); 23 Sep 2008 06:36:09 -0000 Received: from 62-47-58-101.adsl.highway.telekom.at (EHLO [62.47.58.101]) [62.47.58.101] by mail.gmx.net (mp006) with SMTP; 23 Sep 2008 08:36:09 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX18fipIWzCgfMrq0j9LW21TKsF6f4K0jcN1+TZ9ynJ e409XT7v8i+qBJ Message-ID: <48D88DB3.1090205@gmx.at> Date: Tue, 23 Sep 2008 08:33:23 +0200 From: martin rudalics User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: 954@debbugs.gnu.org CC: Chirok Han , Stefan Monnier Subject: Re: bug#954: indentation in latex-mode in emacs-23 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.82 > but now in emacs 23 it looks like > > \[ > abc > \] I've checked in a fix for this. Please retry. Thanks for reporting, martin. From chirok.han@gmail.com Tue Sep 23 04:13:15 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-6.0 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 954) by emacsbugs.donarmstrong.com; 23 Sep 2008 11:13:16 +0000 Received: from ti-out-0910.google.com (ti-out-0910.google.com [209.85.142.187]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8NBDClp017595 for <954@emacsbugs.donarmstrong.com>; Tue, 23 Sep 2008 04:13:13 -0700 Received: by ti-out-0910.google.com with SMTP id b6so1050656tic.1 for <954@emacsbugs.donarmstrong.com>; Tue, 23 Sep 2008 04:13:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=rAr39WW3rstCrm0/ndQIF6iKEnAFGiXsmnq2FVSIItI=; b=AW/XIRFVKtcU5aprk6TnGyQ4nLbJzH+PXKiBVQPq/nJcaV3y4aUWeuk8hUBSkCIH0e OftqlLoHHQDupMXwxEO/b7abaV/geaHRwSZWEBYqUJ3sMJA/dfBE1Ky2hgyDhBs0Z4n0 vp7aLzhm5H+ABPRu1zozk5OvypzKDdmArADbY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=A0/3Tvb5T0OydjyYLIOApJciV2POA+GA/9DCCcmzUQDUF7XqKMdIZduHwtjpXLDi8F aJfB3FlgFfuxBS/GhBJlrSl9ORiFunKLzI3VLHVLPFQVYGxlffVIZ8BG19TYCOadN04p xU9r88t7E+rJYmcIiX5kb6vBoLUEATEw57eEI= Received: by 10.110.11.1 with SMTP id 1mr6902592tik.53.1222168391600; Tue, 23 Sep 2008 04:13:11 -0700 (PDT) Received: by 10.110.46.16 with HTTP; Tue, 23 Sep 2008 04:13:11 -0700 (PDT) Message-ID: <221cda020809230413t42e532c0m24fbf8e700c6c582@mail.gmail.com> Date: Tue, 23 Sep 2008 20:13:11 +0900 From: "Chirok Han" To: "martin rudalics" Subject: Re: bug#954: indentation in latex-mode in emacs-23 Cc: 954@debbugs.gnu.org, "Stefan Monnier" In-Reply-To: <48D88DB3.1090205@gmx.at> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <48D88DB3.1090205@gmx.at> Thanks. It is now \[ abc \] I would like \[ abc \] but if that's what you intend. Thanks again. Chirok On Tue, Sep 23, 2008 at 3:33 PM, martin rudalics wrote: >> but now in emacs 23 it looks like >> >> \[ >> abc >> \] > > I've checked in a fix for this. Please retry. > > Thanks for reporting, martin. > From rudalics@gmx.at Tue Sep 23 05:31:19 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-6.6 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 954) by emacsbugs.donarmstrong.com; 23 Sep 2008 12:31:19 +0000 Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with SMTP id m8NCVFUv004751 for <954@emacsbugs.donarmstrong.com>; Tue, 23 Sep 2008 05:31:17 -0700 Received: (qmail invoked by alias); 23 Sep 2008 12:31:09 -0000 Received: from 62-47-48-90.adsl.highway.telekom.at (EHLO [62.47.48.90]) [62.47.48.90] by mail.gmx.net (mp007) with SMTP; 23 Sep 2008 14:31:09 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1/Y5/YRkCzYD4dJstb9MJVKrCcbRM3m0ruVse0rme nzdRz/qFNMlAGz Message-ID: <48D8E0E7.1090307@gmx.at> Date: Tue, 23 Sep 2008 14:28:23 +0200 From: martin rudalics User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: Chirok Han CC: 954@debbugs.gnu.org, Stefan Monnier , Leslie Lamport Subject: Re: bug#954: indentation in latex-mode in emacs-23 References: <48D88DB3.1090205@gmx.at> <221cda020809230413t42e532c0m24fbf8e700c6c582@mail.gmail.com> In-Reply-To: <221cda020809230413t42e532c0m24fbf8e700c6c582@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.67 > It is now > \[ > abc > \] > > I would like > \[ > abc > \] > but if that's what you intend. This part of the Emacs 23 behavior is due to that change: 2007-09-21 Glenn Morris (latex-forward-sexp-1, latex-backward-sexp-1): Doc fix. Handle escaped parens. If you convinced us that \[ abc \] is more correct LaTeX style than \[ abc \] we might reconsider this. Leslie, what's the preferred way to indent this? martin From notlamport@microsoft.com Tue Sep 23 05:37:10 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-15.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER, RCVD_IN_DNSWL_HI autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 954) by emacsbugs.donarmstrong.com; 23 Sep 2008 12:37:10 +0000 Received: from smtp.microsoft.com (mail2.microsoft.com [131.107.115.215]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8NCb7Bh005932 for <954@emacsbugs.donarmstrong.com>; Tue, 23 Sep 2008 05:37:08 -0700 Received: from tk1-exhub-c102.redmond.corp.microsoft.com (157.54.46.186) by TK5-EXGWY-E802.partners.extranet.microsoft.com (10.251.56.168) with Microsoft SMTP Server (TLS) id 8.1.291.1; Tue, 23 Sep 2008 05:37:02 -0700 Received: from NA-EXMSG-C109.redmond.corp.microsoft.com ([157.54.62.155]) by tk1-exhub-c102.redmond.corp.microsoft.com ([157.54.46.186]) with mapi; Tue, 23 Sep 2008 05:37:01 -0700 From: Leslie Lamport To: martin rudalics , Chirok Han CC: "954@debbugs.gnu.org" <954@debbugs.gnu.org>, Stefan Monnier Date: Tue, 23 Sep 2008 05:35:59 -0700 Subject: RE: bug#954: indentation in latex-mode in emacs-23 Thread-Topic: bug#954: indentation in latex-mode in emacs-23 Thread-Index: AckdeFGZDcNGObOaSJKnCd2XveIWBgAAFX/Q Message-ID: <9507E8040A9F9540925AFEA309B8E7FE2B2F336E95@NA-EXMSG-C109.redmond.corp.microsoft.com> References: <48D88DB3.1090205@gmx.at> <221cda020809230413t42e532c0m24fbf8e700c6c582@mail.gmail.com> <48D8E0E7.1090307@gmx.at> In-Reply-To: <48D8E0E7.1090307@gmx.at> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Martin, I have no opinion on how a LaTeX input file should be formatted. Leslie -----Original Message----- From: martin rudalics [mailto:rudalics@gmx.at] Sent: Tuesday, September 23, 2008 5:28 AM To: Chirok Han Cc: 954@debbugs.gnu.org; Stefan Monnier; Leslie Lamport Subject: Re: bug#954: indentation in latex-mode in emacs-23 > It is now > \[ > abc > \] > > I would like > \[ > abc > \] > but if that's what you intend. This part of the Emacs 23 behavior is due to that change: 2007-09-21 Glenn Morris (latex-forward-sexp-1, latex-backward-sexp-1): Doc fix. Handle escaped parens. If you convinced us that \[ abc \] is more correct LaTeX style than \[ abc \] we might reconsider this. Leslie, what's the preferred way to indent this? martin From chirok.han@gmail.com Tue Sep 23 05:45:46 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-6.5 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 954) by emacsbugs.donarmstrong.com; 23 Sep 2008 12:45:46 +0000 Received: from ti-out-0910.google.com (ti-out-0910.google.com [209.85.142.187]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8NCjgQ5008295 for <954@emacsbugs.donarmstrong.com>; Tue, 23 Sep 2008 05:45:44 -0700 Received: by ti-out-0910.google.com with SMTP id b6so1072779tic.1 for <954@emacsbugs.donarmstrong.com>; Tue, 23 Sep 2008 05:45:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=rFyyJjaRMRUstTMYBQ0VD0M4qEIOapka8Q2+T1ZTMe0=; b=UVCpjGqgmC4iYSQ/amyvrWe4nSFmLLtqMh55uDAg4XWyfcW+qpTTKIuArkhf/rE2Ui F79krhYK7BijlG1ny4P3n99O8DV/nStGEUS+Bmhpd6eGhNWYZbZC7uxEmKDOyzPIvp7M FU2EPGG1c/0lXwMta0777Q8WncOgdlst1Lctk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=nqZlUo6UIujtRpZGH/4TrLBsJQ1RhxfyL8C12U1dnd4J325ddedtKGxNmjttpUc8ih s5TTkATGiQKtp0a8F2OwJtSMn1IrT0fp7x/uC8syZbW7kuOqEmACXjy190eVNSxCTZTU ELghUs9gILpI/ZpWjre1UjW9+xuWufOO/H5R0= Received: by 10.110.11.1 with SMTP id 1mr7026144tik.59.1222173941959; Tue, 23 Sep 2008 05:45:41 -0700 (PDT) Received: by 10.110.46.16 with HTTP; Tue, 23 Sep 2008 05:45:41 -0700 (PDT) Message-ID: <221cda020809230545o111a51ffje05f4e2fae972876@mail.gmail.com> Date: Tue, 23 Sep 2008 21:45:41 +0900 From: "Chirok Han" To: "martin rudalics" Subject: Re: bug#954: indentation in latex-mode in emacs-23 Cc: 954@debbugs.gnu.org, "Stefan Monnier" , "Leslie Lamport" In-Reply-To: <48D8E0E7.1090307@gmx.at> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <48D88DB3.1090205@gmx.at> <221cda020809230413t42e532c0m24fbf8e700c6c582@mail.gmail.com> <48D8E0E7.1090307@gmx.at> Hi Martin, It's not something I can convince you about. And I don't think there is any correct or incorrect formatting style. It's just from my 10 years experience. As I get older, it gets harder to accommodate new things no matter how small they are.... Many thanks for your efforts. I like latex on emacs very much. Chirok On Tue, Sep 23, 2008 at 9:28 PM, martin rudalics wrote: >> It is now >> \[ >> abc >> \] >> >> I would like >> \[ >> abc >> \] >> but if that's what you intend. > > This part of the Emacs 23 behavior is due to that change: > > 2007-09-21 Glenn Morris > > (latex-forward-sexp-1, latex-backward-sexp-1): Doc fix. > Handle escaped parens. > > If you convinced us that > > \[ > abc > \] > > is more correct LaTeX style than > > \[ > abc > \] > > we might reconsider this. > > Leslie, what's the preferred way to indent this? > > martin > From rudalics@gmx.at Wed Sep 24 01:23:21 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-5.9 required=4.0 tests=AWL,BAYES_00,FVGT_m_MULTI_ODD, HAS_BUG_NUMBER,MDO_CABLE_TV3,MIXEDBDN,MURPHY_DRUGS_REL8 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 954) by emacsbugs.donarmstrong.com; 24 Sep 2008 08:23:22 +0000 Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with SMTP id m8O8NG9G007983 for <954@emacsbugs.donarmstrong.com>; Wed, 24 Sep 2008 01:23:17 -0700 Received: (qmail invoked by alias); 24 Sep 2008 08:23:10 -0000 Received: from 62-47-41-49.adsl.highway.telekom.at (EHLO [62.47.41.49]) [62.47.41.49] by mail.gmx.net (mp025) with SMTP; 24 Sep 2008 10:23:10 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX18leL5LJfAlyKDmrksqchaHM7+VVTMu7LyU0TNJyv bxW7VesdNBHoQp Message-ID: <48D9F7CB.2010900@gmx.at> Date: Wed, 24 Sep 2008 10:18:19 +0200 From: martin rudalics User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: Chirok Han CC: 954@debbugs.gnu.org, Stefan Monnier Subject: Re: bug#954: indentation in latex-mode in emacs-23 References: <48D88DB3.1090205@gmx.at> <221cda020809230413t42e532c0m24fbf8e700c6c582@mail.gmail.com> <48D8E0E7.1090307@gmx.at> <221cda020809230545o111a51ffje05f4e2fae972876@mail.gmail.com> In-Reply-To: <221cda020809230545o111a51ffje05f4e2fae972876@mail.gmail.com> Content-Type: multipart/mixed; boundary="------------020701080501060803000000" X-Y-GMX-Trusted: 0 X-FuHaFi: 0.8,0.49 This is a multi-part message in MIME format. --------------020701080501060803000000 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit > It's not something I can convince you about. And I don't think there > is any correct or incorrect formatting style. It's just from my 10 > years experience. As I get older, it gets harder to accommodate new > things no matter how small they are.... ... sounds convincing. What about the attached patch? martin --------------020701080501060803000000 Content-Type: text/plain; name="954.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="954.diff" *** textmodes/tex-mode.el.~1.218.~ 2008-09-23 10:17:14.531250000 +0200 --- textmodes/tex-mode.el 2008-09-24 09:57:17.203125000 +0200 *************** *** 1482,1487 **** --- 1482,1489 ---- (push-mark) (goto-char spot))) + (defvar latex-handle-escaped-parens t) + ;; Don't think this one actually _needs_ (for the purposes of ;; tex-mode) to handle escaped parens. (defun latex-backward-sexp-1 () *************** *** 1489,1499 **** (let ((pos (point)) (forward-sexp-function)) (backward-sexp 1) ! (cond ((looking-at "\\\\\\(begin\\>\\|[[({]\\)") (signal 'scan-error (list "Containing expression ends prematurely" (point) (prog1 (point) (goto-char pos))))) ! ((looking-at "\\\\\\([])}]\\)") (tex-last-unended-eparen (match-string 1))) ((eq (char-after) ?{) (let ((newpos (point))) --- 1491,1505 ---- (let ((pos (point)) (forward-sexp-function)) (backward-sexp 1) ! (cond ((looking-at ! (if latex-handle-escaped-parens ! "\\\\\\(begin\\>\\|[[({]\\)" ! "\\\\begin\\>")) (signal 'scan-error (list "Containing expression ends prematurely" (point) (prog1 (point) (goto-char pos))))) ! ((and latex-handle-escaped-parens ! (looking-at "\\\\\\([])}]\\)")) (tex-last-unended-eparen (match-string 1))) ((eq (char-after) ?{) (let ((newpos (point))) *************** *** 1528,1539 **** (tex-next-unmatched-end)) ;; A better way to handle this, \( .. \) etc, is probably to ;; temporarily change the syntax of the \ in \( to punctuation. ! ((looking-back "\\\\[])}]") (signal 'scan-error (list "Containing expression ends prematurely" (- (point) 2) (prog1 (point) (goto-char pos))))) ! ((looking-back "\\\\\\([({[]\\)") (tex-next-unmatched-eparen (match-string 1))) (t (goto-char newpos)))))) --- 1534,1547 ---- (tex-next-unmatched-end)) ;; A better way to handle this, \( .. \) etc, is probably to ;; temporarily change the syntax of the \ in \( to punctuation. ! ((and latex-handle-escaped-parens ! (looking-back "\\\\[])}]")) (signal 'scan-error (list "Containing expression ends prematurely" (- (point) 2) (prog1 (point) (goto-char pos))))) ! ((and latex-handle-escaped-parens ! (looking-back "\\\\\\([({[]\\)")) (tex-next-unmatched-eparen (match-string 1))) (t (goto-char newpos)))))) *************** *** 2568,2670 **** (indent-line-to indent) (save-excursion (indent-line-to indent))))))) (defun latex-find-indent (&optional virtual) "Find the proper indentation of text after point. VIRTUAL if non-nil indicates that we're only trying to find the indentation in order to determine the indentation of something else. There might be text before point." ! (save-excursion ! (skip-chars-forward " \t") ! (or ! ;; Stick the first line at column 0. ! (and (= (point-min) (line-beginning-position)) 0) ! ;; Trust the current indentation, if such info is applicable. ! (and virtual (save-excursion (skip-chars-backward " \t&") (bolp)) ! (current-column)) ! ;; Stick verbatim environments to the left margin. ! (and (looking-at "\\\\\\(begin\\|end\\) *{\\([^\n}]+\\)") ! (member (match-string 2) tex-verbatim-environments) ! 0) ! ;; Put leading close-paren where the matching open paren would be. ! (let (escaped) ! (and (or (eq (latex-syntax-after) ?\)) ! ;; Try to handle escaped close parens but keep original ! ;; position if it doesn't work out. ! (setq escaped (looking-at "\\\\\\([])}]\\)"))) ! (ignore-errors ! (save-excursion ! (when escaped ! (goto-char (match-beginning 1))) ! (latex-skip-close-parens) (latex-backward-sexp-1) ! (latex-find-indent 'virtual))))) ! ;; Default (maybe an argument) ! (let ((pos (point)) ! ;; Outdent \item if necessary. ! (indent (if (looking-at tex-indent-item-re) (- tex-indent-item) 0)) ! up-list-pos) ! ;; Find the previous point which determines our current indentation. ! (condition-case err ! (progn ! (latex-backward-sexp-1) ! (while (> (current-column) (current-indentation)) ! (latex-backward-sexp-1))) ! (scan-error ! (setq up-list-pos (nth 2 err)))) ! (cond ! ((= (point-min) pos) 0) ; We're really just indenting the first line. ! ((integerp up-list-pos) ! ;; Have to indent relative to the open-paren. ! (goto-char up-list-pos) ! (if (and (not tex-indent-allhanging) ! (save-excursion ! ;; Make sure we're an argument to a macro and ! ;; that the macro is at the beginning of a line. ! (condition-case nil ! (progn ! (while (eq (char-syntax (char-after)) ?\() ! (forward-sexp -1)) ! (and (eq (char-syntax (char-after)) ?/) ! (progn (skip-chars-backward " \t&") ! (bolp)))) ! (scan-error nil))) ! (> pos (progn (latex-down-list) ! (forward-comment (point-max)) ! (point)))) ! ;; Align with the first element after the open-paren. ! (current-column) ! ;; We're the first element after a hanging brace. (goto-char up-list-pos) ! (+ (if (and (looking-at "\\\\begin *{\\([^\n}]+\\)") ! (member (match-string 1) ! latex-noindent-environments)) ! 0 tex-indent-basic) ! indent (latex-find-indent 'virtual)))) ! ;; We're now at the "beginning" of a line. ! ((not (and (not virtual) (eq (char-after) ?\\))) ! ;; Nothing particular here: just keep the same indentation. ! (+ indent (current-column))) ! ;; We're now looking at a macro call. ! ((looking-at tex-indent-item-re) ! ;; Indenting relative to an item, have to re-add the outdenting. ! (+ indent (current-column) tex-indent-item)) ! (t ! (let ((col (current-column))) ! (if (or (not (eq (char-syntax (or (char-after pos) ?\s)) ?\()) ! ;; Can't be an arg if there's an empty line inbetween. ! (save-excursion (re-search-forward "^[ \t]*$" pos t))) ! ;; If the first char was not an open-paren, there's ! ;; a risk that this is really not an argument to the ! ;; macro at all. ! (+ indent col) ! (forward-sexp 1) ! (if (< (line-end-position) ! (save-excursion (forward-comment (point-max)) ! (point))) ! ;; we're indenting the first argument. ! (min (current-column) (+ tex-indent-arg col)) ! (skip-syntax-forward " ") ! (current-column)))))))))) ;;; DocTeX support (defun doctex-font-lock-^^A () --- 2576,2690 ---- (indent-line-to indent) (save-excursion (indent-line-to indent))))))) + (defcustom latex-indent-within-escaped-parens nil + "Non-nil means add extra indent to text within escaped parens. + When this is non-nil, text within matching pairs of escaped + parens is indented at the column following the open paren. The + default value does not add any extra indent thus providing the + behavior of Emacs 22 and earlier." + :type 'boolean + :group 'tex + :version "23.1") + (defun latex-find-indent (&optional virtual) "Find the proper indentation of text after point. VIRTUAL if non-nil indicates that we're only trying to find the indentation in order to determine the indentation of something else. There might be text before point." ! (let ((latex-handle-escaped-parens latex-indent-within-escaped-parens)) ! (save-excursion ! (skip-chars-forward " \t") ! (or ! ;; Stick the first line at column 0. ! (and (= (point-min) (line-beginning-position)) 0) ! ;; Trust the current indentation, if such info is applicable. ! (and virtual (save-excursion (skip-chars-backward " \t&") (bolp)) ! (current-column)) ! ;; Stick verbatim environments to the left margin. ! (and (looking-at "\\\\\\(begin\\|end\\) *{\\([^\n}]+\\)") ! (member (match-string 2) tex-verbatim-environments) ! 0) ! ;; Put leading close-paren where the matching open paren would be. ! (let (escaped) ! (and (or (eq (latex-syntax-after) ?\)) ! ;; Try to handle escaped close parens but keep ! ;; original position if it doesn't work out. ! (and latex-handle-escaped-parens ! (setq escaped (looking-at "\\\\\\([])}]\\)")))) ! (ignore-errors ! (save-excursion ! (when escaped ! (goto-char (match-beginning 1))) ! (latex-skip-close-parens) ! (latex-backward-sexp-1) ! (latex-find-indent 'virtual))))) ! ;; Default (maybe an argument) ! (let ((pos (point)) ! ;; Outdent \item if necessary. ! (indent (if (looking-at tex-indent-item-re) (- tex-indent-item) 0)) ! up-list-pos) ! ;; Find the previous point which determines our current indentation. ! (condition-case err ! (progn (latex-backward-sexp-1) ! (while (> (current-column) (current-indentation)) ! (latex-backward-sexp-1))) ! (scan-error ! (setq up-list-pos (nth 2 err)))) ! (cond ! ((= (point-min) pos) 0) ; We're really just indenting the first line. ! ((integerp up-list-pos) ! ;; Have to indent relative to the open-paren. (goto-char up-list-pos) ! (if (and (not tex-indent-allhanging) ! (save-excursion ! ;; Make sure we're an argument to a macro and ! ;; that the macro is at the beginning of a line. ! (condition-case nil ! (progn ! (while (eq (char-syntax (char-after)) ?\() ! (forward-sexp -1)) ! (and (eq (char-syntax (char-after)) ?/) ! (progn (skip-chars-backward " \t&") ! (bolp)))) ! (scan-error nil))) ! (> pos (progn (latex-down-list) ! (forward-comment (point-max)) ! (point)))) ! ;; Align with the first element after the open-paren. ! (current-column) ! ;; We're the first element after a hanging brace. ! (goto-char up-list-pos) ! (+ (if (and (looking-at "\\\\begin *{\\([^\n}]+\\)") ! (member (match-string 1) ! latex-noindent-environments)) ! 0 tex-indent-basic) ! indent (latex-find-indent 'virtual)))) ! ;; We're now at the "beginning" of a line. ! ((not (and (not virtual) (eq (char-after) ?\\))) ! ;; Nothing particular here: just keep the same indentation. ! (+ indent (current-column))) ! ;; We're now looking at a macro call. ! ((looking-at tex-indent-item-re) ! ;; Indenting relative to an item, have to re-add the outdenting. ! (+ indent (current-column) tex-indent-item)) ! (t ! (let ((col (current-column))) ! (if (or (not (eq (char-syntax (or (char-after pos) ?\s)) ?\()) ! ;; Can't be an arg if there's an empty line inbetween. ! (save-excursion (re-search-forward "^[ \t]*$" pos t))) ! ;; If the first char was not an open-paren, there's ! ;; a risk that this is really not an argument to the ! ;; macro at all. ! (+ indent col) ! (forward-sexp 1) ! (if (< (line-end-position) ! (save-excursion (forward-comment (point-max)) ! (point))) ! ;; we're indenting the first argument. ! (min (current-column) (+ tex-indent-arg col)) ! (skip-syntax-forward " ") ! (current-column))))))))))) ;;; DocTeX support (defun doctex-font-lock-^^A () --------------020701080501060803000000-- From rgm@gnu.org Wed Sep 24 09:50:47 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-12.1 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, MURPHY_DRUGS_REL8,RCVD_IN_DNSWL_MED,X_DEBBUGS_NO_ACK autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 954) by emacsbugs.donarmstrong.com; 24 Sep 2008 16:50:47 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8OGod2J004303 for <954@emacsbugs.donarmstrong.com>; Wed, 24 Sep 2008 09:50:40 -0700 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1KiXXU-0006hN-LO; Wed, 24 Sep 2008 12:48:32 -0400 From: Glenn Morris To: martin rudalics Cc: 954@debbugs.gnu.org, Chirok Han Subject: Re: bug#954: indentation in latex-mode in emacs-23 References: <48D88DB3.1090205@gmx.at> <221cda020809230413t42e532c0m24fbf8e700c6c582@mail.gmail.com> <48D8E0E7.1090307@gmx.at> <221cda020809230545o111a51ffje05f4e2fae972876@mail.gmail.com> <48D9F7CB.2010900@gmx.at> X-Spook: $400 million in gold bullion espionage AVIP IRA Marxist X-Ran: )pJBKrX~qB]k,6Gnxxf~HkB-|iF)LqTCApX (martin rudalics's message of "Wed, 24 Sep 2008 10:18:19 +0200") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii martin rudalics wrote: > > It's not something I can convince you about. And I don't think there > > is any correct or incorrect formatting style. It's just from my 10 > > years experience. As I get older, it gets harder to accommodate new > > things no matter how small they are.... > > ... sounds convincing. What about the attached patch? Sorry to disagree, but "change bad" is not a convincing argument to me. I prefer the current form because I think that \begin{math} a = b \end{math} and \( a = b \) should be formatted the same. A comment in the original bug that motivated this change seems more convincing to me: http://lists.gnu.org/archive/html/bug-gnu-emacs/2007-09/msg00045.html The correct solution would require that \(, \), \[, and \] are treated the same as \begin{math}, \end{math}, \begin{displaymath}, and \end{displaymath}. (The latter are defined in terms of the former in latex.ltx.) But I have to admit that: i) I use AUCTeX; and ii) I don't use \( \), so take all that with a large grain of salt. :) So please just check that whatever change is installed does not bring back the original tex-validate-region problem: http://lists.gnu.org/archive/html/bug-gnu-emacs/2007-09/msg00038.html From rudalics@gmx.at Wed Sep 24 10:04:39 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-6.7 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 954) by emacsbugs.donarmstrong.com; 24 Sep 2008 17:04:39 +0000 Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with SMTP id m8OH4Y75006715 for <954@emacsbugs.donarmstrong.com>; Wed, 24 Sep 2008 10:04:36 -0700 Received: (qmail invoked by alias); 24 Sep 2008 17:04:28 -0000 Received: from 62-47-36-80.adsl.highway.telekom.at (EHLO [62.47.36.80]) [62.47.36.80] by mail.gmx.net (mp054) with SMTP; 24 Sep 2008 19:04:28 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1+sstl7qxqsyovDGYjZhljdDIph9bDFaB9z2+kJ2n vL1f5NIyzt/v0X Message-ID: <48DA7275.40508@gmx.at> Date: Wed, 24 Sep 2008 19:01:41 +0200 From: martin rudalics User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: Glenn Morris CC: 954@debbugs.gnu.org, Chirok Han Subject: Re: bug#954: indentation in latex-mode in emacs-23 References: <48D88DB3.1090205@gmx.at> <221cda020809230413t42e532c0m24fbf8e700c6c582@mail.gmail.com> <48D8E0E7.1090307@gmx.at> <221cda020809230545o111a51ffje05f4e2fae972876@mail.gmail.com> <48D9F7CB.2010900@gmx.at> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.65 > I prefer the current form because I think that > > \begin{math} > a = b > \end{math} > > and > > \( > a = b > \) > > should be formatted the same. I think so too. On the other hand, indenting habits are persistent. And, according to Leslie, there doesn't seem to exist a convention for indentation of LaTeX source. > A comment in the original bug that > motivated this change seems more convincing to me: > > http://lists.gnu.org/archive/html/bug-gnu-emacs/2007-09/msg00045.html > > The correct solution would require that \(, \), \[, and \] are > treated the same as \begin{math}, \end{math}, \begin{displaymath}, > and \end{displaymath}. (The latter are defined in terms of the > former in latex.ltx.) > > But I have to admit that: i) I use AUCTeX; and ii) I don't use \( \), > so take all that with a large grain of salt. :) I don't know - how does AUCTeX indent this? > So please just check that whatever change is installed does not bring > back the original tex-validate-region problem: > > http://lists.gnu.org/archive/html/bug-gnu-emacs/2007-09/msg00038.html Sure. I strongly hope that `tex-validate-region' doesn't care about indentation. martin From monnier@iro.umontreal.ca Wed Sep 24 13:32:10 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-5.2 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, MURPHY_DRUGS_REL8 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 954) by emacsbugs.donarmstrong.com; 24 Sep 2008 20:32:10 +0000 Received: from ironport2-out.teksavvy.com (ironport2-out.pppoe.ca [206.248.154.182]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8OKW776027110 for <954@emacsbugs.donarmstrong.com>; Wed, 24 Sep 2008 13:32:08 -0700 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqYEANtA2kjO+KDT/2dsb2JhbACBXrwigWWBAw X-IronPort-AV: E=Sophos;i="4.33,303,1220241600"; d="scan'208";a="27466665" Received: from 206-248-160-211.dsl.teksavvy.com (HELO pastel.home) ([206.248.160.211]) by ironport2-out.teksavvy.com with ESMTP; 24 Sep 2008 16:31:55 -0400 Received: by pastel.home (Postfix, from userid 20848) id C535A847E; Wed, 24 Sep 2008 16:31:54 -0400 (EDT) From: Stefan Monnier To: Glenn Morris Cc: 954@debbugs.gnu.org, martin rudalics Subject: Re: bug#954: indentation in latex-mode in emacs-23 Message-ID: References: <48D88DB3.1090205@gmx.at> <221cda020809230413t42e532c0m24fbf8e700c6c582@mail.gmail.com> <48D8E0E7.1090307@gmx.at> <221cda020809230545o111a51ffje05f4e2fae972876@mail.gmail.com> <48D9F7CB.2010900@gmx.at> Date: Wed, 24 Sep 2008 16:31:54 -0400 In-Reply-To: (Glenn Morris's message of "Wed, 24 Sep 2008 12:48:32 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii >> > It's not something I can convince you about. And I don't think there >> > is any correct or incorrect formatting style. It's just from my 10 >> > years experience. As I get older, it gets harder to accommodate new >> > things no matter how small they are.... >> >> ... sounds convincing. What about the attached patch? > Sorry to disagree, but "change bad" is not a convincing argument to me. > I prefer the current form because I think that > \begin{math} > a = b > \end{math} > and > \( > a = b > \) > should be formatted the same. A comment in the original bug that I don't think there's a right answer. But at least if the above two alternative forms indent differently, that makes it possible for the user to choose the indentation (indirectly) by choosing which form to use. So I'd argue that the two should *not* for indented identically. Stefan PS: The indentation in tex-mode (for which I largely plead guilty) usually indents a good bit more than what I've seen used in most LaTeX files. I tend to think of LaTeX as a programming language, and most of what I write is LaTeX is about programming languages, so I like to indent it more than people who think of it as "text with markup". From chirok.han@gmail.com Wed Sep 24 18:07:10 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-6.7 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, MURPHY_DRUGS_REL8 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 954) by emacsbugs.donarmstrong.com; 25 Sep 2008 01:07:10 +0000 Received: from ti-out-0910.google.com (ti-out-0910.google.com [209.85.142.187]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8P1769n031826 for <954@emacsbugs.donarmstrong.com>; Wed, 24 Sep 2008 18:07:07 -0700 Received: by ti-out-0910.google.com with SMTP id b6so64613tic.1 for <954@emacsbugs.donarmstrong.com>; Wed, 24 Sep 2008 18:07:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=YdknZ7LQv6/zJP67pvh3mh5b7czDAqYeRZFZXHQ8zj0=; b=K/ZXc57v/GmoOnkeF3nxjsYT3S4r9X/fg0Za5d6cFlkDDy00nHJKZZUM8YlwOUXJCI KSiCZHDts/HTvZ0LEP81BJ9plzvNyBYOoQ0C2EOgUbRao0suO9TO+TZaDWuWmbh42ins Yh39ylYq44wV+MjfItKlgRqlCSSN8OvPz9DPM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=Q94PVKblGcWIlIaZDyQ6szcRxzmvkOAeRU+TBKe+kblWZgNrRmzrz0Xo39SpCJyrUk XPsyA0j4YD2pmdOlfnTM/ZaVTqN8Q6CreazAOrFARIsRstLq8iZVTwlD9STKwD/pnv/g jVR9w5a1DLblF13wFImaJo/1JDAAsvNkPMKhg= Received: by 10.110.70.17 with SMTP id s17mr10544120tia.27.1222304825222; Wed, 24 Sep 2008 18:07:05 -0700 (PDT) Received: by 10.110.46.16 with HTTP; Wed, 24 Sep 2008 18:07:05 -0700 (PDT) Message-ID: <221cda020809241807k911db86tb3e42a0bec0cb154@mail.gmail.com> Date: Thu, 25 Sep 2008 10:07:05 +0900 From: "Chirok Han" To: "Glenn Morris" Subject: Re: bug#954: indentation in latex-mode in emacs-23 Cc: "martin rudalics" , 954@debbugs.gnu.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <48D88DB3.1090205@gmx.at> <221cda020809230413t42e532c0m24fbf8e700c6c582@mail.gmail.com> <48D8E0E7.1090307@gmx.at> <221cda020809230545o111a51ffje05f4e2fae972876@mail.gmail.com> <48D9F7CB.2010900@gmx.at> Hi Glenn and Martin, I have no objections to Glenn's argument. And also many thanks to Martin; I can now figure out which part to modify for customization.... :) Chirok PS. Just one correction. I think Glenn meant \[ abc \] instead of \( abc \) On Thu, Sep 25, 2008 at 1:48 AM, Glenn Morris wrote: > martin rudalics wrote: > >> > It's not something I can convince you about. And I don't think there >> > is any correct or incorrect formatting style. It's just from my 10 >> > years experience. As I get older, it gets harder to accommodate new >> > things no matter how small they are.... >> >> ... sounds convincing. What about the attached patch? > > Sorry to disagree, but "change bad" is not a convincing argument to me. > > I prefer the current form because I think that > > \begin{math} > a = b > \end{math} > > and > > \( > a = b > \) > > should be formatted the same. A comment in the original bug that > motivated this change seems more convincing to me: > > http://lists.gnu.org/archive/html/bug-gnu-emacs/2007-09/msg00045.html > > The correct solution would require that \(, \), \[, and \] are > treated the same as \begin{math}, \end{math}, \begin{displaymath}, > and \end{displaymath}. (The latter are defined in terms of the > former in latex.ltx.) > > But I have to admit that: i) I use AUCTeX; and ii) I don't use \( \), > so take all that with a large grain of salt. :) > > So please just check that whatever change is installed does not bring > back the original tex-validate-region problem: > > http://lists.gnu.org/archive/html/bug-gnu-emacs/2007-09/msg00038.html > From rudalics@gmx.at Tue Sep 30 02:01:14 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-6.7 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 954-done) by emacsbugs.donarmstrong.com; 30 Sep 2008 09:01:14 +0000 Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with SMTP id m8U91Ael026581 for <954-done@emacsbugs.donarmstrong.com>; Tue, 30 Sep 2008 02:01:11 -0700 Received: (qmail invoked by alias); 30 Sep 2008 09:01:04 -0000 Received: from 62-47-51-10.adsl.highway.telekom.at (EHLO [62.47.51.10]) [62.47.51.10] by mail.gmx.net (mp037) with SMTP; 30 Sep 2008 11:01:04 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1+/ms0p7+y/voPpW/1wB2pTjpBL3tmqqSfjXK2kbK zL/DSxcMK3f+DO Message-ID: <48E1EA1F.101@gmx.at> Date: Tue, 30 Sep 2008 10:58:07 +0200 From: martin rudalics User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: 954-done@debbugs.gnu.org CC: Chirok Han Subject: Re: bug#954: indentation in latex-mode in emacs-23 References: <48D88DB3.1090205@gmx.at> In-Reply-To: <48D88DB3.1090205@gmx.at> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.67 Fixed as 2008-09-23 Martin Rudalics * textmodes/tex-mode.el (latex-find-indent): Try to handle escaped close parens correctly. (Bug#954) for indenting the closing paren, and 2008-09-25 Martin Rudalics * textmodes/tex-mode.el (latex-handle-escaped-parens): New variable. (latex-backward-sexp-1, latex-forward-sexp-1): Treat escaped parens specially only if latex-handle-escaped-parens is non-nil. (latex-indent-within-escaped-parens): New option. (latex-find-indent): Bind latex-handle-escaped-parens to latex-indent-within-escaped-parens. Do not treat escaped parens specially when this is nil. (Bug#954) for indenting the text within the parens. Thanks again for reporting, martin. From unknown Fri Aug 15 20:22:43 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: $requester Subject: Internal Control Message-Id: bug archived. Date: Tue, 28 Oct 2008 14:24:03 +0000 User-Agent: Fakemail v42.6.9 # A New Hope # A log time ago, in a galaxy far, far away # something happened. # # Magically this resulted in the following # action being taken, but this fake control # message doesn't tell you why it happened # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator