From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Paul Pogonyshev <pogonyshev@gmail.com>
Cc: 15467-done@debbugs.gnu.org
Subject: bug#15467: CSS-mode gives weird indentation when you put opening bracket on its own line
Date: Fri, 04 Oct 2013 17:46:15 -0400 [thread overview]
Message-ID: <jwv8uy8d84p.fsf-monnier+emacsbugs@gnu.org> (raw)
In-Reply-To: <CAG7Bpao1tn8bpBD_2Q8yNLT6Ak9z5EX1JR=78N4GP3btinNqjg@mail.gmail.com> (Paul Pogonyshev's message of "Thu, 26 Sep 2013 16:23:42 +0200")
> For example, if you create a CSS buffer and put
> .xxx
> {
> }
> into it, indentation adds one space before '{'. Confusingly, if you add one
Indeed, thanks. Should be fixed now in the trunk thanks to the
patch below.
Stefan
--- lisp/textmodes/css-mode.el 2013-08-29 21:00:18 +0000
+++ lisp/textmodes/css-mode.el 2013-10-04 21:40:55 +0000
@@ -302,6 +302,7 @@
(pcase (cons kind token)
(`(:elem . basic) css-indent-offset)
(`(:elem . arg) 0)
+ (`(:list-intro . "") t) ;"" stands for BOB (bug#15467).
(`(:before . "{") (if (smie-rule-hanging-p)
(smie-rule-parent 0)))))
next prev parent reply other threads:[~2013-10-04 21:46 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-26 14:23 bug#15467: CSS-mode gives weird indentation when you put opening bracket on its own line Paul Pogonyshev
2013-10-04 21:46 ` Stefan Monnier [this message]
2013-10-07 7:14 ` Paul Pogonyshev
2013-10-07 15:41 ` Stefan Monnier
2013-10-08 7:04 ` Paul Pogonyshev
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=jwv8uy8d84p.fsf-monnier+emacsbugs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=15467-done@debbugs.gnu.org \
--cc=pogonyshev@gmail.com \
/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.