GNU bug report logs -
#20161
Fwd: Requesting review for change to lisp/textmodes/sgml-mode.el
Previous Next
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
No one on emacs-devel seemed to notice, so I'm pushing this on to the bug
mailing list. If someone could please review this I'd appreciate it.
---------- Forwarded message ----------
From: Jackson Hamilton <jackson <at> jacksonrayhamilton.com>
Date: Sat, Mar 7, 2015 at 4:49 PM
Subject: Fwd: Requesting review for change to lisp/textmodes/sgml-mode.el
To: emacs-devel <emacs-devel <at> gnu.org>
Hey guys, still hoping to get this reviewed. I wouldn't want to merge
something in that wasn't given the "A-OK."
---------- Forwarded message ----------
From: Jackson Hamilton <jackson <at> jacksonrayhamilton.com>
Date: Wed, Feb 25, 2015 at 2:35 AM
Subject: Requesting review for change to lisp/textmodes/sgml-mode.el
To: emacs-devel <emacs-devel <at> gnu.org>
Hello comrades,
I made an adjustment (fix?) to the way SGML attributes are indented.
Previously, if one wrote a form like the following:
<element attribute="value">
He could break the attribute onto a new line and it would be indented like
so:
<element
attribute="value">
But sgml-basic-offset defaults to 2, not 3, so it doesn't make much sense
that
the attribute is indented by 3 spaces.
And if I (setq sgml-basic-offset 4), now my attributes are indented by 5
spaces. Personally I do not expect this behavior, I expect the indentation
to
match.
Perhaps it could be argued that the extra space helps to improve
readability;
maybe so, but it still seems to contradict the offset value. In teams where
many
people use editors that insert multiples of N spaces or tabs, this +1
indentation strategy feels rather alienating. I think it would be better to
stick to a multiple of the specified offset when an attribute is sitting on
its
own line.
Hence the attached patch to remove the +1 indentation behavior.
Thanks for reviewing,
Jackson
[Message part 2 (text/html, inline)]
[0001-lisp-textmodes-sgml-mode.el-sgml-calculate-indent-Fi.patch (text/x-patch, attachment)]
This bug report was last modified 9 years and 87 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.