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: Mon, 02 Feb 2015 23:59:15 +0100 Message-ID: <1422917955.17132.0@smtp.gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="=-ttvYlJ4Gs396g1/QEfn1" X-Trace: ger.gmane.org 1422918020 1268 80.91.229.3 (2 Feb 2015 23:00:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 2 Feb 2015 23:00:20 +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:00:20 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 1YIPya-0004vp-Hz for geb-bug-gnu-emacs@m.gmane.org; Tue, 03 Feb 2015 00:00:16 +0100 Original-Received: from localhost ([::1]:57029 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YIPyZ-0001Je-QZ for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Feb 2015 18:00:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34257) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YIPyT-0001HZ-7P for bug-gnu-emacs@gnu.org; Mon, 02 Feb 2015 18:00:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YIPyO-0003ye-6c for bug-gnu-emacs@gnu.org; Mon, 02 Feb 2015 18:00:09 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41315) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YIPyO-0003yK-23 for bug-gnu-emacs@gnu.org; Mon, 02 Feb 2015 18:00:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YIPyN-0000k8-Bv for bug-gnu-emacs@gnu.org; Mon, 02 Feb 2015 18:00:03 -0500 X-Loop: help-debbugs@gnu.org 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:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 19751 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.14229179762776 (code B ref -1); Mon, 02 Feb 2015 23:00:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 2 Feb 2015 22:59:36 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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) 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 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) X-Mailer: geary/0.8.2 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-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:99000 Archived-At: --=-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--