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#15467: CSS-mode gives weird indentation when you put opening bracket on its own line Date: Fri, 04 Oct 2013 17:46:15 -0400 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1380923241 22483 80.91.229.3 (4 Oct 2013 21:47:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 4 Oct 2013 21:47:21 +0000 (UTC) Cc: 15467-done@debbugs.gnu.org To: Paul Pogonyshev Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 04 23:47:21 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VSDDU-0003Sn-Ry for geb-bug-gnu-emacs@m.gmane.org; Fri, 04 Oct 2013 23:47:20 +0200 Original-Received: from localhost ([::1]:49711 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VSDDU-0005tm-IW for geb-bug-gnu-emacs@m.gmane.org; Fri, 04 Oct 2013 17:47:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53039) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VSDDK-0005tI-To for bug-gnu-emacs@gnu.org; Fri, 04 Oct 2013 17:47:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VSDDD-0002fM-33 for bug-gnu-emacs@gnu.org; Fri, 04 Oct 2013 17:47:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46415) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VSDDC-0002fI-W0 for bug-gnu-emacs@gnu.org; Fri, 04 Oct 2013 17:47:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VSDDC-0004um-HF for bug-gnu-emacs@gnu.org; Fri, 04 Oct 2013 17:47:02 -0400 Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Fri, 04 Oct 2013 21:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 15467 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 15467@debbugs.gnu.org, monnier@iro.umontreal.ca, pogonyshev@gmail.com Original-Received: via spool by 15467-done@debbugs.gnu.org id=D15467.138092318118817 (code D ref 15467); Fri, 04 Oct 2013 21:47:01 +0000 Original-Received: (at 15467-done) by debbugs.gnu.org; 4 Oct 2013 21:46:21 +0000 Original-Received: from localhost ([127.0.0.1]:54695 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VSDCV-0004tO-Ss for submit@debbugs.gnu.org; Fri, 04 Oct 2013 17:46:20 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:46088) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VSDCT-0004tE-BD for 15467-done@debbugs.gnu.org; Fri, 04 Oct 2013 17:46:17 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av8EABK/CFFFpY4U/2dsb2JhbABEuzWDWRdzgh4BAQQBViMFCws0EhQYDSSIHgbBLZEKA6R6gV6DEw X-IPAS-Result: Av8EABK/CFFFpY4U/2dsb2JhbABEuzWDWRdzgh4BAQQBViMFCws0EhQYDSSIHgbBLZEKA6R6gV6DEw X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="34790896" Original-Received: from 69-165-142-20.dsl.teksavvy.com (HELO pastel.home) ([69.165.142.20]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 04 Oct 2013 17:42:48 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 870E8604C8; Fri, 4 Oct 2013 17:46:15 -0400 (EDT) In-Reply-To: (Paul Pogonyshev's message of "Thu, 26 Sep 2013 16:23:42 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:78933 Archived-At: > 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)))))