From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 02 17:59:36 2015 Received: (at submit) by debbugs.gnu.org; 2 Feb 2015 22:59:36 +0000 Received: from localhost ([127.0.0.1]:60788 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YIPxv-0000ih-LD for submit@debbugs.gnu.org; Mon, 02 Feb 2015 17:59:36 -0500 Received: from eggs.gnu.org ([208.118.235.92]:60679) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YIPxs-0000iR-Hk for submit@debbugs.gnu.org; Mon, 02 Feb 2015 17:59:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YIPxl-0003hk-Ny for submit@debbugs.gnu.org; Mon, 02 Feb 2015 17:59:27 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:55218) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YIPxl-0003hg-KC for submit@debbugs.gnu.org; Mon, 02 Feb 2015 17:59:25 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34164) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YIPxk-00015C-7K for bug-gnu-emacs@gnu.org; Mon, 02 Feb 2015 17:59:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YIPxf-0003hB-4k for bug-gnu-emacs@gnu.org; Mon, 02 Feb 2015 17:59:24 -0500 Received: from mail-wg0-x230.google.com ([2a00:1450:400c:c00::230]:38126) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YIPxe-0003h6-RH for bug-gnu-emacs@gnu.org; Mon, 02 Feb 2015 17:59:19 -0500 Received: by mail-wg0-f48.google.com with SMTP id x12so41469996wgg.7 for ; Mon, 02 Feb 2015 14:59:17 -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=WUKjdacrLCSCxqSA8pQ/JEHNNpgIlQD92YDJUZ76/wA=; b=aWv6a6rcTlW8yGILFfjLT3L8pFTg5gddVtOLSUlUAzLm4ktxxSq3WjMBPXe7BnjsZc uvjiDYx3zH4r3R6MjfvAjeGRHnuc/4TU1bXqq5+0hINqG0Am82sMvkUgJGPml2wlG+hU lbleWd1JWxseu1rUMGsZUgBc4l1BK+iaHy2MXtFlqDXrTNBIqdu0pTfozs7nuGieZaQ0 4pV9mZsRB946PtZltCQRn7H18ogDBZwNw0mQTxDeOHiYGuVj65VjjiQmxwGZqnWVwxOu dE5L5AoWT8DOpaHEt7PiTc8DIqp15iTByzg3Q1PXuqgz9QQKbJBRNEObnjwv3I8ryEl5 eBCA== X-Received: by 10.194.236.200 with SMTP id uw8mr49071727wjc.10.1422917957892; Mon, 02 Feb 2015 14:59:17 -0800 (PST) Received: from [192.168.1.114] (cm-84.215.48.98.getinternet.no. [84.215.48.98]) by mx.google.com with ESMTPSA id bo3sm29865521wjb.44.2015.02.02.14.59.16 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 02 Feb 2015 14:59:17 -0800 (PST) Date: Mon, 02 Feb 2015 23:59:15 +0100 From: Simen =?iso-8859-1?q?Heggest=F8yl?= Subject: 25.0.50; scss-mode: interpolated variable filling To: bug-gnu-emacs@gnu.org Message-Id: <1422917955.17132.0@smtp.gmail.com> X-Mailer: geary/0.8.2 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=-ttvYlJ4Gs396g1/QEfn1" 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-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) --=-ttvYlJ4Gs396g1/QEfn1 Content-Type: text/plain; charset=utf-8; format=flowed The following Sassy CSS block is filled weirdly by SCSS mode when pressing `M-q' at the beginning of the block: @media #{$medium} { background: #f0f0f0; } Is filled to: @media #{ $medium } { background: #f0f0f0; } As a more complicated example, the following: @mixin firefox-message($selector) { body.firefox #{$selector}:before { content: "Hi, Firefox users!"; } } Is filled to: @mixin firefox-message($selector) { body.firefox #{ $selector }:before { content: "Hi, Firefox users!"; } } There seems to be an error with how SCSS mode does filling when interpolated variables are involved, misinterpreting it as an ordinary block. In GNU Emacs 25.0.50.9 (x86_64-unknown-linux-gnu, GTK+ Version 3.14.5) of 2015-02-02 on x240 Repository revision: c10828bd8520db83cc06a2ad5de6f8a1ad74b83c Windowing system distributor `The X.Org Foundation', version 11.0.11602901 System Description: Debian GNU/Linux 8.0 (jessie) Configured using: `configure --without-makeinfo' Configured features: XPM JPEG TIFF GIF PNG SOUND DBUS GSETTINGS NOTIFY LIBXML2 FREETYPE XFT ZLIB Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message dired format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils time-date tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind gfilenotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) Memory information: ((conses 16 75204 8420) (symbols 48 17974 0) (miscs 40 50 149) (strings 32 10960 3858) (string-bytes 1 296445) (vectors 16 9363) (vector-slots 8 386521 15780) (floats 8 70 103) (intervals 56 176 1) (buffers 976 11) (heap 1024 32725 968)) --=-ttvYlJ4Gs396g1/QEfn1 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
The following Sassy CSS block is filled weirdly by SCSS mode when
pressing `M-q' at the beginning of the block:

@media #{$medium} {
    background: #f0f0f0;
}

Is filled to:

@media = #{
    $medium
} {
    ba= ckground: #f0f0f0;
}

As a more complicat= ed example, the following:

@mixin firefox-message(= $selector) {
    body.firefox #{$selector}:before {
        content: "Hi, Firefox users!";
    }
}

Is filled to:

@mixin firefox-message($selector) {
  &nbs= p; body.firefox #{
        $selector
    }:before {
        content: "= Hi, Firefox users!";
    }
}

There seems to be an error with how SCSS mode does filling when
interpolated variables are involved, misinterpreting it as an ordin= ary
block.


In GNU Emacs 2= 5.0.50.9 (x86_64-unknown-linux-gnu, GTK+ Version 3.14.5)
 of= 2015-02-02 on x240
Repository revision: c10828bd8520db83cc06a2ad= 5de6f8a1ad74b83c
Windowing system distributor `The X.Org Foundati= on', version 11.0.11602901
System Description: Debian GNU/Linux 8.0 (jessie)=

