all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Glenn Morris <rgm@gnu.org>
Cc: 954@emacsbugs.donarmstrong.com
Subject: bug#954: indentation in latex-mode in emacs-23
Date: Wed, 24 Sep 2008 16:31:54 -0400	[thread overview]
Message-ID: <jwvmyhx1e7z.fsf-monnier+emacsbugreports@gnu.org> (raw)
In-Reply-To: <t33ajpmqvz.fsf@fencepost.gnu.org> (Glenn Morris's message of "Wed, 24 Sep 2008 12:48:32 -0400")

>> > 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".






  parent reply	other threads:[~2008-09-24 20:31 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-23  6:33 bug#954: indentation in latex-mode in emacs-23 martin rudalics
2008-09-23 11:13 ` Chirok Han
2008-09-23 12:28   ` martin rudalics
2008-09-23 12:35     ` Leslie Lamport
2008-09-23 12:45     ` Chirok Han
2008-09-24  8:18       ` martin rudalics
2008-09-24 16:48         ` Glenn Morris
2008-09-24 17:01           ` martin rudalics
2008-09-24 20:31           ` Stefan Monnier [this message]
2008-09-25  1:07           ` Chirok Han
  -- strict thread matches above, loose matches on Subject: below --
2008-09-10  7:46 Chirok Han
2008-09-10 16:41 ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvmyhx1e7z.fsf-monnier+emacsbugreports@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=954@emacsbugs.donarmstrong.com \
    --cc=rgm@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.