From unknown Mon Jun 23 23:54:26 2025 X-Loop: help-debbugs@gnu.org Subject: bug#19446: Subject: 25.0.50; [PATCH] scss-mode: comments beginning with "t" Resent-From: Simen =?UTF-8?Q?Heggest=C3=B8yl?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 26 Dec 2014 18:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 19446 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: 19446@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.14196190318556 (code B ref -1); Fri, 26 Dec 2014 18:38:01 +0000 Received: (at submit) by debbugs.gnu.org; 26 Dec 2014 18:37:11 +0000 Received: from localhost ([127.0.0.1]:58397 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y4Zl9-0002Dv-1r for submit@debbugs.gnu.org; Fri, 26 Dec 2014 13:37:11 -0500 Received: from eggs.gnu.org ([208.118.235.92]:40160) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y4Zl6-0002Dn-BF for submit@debbugs.gnu.org; Fri, 26 Dec 2014 13:37:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y4Zl4-0000Im-LD for submit@debbugs.gnu.org; Fri, 26 Dec 2014 13:37:08 -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]:39100) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y4Zl4-0000Ii-HZ for submit@debbugs.gnu.org; Fri, 26 Dec 2014 13:37:06 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41880) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y4Zl3-0001Sw-0A for bug-gnu-emacs@gnu.org; Fri, 26 Dec 2014 13:37:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y4Zkz-0000Hw-MO for bug-gnu-emacs@gnu.org; Fri, 26 Dec 2014 13:37:04 -0500 Received: from mail-wi0-x233.google.com ([2a00:1450:400c:c05::233]:54046) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y4Zkz-0000Hi-CB for bug-gnu-emacs@gnu.org; Fri, 26 Dec 2014 13:37:01 -0500 Received: by mail-wi0-f179.google.com with SMTP id ex7so17566091wid.6 for ; Fri, 26 Dec 2014 10:37:00 -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=V3iqvd/oP4X2oZ2uJKq4HrGb7xsyOFNTWiZ1liRVQWo=; b=nUbRawDhWdilPkjgquOL8dZ0hWY9LSHzOcpPTbQJ3KxkFjQ1dmk+BULDZt5qN/xyct SNx44VSozCEBXq2kyJU/qkl4ZAAIjiUjtb/oobMjU4LgHDC4BYCPPR8o8uetJsWHvUl4 abpRArR+RrRoBfWt7uAaVjiikI3qLfHwG6ZUAG/zO2rRU/py7AFTA26Xlbmq4dnU/L8T VZhvMiBC0Nc+lM5LZm8g30aFspVsHxEXqwxPY2lcYkyExwaYyyP/H20T/1O4ro1sWBFj cdTcrGLYXEqJw+lHzqjuLRGn4I/ILSLxydgIIPIpdl+CFwmaT1tE1FXa1X6nbOdEBcxi vgVA== X-Received: by 10.180.207.211 with SMTP id ly19mr71863366wic.73.1419619020218; Fri, 26 Dec 2014 10:37:00 -0800 (PST) Received: from [192.168.1.10] (79-95-11.connect.netcom.no. [176.11.95.79]) by mx.google.com with ESMTPSA id kn7sm32561346wjc.45.2014.12.26.10.36.58 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 26 Dec 2014 10:36:59 -0800 (PST) Date: Fri, 26 Dec 2014 19:36:51 +0100 From: Simen =?UTF-8?Q?Heggest=C3=B8yl?= Message-Id: <1419619011.16874.0@smtp.gmail.com> X-Mailer: geary/0.8.2 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=-SLUdlR/1VEqvbG+O89tH" 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-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 (----) --=-SLUdlR/1VEqvbG+O89tH Content-Type: text/plain; charset=utf-8; format=flowed In `scss-mode', when comments have "t" or "T" as the first characters in the comment, it is regarded as part of the comment. For instance, if the following comment is filled with `fill-column' set to 20: // This comment begins with the character "T" the following happens: // This comment // Tbegins with the // Tcharacter "T" The following change seems to fix this bug: diff --git a/lisp/textmodes/css-mode.el b/lisp/textmodes/css-mode.el index 1759643..35c5ba9 100644 --- a/lisp/textmodes/css-mode.el +++ b/lisp/textmodes/css-mode.el @@ -459,7 +459,7 @@ "Major mode to edit \"Sassy CSS\" files." (setq-local comment-start "// ") (setq-local comment-end "") - (setq-local comment-start-skip "/[*/]+[ t]*") + (setq-local comment-start-skip "/[*/]+[ \t]*") (setq-local comment-end-skip "[ \t]*\\(?:\n\\|\\*+/\\)") (setq-local font-lock-defaults '(scss-font-lock-keywords nil t))) In GNU Emacs 25.0.50.4 (x86_64-unknown-linux-gnu, GTK+ Version 3.14.5) of 2014-12-24 on x240 Repository revision: e55a467ec0f758c311d358ceb7d66a8a7d9482c3 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 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 74912 6107) (symbols 48 17911 0) (miscs 40 42 124) (strings 32 10939 5181) (string-bytes 1 295851) (vectors 16 9353) (vector-slots 8 386601 16211) (floats 8 70 63) (intervals 56 174 0) (buffers 976 11) (heap 1024 47819 1042)) --=-SLUdlR/1VEqvbG+O89tH Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
In `scss-mode', when comments have "t" or "T" as the first characters<= /div>
in the comment, it is regarded as part of the comment.
=
For instance, if the following comment is filled with `fill-= column'
set to 20:

  // This commen= t begins with the character "T"

the following happ= ens:

  // This comment
  // Tb= egins with the
  // Tcharacter "T"

=
The following change seems to fix this bug:

diff --git a/lisp/textmodes/css-mode.el b/lisp/textmodes/css-mode.= el
index 1759643..35c5ba9 100644
--- a/lisp/textmodes/c= ss-mode.el
+++ b/lisp/textmodes/css-mode.el
@@ -459,7 += 459,7 @@
   "Major mode to edit \"Sassy CSS\" files."
   (setq-local comment-start "// ")
  &nb= sp;(setq-local comment-end "")
-  (setq-local comment-start-= skip "/[*/]+[ t]*")
+  (setq-local comment-start-skip "/[*/]= +[ \t]*")
   (setq-local comment-end-skip "[ \t]*\\(?:\= n\\|\\*+/\\)")
   (setq-local font-lock-defaults '(scss= -font-lock-keywords nil t)))


In GNU= Emacs 25.0.50.4 (x86_64-unknown-linux-gnu, GTK+ Version 3.14.5)
=  of 2014-12-24 on x240
Repository revision: e55a467ec0f758c3= 11d358ceb7d66a8a7d9482c3
Windowing system distributor `The X.Org = Foundation', version 11.0.11602901
System Description: Debian GNU/Linux 8.0 = (jessie)

Configured using:
 `config= ure --without-makeinfo'

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

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

Major mode: Lisp Interaction

<= /div>
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
<= div>  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-m= ode: t
  line-number-mode: t

Recent= messages:
For information about GNU Emacs and the GNU system, ty= pe C-h C-a.

Load-path shadows:
None foun= d.

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 g= mm-utils mailheader sendmail rfc2047 rfc2045
ietf-drums mm-util h= elp-fns mail-prsvr mail-utils time-date tooltip
eldoc electric un= iquify ediff-hook vc-hooks lisp-float-type mwheel x-win
x-dnd too= l-bar dnd fontset image regexp-opt fringe tabulated-list
newcomme= nt elisp-mode lisp-mode prog-mode register page menu-bar
rfn-esha= dow timer select scroll-bar mouse jit-lock font-lock syntax
facem= enu 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<= /div>
jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs butt= on
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 dyna= mic-setting
system-font-setting font-render-setting move-toolbar = gtk x-toolkit x
multi-tty emacs)

Memory = information:
((conses 16 74912 6107)
 (symbols 48 = 17911 0)
 (miscs 40 42 124)
 (strings 32 1093= 9 5181)
 (string-bytes 1 295851)
 (vectors 16= 9353)
 (vector-slots 8 386601 16211)
 (float= s 8 70 63)
 (intervals 56 174 0)
 (buffers 97= 6 11)
 (heap 1024 47819 1042))
= --=-SLUdlR/1VEqvbG+O89tH-- From unknown Mon Jun 23 23:54:26 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.503 (Entity 5.503) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Simen =?UTF-8?Q?Heggest=C3=B8yl?= Subject: bug#19446: closed (Re: bug#19446: Subject: 25.0.50; [PATCH] scss-mode: comments beginning with "t") Message-ID: References: <1419619011.16874.0@smtp.gmail.com> X-Gnu-PR-Message: they-closed 19446 X-Gnu-PR-Package: emacs X-Gnu-PR-Keywords: patch Reply-To: 19446@debbugs.gnu.org Date: Thu, 01 Jan 2015 16:20:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1420129202-14794-1" This is a multi-part message in MIME format... ------------=_1420129202-14794-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #19446: Subject: 25.0.50; [PATCH] scss-mode: comments beginning with "t" which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 19446@debbugs.gnu.org. --=20 19446: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D19446 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1420129202-14794-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 19446-done) by debbugs.gnu.org; 1 Jan 2015 16:19:51 +0000 Received: from localhost ([127.0.0.1]:34574 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y6iTW-0003qB-9U for submit@debbugs.gnu.org; Thu, 01 Jan 2015 11:19:50 -0500 Received: from chene.dit.umontreal.ca ([132.204.246.20]:45334) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y6iTU-0003q4-Mh for 19446-done@debbugs.gnu.org; Thu, 01 Jan 2015 11:19:48 -0500 Received: from fmsmemgm.homelinux.net (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id t01GJlpm031484; Thu, 1 Jan 2015 11:19:48 -0500 Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 0769CAE130; Thu, 1 Jan 2015 11:19:47 -0500 (EST) From: Stefan Monnier To: Simen =?windows-1252?Q?Heggest=F8yl?= Subject: Re: bug#19446: Subject: 25.0.50; [PATCH] scss-mode: comments beginning with "t" Message-ID: References: <1419619011.16874.0@smtp.gmail.com> Date: Thu, 01 Jan 2015 11:19:46 -0500 In-Reply-To: <1419619011.16874.0@smtp.gmail.com> ("Simen =?windows-1252?Q?Heggest=F8yl=22's?= message of "Fri, 26 Dec 2014 19:36:51 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.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: 0.2 X-NAI-Spam-Rules: 2 Rules triggered GEN_SPAM_FEATRE=0.2, RV5173=0 X-NAI-Spam-Version: 2.3.0.9393 : core <5173> : inlines <1719> : streams <1366495> : uri <1840835> X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: 19446-done Cc: 19446-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 (-) > - (setq-local comment-start-skip "/[*/]+[ t]*") > + (setq-local comment-start-skip "/[*/]+[ \t]*") Duh! Thanks for spotting that; installed into Emacs's master. Stefan ------------=_1420129202-14794-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 26 Dec 2014 18:37:11 +0000 Received: from localhost ([127.0.0.1]:58397 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y4Zl9-0002Dv-1r for submit@debbugs.gnu.org; Fri, 26 Dec 2014 13:37:11 -0500 Received: from eggs.gnu.org ([208.118.235.92]:40160) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y4Zl6-0002Dn-BF for submit@debbugs.gnu.org; Fri, 26 Dec 2014 13:37:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y4Zl4-0000Im-LD for submit@debbugs.gnu.org; Fri, 26 Dec 2014 13:37:08 -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]:39100) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y4Zl4-0000Ii-HZ for submit@debbugs.gnu.org; Fri, 26 Dec 2014 13:37:06 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41880) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y4Zl3-0001Sw-0A for bug-gnu-emacs@gnu.org; Fri, 26 Dec 2014 13:37:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y4Zkz-0000Hw-MO for bug-gnu-emacs@gnu.org; Fri, 26 Dec 2014 13:37:04 -0500 Received: from mail-wi0-x233.google.com ([2a00:1450:400c:c05::233]:54046) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y4Zkz-0000Hi-CB for bug-gnu-emacs@gnu.org; Fri, 26 Dec 2014 13:37:01 -0500 Received: by mail-wi0-f179.google.com with SMTP id ex7so17566091wid.6 for ; Fri, 26 Dec 2014 10:37:00 -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=V3iqvd/oP4X2oZ2uJKq4HrGb7xsyOFNTWiZ1liRVQWo=; b=nUbRawDhWdilPkjgquOL8dZ0hWY9LSHzOcpPTbQJ3KxkFjQ1dmk+BULDZt5qN/xyct SNx44VSozCEBXq2kyJU/qkl4ZAAIjiUjtb/oobMjU4LgHDC4BYCPPR8o8uetJsWHvUl4 abpRArR+RrRoBfWt7uAaVjiikI3qLfHwG6ZUAG/zO2rRU/py7AFTA26Xlbmq4dnU/L8T VZhvMiBC0Nc+lM5LZm8g30aFspVsHxEXqwxPY2lcYkyExwaYyyP/H20T/1O4ro1sWBFj cdTcrGLYXEqJw+lHzqjuLRGn4I/ILSLxydgIIPIpdl+CFwmaT1tE1FXa1X6nbOdEBcxi vgVA== X-Received: by 10.180.207.211 with SMTP id ly19mr71863366wic.73.1419619020218; Fri, 26 Dec 2014 10:37:00 -0800 (PST) Received: from [192.168.1.10] (79-95-11.connect.netcom.no. [176.11.95.79]) by mx.google.com with ESMTPSA id kn7sm32561346wjc.45.2014.12.26.10.36.58 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 26 Dec 2014 10:36:59 -0800 (PST) Date: Fri, 26 Dec 2014 19:36:51 +0100 From: Simen =?iso-8859-1?q?Heggest=F8yl?= Subject: Subject: 25.0.50; [PATCH] scss-mode: comments beginning with "t" To: bug-gnu-emacs@gnu.org Message-Id: <1419619011.16874.0@smtp.gmail.com> X-Mailer: geary/0.8.2 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=-SLUdlR/1VEqvbG+O89tH" 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 (----) --=-SLUdlR/1VEqvbG+O89tH Content-Type: text/plain; charset=utf-8; format=flowed In `scss-mode', when comments have "t" or "T" as the first characters in the comment, it is regarded as part of the comment. For instance, if the following comment is filled with `fill-column' set to 20: // This comment begins with the character "T" the following happens: // This comment // Tbegins with the // Tcharacter "T" The following change seems to fix this bug: diff --git a/lisp/textmodes/css-mode.el b/lisp/textmodes/css-mode.el index 1759643..35c5ba9 100644 --- a/lisp/textmodes/css-mode.el +++ b/lisp/textmodes/css-mode.el @@ -459,7 +459,7 @@ "Major mode to edit \"Sassy CSS\" files." (setq-local comment-start "// ") (setq-local comment-end "") - (setq-local comment-start-skip "/[*/]+[ t]*") + (setq-local comment-start-skip "/[*/]+[ \t]*") (setq-local comment-end-skip "[ \t]*\\(?:\n\\|\\*+/\\)") (setq-local font-lock-defaults '(scss-font-lock-keywords nil t))) In GNU Emacs 25.0.50.4 (x86_64-unknown-linux-gnu, GTK+ Version 3.14.5) of 2014-12-24 on x240 Repository revision: e55a467ec0f758c311d358ceb7d66a8a7d9482c3 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 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 74912 6107) (symbols 48 17911 0) (miscs 40 42 124) (strings 32 10939 5181) (string-bytes 1 295851) (vectors 16 9353) (vector-slots 8 386601 16211) (floats 8 70 63) (intervals 56 174 0) (buffers 976 11) (heap 1024 47819 1042)) --=-SLUdlR/1VEqvbG+O89tH Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
In `scss-mode', when comments have "t" or "T" as the first characters<= /div>
in the comment, it is regarded as part of the comment.
=
For instance, if the following comment is filled with `fill-= column'
set to 20:

  // This commen= t begins with the character "T"

the following happ= ens:

  // This comment
  // Tb= egins with the
  // Tcharacter "T"

=
The following change seems to fix this bug:

diff --git a/lisp/textmodes/css-mode.el b/lisp/textmodes/css-mode.= el
index 1759643..35c5ba9 100644
--- a/lisp/textmodes/c= ss-mode.el
+++ b/lisp/textmodes/css-mode.el
@@ -459,7 += 459,7 @@
   "Major mode to edit \"Sassy CSS\" files."
   (setq-local comment-start "// ")
  &nb= sp;(setq-local comment-end "")
-  (setq-local comment-start-= skip "/[*/]+[ t]*")
+  (setq-local comment-start-skip "/[*/]= +[ \t]*")
   (setq-local comment-end-skip "[ \t]*\\(?:\= n\\|\\*+/\\)")
   (setq-local font-lock-defaults '(scss= -font-lock-keywords nil t)))


In GNU= Emacs 25.0.50.4 (x86_64-unknown-linux-gnu, GTK+ Version 3.14.5)
=  of 2014-12-24 on x240
Repository revision: e55a467ec0f758c3= 11d358ceb7d66a8a7d9482c3
Windowing system distributor `The X.Org = Foundation', version 11.0.11602901
System Description: Debian GNU/Linux 8.0 = (jessie)

Configured using:
 `config= ure --without-makeinfo'

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

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

Major mode: Lisp Interaction

<= /div>
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
<= div>  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-m= ode: t
  line-number-mode: t

Recent= messages:
For information about GNU Emacs and the GNU system, ty= pe C-h C-a.

Load-path shadows:
None foun= d.

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 g= mm-utils mailheader sendmail rfc2047 rfc2045
ietf-drums mm-util h= elp-fns mail-prsvr mail-utils time-date tooltip
eldoc electric un= iquify ediff-hook vc-hooks lisp-float-type mwheel x-win
x-dnd too= l-bar dnd fontset image regexp-opt fringe tabulated-list
newcomme= nt elisp-mode lisp-mode prog-mode register page menu-bar
rfn-esha= dow timer select scroll-bar mouse jit-lock font-lock syntax
facem= enu 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<= /div>
jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs butt= on
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 dyna= mic-setting
system-font-setting font-render-setting move-toolbar = gtk x-toolkit x
multi-tty emacs)

Memory = information:
((conses 16 74912 6107)
 (symbols 48 = 17911 0)
 (miscs 40 42 124)
 (strings 32 1093= 9 5181)
 (string-bytes 1 295851)
 (vectors 16= 9353)
 (vector-slots 8 386601 16211)
 (float= s 8 70 63)
 (intervals 56 174 0)
 (buffers 97= 6 11)
 (heap 1024 47819 1042))
= --=-SLUdlR/1VEqvbG+O89tH-- ------------=_1420129202-14794-1--