From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Simen =?UTF-8?Q?Heggest=C3=B8yl?= Newsgroups: gmane.emacs.bugs Subject: bug#19751: 25.0.50; scss-mode: interpolated variable filling Date: Tue, 03 Feb 2015 00:09:50 +0100 Message-ID: <1422918590.18752.0@smtp.gmail.com> References: <1422917955.17132.0@smtp.gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="=-U2xdk8h1IwURphnEa5C0" X-Trace: ger.gmane.org 1422918672 11079 80.91.229.3 (2 Feb 2015 23:11:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 2 Feb 2015 23:11:12 +0000 (UTC) To: 19751@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Feb 03 00:11:11 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 1YIQ99-0002LL-8H for geb-bug-gnu-emacs@m.gmane.org; Tue, 03 Feb 2015 00:11:11 +0100 Original-Received: from localhost ([::1]:57048 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YIQ98-0002nq-AJ for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Feb 2015 18:11:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35686) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YIQ94-0002mj-HQ for bug-gnu-emacs@gnu.org; Mon, 02 Feb 2015 18:11:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YIQ91-000754-6v for bug-gnu-emacs@gnu.org; Mon, 02 Feb 2015 18:11:06 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41320) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YIQ91-00074z-2P for bug-gnu-emacs@gnu.org; Mon, 02 Feb 2015 18:11:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YIQ90-00011B-Fo for bug-gnu-emacs@gnu.org; Mon, 02 Feb 2015 18:11:02 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: <1422917955.17132.0@smtp.gmail.com> Resent-From: Simen =?UTF-8?Q?Heggest=C3=B8yl?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 02 Feb 2015 23:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19751 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 19751-submit@debbugs.gnu.org id=B19751.14229186023831 (code B ref 19751); Mon, 02 Feb 2015 23:11:02 +0000 Original-Received: (at 19751) by debbugs.gnu.org; 2 Feb 2015 23:10:02 +0000 Original-Received: from localhost ([127.0.0.1]:60793 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YIQ81-0000zW-4i for submit@debbugs.gnu.org; Mon, 02 Feb 2015 18:10:01 -0500 Original-Received: from mail-wi0-f175.google.com ([209.85.212.175]:53138) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YIQ7z-0000zH-1A for 19751@debbugs.gnu.org; Mon, 02 Feb 2015 18:09:59 -0500 Original-Received: by mail-wi0-f175.google.com with SMTP id fb4so20448938wid.2 for <19751@debbugs.gnu.org>; Mon, 02 Feb 2015 15:09:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:subject:to:message-id:mime-version:content-type; bh=FNCOG9cnzKuasHCHnu9NAwYL7+iTeaTahgHMhf6uiOs=; b=E7YRJIeioMFJa2ohiVkF0nIQVbxDRKKeiq/5Ge3bQz00KsMdxeymZAdVq1J97dqbzW MHe9bzo7hHBX/taT1sOAtqjn17uMlpDSevcgk9j+wfaRfAY9lhhB6ERS32DIvOeEDcpc Ftua1fq/o4uSsed8IFYnnwoqjCRRIWRr6D23k0CEVTqZmPRTIpuhjkEWBrBD/wcgBsDU lvHfqMbUnw8AqEHFi+v3hxmV1R9ZVXS2xUG0zlJZaMrUY8Z4FOWePcGgjwp/gtsSDIOl H8uYERJQPI5D0ITEK4TrsUYOrFV2hZnVT+KLh2XE9Fz9qm/S5Ev98iUN2FO4odKtLddy JkBg== X-Received: by 10.194.76.73 with SMTP id i9mr48644409wjw.93.1422918593303; Mon, 02 Feb 2015 15:09:53 -0800 (PST) Original-Received: from [192.168.1.114] (cm-84.215.48.98.getinternet.no. [84.215.48.98]) by mx.google.com with ESMTPSA id uo6sm29898123wjc.49.2015.02.02.15.09.51 for <19751@debbugs.gnu.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 02 Feb 2015 15:09:52 -0800 (PST) X-Mailer: geary/0.8.2 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:99001 Archived-At: --=-U2xdk8h1IwURphnEa5C0 Content-Type: text/plain; charset=utf-8; format=flowed I'm not entirely sure what's going on here, but something along the following lines seems to fix it: diff --git a/lisp/textmodes/css-mode.el b/lisp/textmodes/css-mode.el index c171bd5..7d364d4 100644 --- a/lisp/textmodes/css-mode.el +++ b/lisp/textmodes/css-mode.el @@ -401,11 +401,16 @@ (cond ;; This is a false positive inside a string or comment. ((nth 8 (syntax-ppss)) nil) + ;; This is a false positive when encountering an + ;; interpolated variable. + ((eq (char-before (- (point) 1)) ?#) nil) ((eq (char-before) ?\}) (save-excursion (forward-char -1) (skip-chars-backward " \t") - (unless (bolp) (newline)))) + (when (and (not (bolp)) + (scss-smie--not-interpolation-p)) + (newline)))) (t (while (progn --=-U2xdk8h1IwURphnEa5C0 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
I'm not entirely sure what's going on here, but something along the
following lines seems to fix it:

diff --gi= t a/lisp/textmodes/css-mode.el b/lisp/textmodes/css-mode.el
index= c171bd5..7d364d4 100644
--- a/lisp/textmodes/css-mode.el
+++ b/lisp/textmodes/css-mode.el
@@ -401,11 +401,16 @@
               (cond
&= nbsp;               ;; This is a false p= ositive inside a string or comment.
        &= nbsp;       ((nth 8 (syntax-ppss)) nil)
+   &= nbsp;           ;; This is a false positive when e= ncountering an
+              = ;; interpolated variable.
+           &= nbsp;   ((eq (char-before (- (point) 1)) ?#) nil)
  &nb= sp;             ((eq (char-before) ?\})
=
                 (save-ex= cursion
                &= nbsp;  (forward-char -1)
          =          (skip-chars-backward " \t")
- &= nbsp;                (unless (bolp)= (newline))))
+               =    (when (and (not (bolp))
+        = ;                     (sc= ss-smie--not-interpolation-p))
+         &nbs= p;          (newline))))
    &= nbsp;           (t
      =            (while
    &nb= sp;                (progn
= --=-U2xdk8h1IwURphnEa5C0--