Configured using:
 `configure --wi= thout-makeinfo'

Configured features:
XPM= JPEG TIFF GIF PNG SOUND DBUS GSETTINGS NOTIFY LIBXML2 FREETYPE XFT
ZLIB

Important settings:
  value= of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  = global-eldoc-mode: t
  electric-indent-mode: t
&nb= sp; mouse-wheel-mode: t
  tool-bar-mode: t
  = menu-bar-mode: t
  file-name-shadow-mode: t
 = global-font-lock-mode: t
  font-lock-mode: t
&nbs= p; blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t

Recent message= s:
For information about GNU Emacs and the GNU system, type C-h C= -a.

Load-path shadows:
None found.
=

Features:
(shadow sort gnus-util mail-extr em= acsbug message dired format-spec
rfc822 mml easymenu mml-sec mm-d= ecode mm-bodies mm-encode mail-parse
rfc2231 mailabbrev gmm-utils= mailheader sendmail rfc2047 rfc2045
ietf-drums mm-util help-fns = mail-prsvr mail-utils time-date tooltip
eldoc electric uniquify e= diff-hook vc-hooks lisp-float-type mwheel x-win
x-dnd tool-bar dn= d fontset image regexp-opt fringe tabulated-list
newcomment elisp= -mode lisp-mode prog-mode register page menu-bar
rfn-eshadow time= r select scroll-bar mouse jit-lock font-lock syntax
facemenu font= -core frame cham georgian utf-8-lang misc-lang vietnamese
tibetan= thai tai-viet lao korean japanese hebrew greek romanian slovak
c= zech european ethiopic indian cyrillic chinese case-table epa-hook
jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice
loaddefs button faces cus-face macroexp files text-properties overlay
sha1 md5 base64 format env code-pages mule custom widget
h= ashtable-print-readable backquote make-network-process dbusbind
g= filenotify dynamic-setting system-font-setting font-render-setting
move-toolbar gtk x-toolkit x multi-tty emacs)

Me= mory information:
((conses 16 75204 8420)
 (symbol= s 48 17974 0)
 (miscs 40 50 149)
 (strings 32= 10960 3858)
 (string-bytes 1 296445)
 (vecto= rs 16 9363)
 (vector-slots 8 386521 15780)
 (= floats 8 70 103)
 (intervals 56 176 1)
 (buff= ers 976 11)
 (heap 1024 32725 968))
= --=-ttvYlJ4Gs396g1/QEfn1-- From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 02 18:10:02 2015 Received: (at 19751) by debbugs.gnu.org; 2 Feb 2015 23:10:02 +0000 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 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 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) 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) Date: Tue, 03 Feb 2015 00:09:50 +0100 From: Simen =?iso-8859-1?q?Heggest=F8yl?= Subject: bug#19751: 25.0.50; scss-mode: interpolated variable filling To: 19751@debbugs.gnu.org Message-Id: <1422918590.18752.0@smtp.gmail.com> X-Mailer: geary/0.8.2 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=-U2xdk8h1IwURphnEa5C0" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 19751 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --=-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-- From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 05 15:32:47 2015 Received: (at 19751-done) by debbugs.gnu.org; 5 Feb 2015 20:32:47 +0000 Received: from localhost ([127.0.0.1]:35073 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YJT6U-000401-SW for submit@debbugs.gnu.org; Thu, 05 Feb 2015 15:32:47 -0500 Received: from chene.dit.umontreal.ca ([132.204.246.20]:53195) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YJT6R-0003zp-06 for 19751-done@debbugs.gnu.org; Thu, 05 Feb 2015 15:32:43 -0500 Received: from pastel.home (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id t15KWeiU017357; Thu, 5 Feb 2015 15:32:41 -0500 Received: by pastel.home (Postfix, from userid 20848) id 9E03EF5F; Thu, 5 Feb 2015 15:32:40 -0500 (EST) From: Stefan Monnier To: Simen =?windows-1252?Q?Heggest=F8yl?= Subject: Re: bug#19751: 25.0.50; scss-mode: interpolated variable filling Message-ID: References: <1422917955.17132.0@smtp.gmail.com> <1422918590.18752.0@smtp.gmail.com> Date: Thu, 05 Feb 2015 15:32:40 -0500 In-Reply-To: <1422918590.18752.0@smtp.gmail.com> ("Simen =?windows-1252?Q?Heggest=F8yl=22's?= message of "Tue, 03 Feb 2015 00:09:50 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-NAI-Spam-Flag: NO X-NAI-Spam-Level: * X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 1.2 X-NAI-Spam-Rules: 4 Rules triggered AFF_LOTTO_1_W_AFF_LOTTO_2=0.5, AFF_LOTTO_2=0.5, AFF_LOTTO_1=0.2, RV5208=0 X-NAI-Spam-Version: 2.3.0.9393 : core <5208> : inlines <2040> : streams <1385325> : uri <1847371> X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: 19751-done Cc: 19751-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.3 (-) > I'm not entirely sure what's going on here, but something along the > following lines seems to fix it: Thanks, looks good, installed, Stefan PS: You're little by little getting to the point where we won't be able to accept your patches without copyright paperwork. In preparation for that, I suggest you start the process right away. If that's OK with you, then please fill the form below and email it as instructed to the FSF so they can send you the relevant paperwork. Please email the following information to assign@gnu.org, and we will send you the assignment form for your past and future changes. Please use your full legal name (in ASCII characters) as the subject line of the message. ---------------------------------------------------------------------- REQUEST: SEND FORM FOR PAST AND FUTURE CHANGES [What is the name of the program or package you're contributing to?] Emacs [Did you copy any files or text written by someone else in these changes? Even if that material is free software, we need to know about it.] [Do you have an employer who might have a basis to claim to own your changes? Do you attend a school which might make such a claim?] [For the copyright registration, what country are you a citizen of?] [What year were you born?] [Please write your email address here.] [Please write your postal address here.] [Which files have you changed so far, and which new files have you written so far?] From unknown Fri Jun 20 20:10:50 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 06 Mar 2015 12:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator