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#954: indentation in latex-mode in emacs-23 Date: Wed, 24 Sep 2008 16:31:54 -0400 Message-ID: References: <48D88DB3.1090205@gmx.at> <221cda020809230413t42e532c0m24fbf8e700c6c582@mail.gmail.com> <48D8E0E7.1090307@gmx.at> <221cda020809230545o111a51ffje05f4e2fae972876@mail.gmail.com> <48D9F7CB.2010900@gmx.at> Reply-To: Stefan Monnier , 954@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1222289443 31141 80.91.229.12 (24 Sep 2008 20:50:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 24 Sep 2008 20:50:43 +0000 (UTC) Cc: 954@emacsbugs.donarmstrong.com To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 24 22:51:40 2008 connect(): Connection refused 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.50) id 1KibKY-0004Qa-L7 for geb-bug-gnu-emacs@m.gmane.org; Wed, 24 Sep 2008 22:51:26 +0200 Original-Received: from localhost ([127.0.0.1]:36892 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KibJW-000899-F5 for geb-bug-gnu-emacs@m.gmane.org; Wed, 24 Sep 2008 16:50:22 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KibJ9-0007y8-LS for bug-gnu-emacs@gnu.org; Wed, 24 Sep 2008 16:49:59 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KibJ7-0007vt-Rv for bug-gnu-emacs@gnu.org; Wed, 24 Sep 2008 16:49:58 -0400 Original-Received: from [199.232.76.173] (port=60125 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KibJ7-0007vm-Ir for bug-gnu-emacs@gnu.org; Wed, 24 Sep 2008 16:49:57 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:55785) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KibJ7-0005vb-1Y for bug-gnu-emacs@gnu.org; Wed, 24 Sep 2008 16:49:57 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8OKnswL030671; Wed, 24 Sep 2008 13:49:55 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m8OKe4t3028437; Wed, 24 Sep 2008 13:40:04 -0700 X-Loop: don@donarmstrong.com Resent-From: Stefan Monnier Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Wed, 24 Sep 2008 20:40:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 954 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 954-submit@emacsbugs.donarmstrong.com id=B954.122228833027116 (code B ref 954); Wed, 24 Sep 2008 20:40:04 +0000 Original-Received: (at 954) by emacsbugs.donarmstrong.com; 24 Sep 2008 20:32:10 +0000 Original-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" Original-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 Original-Received: by pastel.home (Postfix, from userid 20848) id C535A847E; Wed, 24 Sep 2008 16:31:54 -0400 (EDT) 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) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Wed, 24 Sep 2008 16:49:58 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list 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:20738 Archived-At: >> > 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".