all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Robin Templeton <robin@terpri.org>
Cc: emacs-devel@gnu.org
Subject: Re: Fwd: Requesting review for change to lisp/textmodes/sgml-mode.el
Date: Mon, 09 Mar 2015 21:32:38 -0400	[thread overview]
Message-ID: <jwv8uf5abck.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <87h9ttbtq6.fsf@panthera.terpri.org> (Robin Templeton's message of "Mon, 09 Mar 2015 20:07:29 -0400")

>> Another way to look at it is that the attribute name is indented
>> 2 spaces with respect to the element name, so things are working
>> as designed.

That's indeed the way I look at it.

> That makes sense, but it seems inconsistent with the behavior of other
> major modes in similar contexts. For example, Lisp indentation is
> relative to the enclosing delimiter rather than the operator name.

It's a philosophical question.  I tend to look at XML's <...> as
a parenthesis-like thingy that encloses a sub-language.

> Another option would be to adopt nxml's solution and add a new variable
> for the attribute indentation relative to the tag delimiter, which has
> the additional advantage of allowing attribute and element indentation
> to be customized independently. It could default to `(1+
> sgml-basic-offset)' to avoid changing the existing behavior.

Yes, that's the main issue: the two are distinct cases that should
have separate indentation rules.
I think we all violently agree on this.


        Stefan



  reply	other threads:[~2015-03-10  1:32 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-25 10:35 Requesting review for change to lisp/textmodes/sgml-mode.el Jackson Hamilton
2015-03-08  0:49 ` Fwd: " Jackson Hamilton
2015-03-08  8:10   ` Thien-Thi Nguyen
2015-03-08 15:53     ` Eli Zaretskii
2015-03-10  0:07     ` Robin Templeton
2015-03-10  1:32       ` Stefan Monnier [this message]
2015-03-21 20:20   ` bug#20161: " Jackson Hamilton
2015-03-22 14:03     ` Stefan Monnier
2015-03-22 15:39       ` Jackson Hamilton
2015-03-23  2:02         ` 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=jwv8uf5abck.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=robin@terpri.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.