From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Darren Embry Newsgroups: gmane.emacs.bugs Subject: bug#20282: css-mode: multiple selectors *sometimes* breaks indentation Date: Wed, 8 Apr 2015 18:58:34 -0400 Message-ID: Reply-To: dse@webonastick.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1136b57481ad9f05133e784a X-Trace: ger.gmane.org 1428560903 26703 80.91.229.3 (9 Apr 2015 06:28:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 9 Apr 2015 06:28:23 +0000 (UTC) To: 20282@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Apr 09 08:28:10 2015 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 1Yg5wg-00078j-6f for geb-bug-gnu-emacs@m.gmane.org; Thu, 09 Apr 2015 08:28:10 +0200 Original-Received: from localhost ([::1]:56346 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yg5wf-0007TP-2H for geb-bug-gnu-emacs@m.gmane.org; Thu, 09 Apr 2015 02:28:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40838) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yg5wb-0007T9-78 for bug-gnu-emacs@gnu.org; Thu, 09 Apr 2015 02:28:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yg5wa-000624-Ao for bug-gnu-emacs@gnu.org; Thu, 09 Apr 2015 02:28:05 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60127) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yg5wa-00061n-7K for bug-gnu-emacs@gnu.org; Thu, 09 Apr 2015 02:28:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Yg5wY-0004fK-LA for bug-gnu-emacs@gnu.org; Thu, 09 Apr 2015 02:28:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Darren Embry Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 09 Apr 2015 06:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 20282 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.142856087017912 (code B ref -1); Thu, 09 Apr 2015 06:28:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 9 Apr 2015 06:27:50 +0000 Original-Received: from localhost ([127.0.0.1]:49903 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yg5wK-0004eo-Bm for submit@debbugs.gnu.org; Thu, 09 Apr 2015 02:27:49 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:52296) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yfyvj-0007Ke-E5 for submit@debbugs.gnu.org; Wed, 08 Apr 2015 18:58:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yfyvd-0001Zz-5P for submit@debbugs.gnu.org; Wed, 08 Apr 2015 18:58:37 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:45144) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yfyvd-0001Zv-2L for submit@debbugs.gnu.org; Wed, 08 Apr 2015 18:58:37 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37570) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yfyvc-0005Re-8d for bug-gnu-emacs@gnu.org; Wed, 08 Apr 2015 18:58:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yfyvb-0001Zg-Al for bug-gnu-emacs@gnu.org; Wed, 08 Apr 2015 18:58:36 -0400 Original-Received: from mail-vn0-x22f.google.com ([2607:f8b0:400c:c0f::22f]:40832) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yfyvb-0001ZZ-6e for bug-gnu-emacs@gnu.org; Wed, 08 Apr 2015 18:58:35 -0400 Original-Received: by vnbg62 with SMTP id g62so17912555vnb.7 for ; Wed, 08 Apr 2015 15:58:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:date:message-id:subject:from:to :content-type; bh=0qKZmwgE3ytZHAHnemyXzeyIG7a3cJrzljEMQaC7ezc=; b=Z8Wp2tP4/2DiBXeiDxX1Ks5RuoeJHdK9YtT00q+a4ktqQ1HtQHSkqPaEHxRgpz+xAs qLwMVK8qSwbRdBOdhFqHk1elFMJMI9zI1FPNrGxdSKy3s9BbWKwKYJbQDOQCKw8OVA2B 3KSRAgQdWMLPT5NnXRa6GAGu1wZhFAmkwMB6gvd/ZHSEouXq6vh8qDK1UkaQrxJ5YSKS pM7iGxdzbwymBTLWNmn1XGt1R7qiMKAhEaZ53kBvVTjz9aQXChecML4//vDR5qYfeMWC IZWeba2tbo0aZook+1WLkvOgHfWPwcdyBhqK0fCFVFjSFzOl66EPZMbjh//csB0ScQi2 xb3A== X-Received: by 10.52.61.137 with SMTP id p9mr20962847vdr.68.1428533914216; Wed, 08 Apr 2015 15:58:34 -0700 (PDT) Original-Received: by 10.52.94.171 with HTTP; Wed, 8 Apr 2015 15:58:34 -0700 (PDT) X-Google-Sender-Auth: HyoQ4L6ElgkL0mTWBo9fFpw8Zeg X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Mailman-Approved-At: Thu, 09 Apr 2015 02:27:45 -0400 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:101323 Archived-At: --001a1136b57481ad9f05133e784a Content-Type: text/plain; charset=UTF-8 The following rather simple example of a chunk of CSS: a, b:hover { color: black; } gets indented incorrectly. The second line gets indented seven spaces instead of four; the last gets three spaces instead of zero. In this more complex example, the closing bracket lines up with the 'j': a.b:c,d.e:f,g[h]:i,j[k]:l,.m.n:o,.p.q:r,.s[t]:u,.v[w]:x { background-color: white; } This example, however, is indented just fine: a, b:hover, c { color: black; } I've tried this in emacs-24.4 and emacs-24.5-rc3 on Linux, as well as 24.4 on the Windows platform. Regards, Darren --001a1136b57481ad9f05133e784a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
The following rather simple example of a chunk of CSS:
=C2=A0 =C2=A0 a, b= :hover {
=C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0color: black;
=C2=A0 =C2=A0 =C2=A0 =C2=A0}
gets indented incorrectly.=C2=A0 The second line gets indented = seven spaces instead of four; the last gets three spaces instead of zero.

In this more complex example, the closing bracket l= ines up with the 'j':

=C2=A0 =C2=A0 a.b:c,d.e:f,g[h]:i,j[k]:l,.m.n:o,.p.q:r,= .s[t]:u,.v[w]:x {
=C2=A0 backgrou= nd-color: white;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0}

This example,= however, is indented just fine:

=C2=A0 =C2=A0 a, b:hover, c {
=C2=A0 =C2=A0 =C2=A0 =C2=A0 color: black;=
=C2=A0 =C2=A0 }

I've tried this in emacs-24.4 and emacs-24.5-rc3 on Linux, as we= ll as 24.4 on the Windows platform.

Regards,
Darren

=
--001a1136b57481ad9f05133e784a--