From unknown Sun Jun 22 11:49:00 2025 X-Loop: help-debbugs@gnu.org Subject: bug#22246: 24.4; C-Mode: Syntax-Highlighting for =?UTF-8?Q?=E2=80=9E//=E2=80=9C-Comment-Line?= continued with =?UTF-8?Q?=E2=80=9E\=E2=80=9C?= Resent-From: Andreas Pickart Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 26 Dec 2015 18:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 22246 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 22246@debbugs.gnu.org X-Debbugs-Original-To: Bug-GNU-Emacs@GNU.Org Received: via spool by submit@debbugs.gnu.org id=B.14511546361638 (code B ref -1); Sat, 26 Dec 2015 18:31:02 +0000 Received: (at submit) by debbugs.gnu.org; 26 Dec 2015 18:30:36 +0000 Received: from localhost ([127.0.0.1]:42092 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aCtbv-0000Pq-Nc for submit@debbugs.gnu.org; Sat, 26 Dec 2015 13:30:36 -0500 Received: from eggs.gnu.org ([208.118.235.92]:35432) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aCqKG-00045V-0y for submit@debbugs.gnu.org; Sat, 26 Dec 2015 10:00:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aCqK9-0006fj-Fw for submit@debbugs.gnu.org; Sat, 26 Dec 2015 10:00:02 -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 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:51878) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aCqK9-0006fX-Dt for submit@debbugs.gnu.org; Sat, 26 Dec 2015 10:00:01 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54628) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aCqK8-0002iN-6Q for Bug-GNU-Emacs@GNU.Org; Sat, 26 Dec 2015 10:00:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aCqK4-0006aF-V0 for Bug-GNU-Emacs@GNU.Org; Sat, 26 Dec 2015 10:00:00 -0500 Received: from apic.name ([88.198.175.20]:48930) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aCqK4-0006Wg-LP for Bug-GNU-Emacs@GNU.Org; Sat, 26 Dec 2015 09:59:56 -0500 Received: by apic.name (Postfix, from userid 1000) id 750A619C28; Sat, 26 Dec 2015 15:59:49 +0100 (CET) Date: Sat, 26 Dec 2015 15:59:48 +0100 From: Andreas Pickart Message-ID: <20151226145948.GA30399@localhost> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="RnlQjJ0d97Da+TV1" Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Mailman-Approved-At: Sat, 26 Dec 2015 13:30:34 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -5.0 (-----) --RnlQjJ0d97Da+TV1 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In Standard-C, it is allowed to continue Lines with a Backslash (=E2=80=9E\= =E2=80=9C). This even works for Single-Line-Comments (=E2=80=9E//=E2=80=9C). But the C-= Mode of Emacs does not colour the Continuation-Line right in this Case. In GNU Emacs 24.4.1 (x86_64-pc-linux-gnu, GTK+ Version 3.14.5) of 2015-03-07 on trouble, modified by Debian Configured using: `configure --build x86_64-linux-gnu --prefix=3D/usr --sharedstatedir=3D/var/lib --libexecdir=3D/usr/lib --localstatedir=3D/var/lib --infodir=3D/usr/share/info --mandir=3D/usr/share/man --with-pop=3Dyes --enable-locallisppath=3D/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24= =2E4/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.4/site-= lisp:/usr/share/emacs/site-lisp --build x86_64-linux-gnu --prefix=3D/usr --sharedstatedir=3D/var/lib --libexecdir=3D/usr/lib --localstatedir=3D/var/lib --infodir=3D/usr/share/info --mandir=3D/usr/share/man --with-pop=3Dyes --enable-locallisppath=3D/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24= =2E4/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.4/site-= lisp:/usr/share/emacs/site-lisp --with-x=3Dyes --with-x-toolkit=3Dgtk3 --with-toolkit-scroll-bars 'CFLAGS=3D-g -O2 -fstack-protector-strong -Wformat -Werror=3Dformat-security -Wall' CPPFLAGS=3D-D_FORTIFY_SOURCE=3D2 LDFLAGS=3D-Wl,-z,relro' Important settings: value of $LC_ALL: en_US.utf8 value of $LANG: de_DE.UTF-8 locale-coding-system: utf-8-unix Major mode: C/l Minor modes in effect: show-paren-mode: t tooltip-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 auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t abbrev-mode: t Recent input: / / SPC C o m m e n t \ RET s t i l l SPC C o m m e=20 n t RET ESC x r e p TAB o TAB r TAB RET Recent messages: Loading debian-ispell... Loading /var/cache/dictionaries-common/emacsen-ispell-default.el (source)..= =2Edone Loading debian-ispell...done Loading /var/cache/dictionaries-common/emacsen-ispell-dicts.el (source)...d= one Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...done Loading term/xterm...done For information about GNU Emacs and the GNU system, type C-h C-a. (New file) Auto-saving...done Making completion list... [2 times] Load-path shadows: /usr/share/emacs/24.4/site-lisp/debian-startup hides /usr/share/emacs/site-= lisp/debian-startup /usr/share/emacs24/site-lisp/dictionaries-common/ispell hides /usr/share/em= acs/24.4/lisp/textmodes/ispell /usr/share/emacs24/site-lisp/dictionaries-common/flyspell hides /usr/share/= emacs/24.4/lisp/textmodes/flyspell Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml 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 help-mode cc-langs cl-loaddefs cl-lib cc-mode cc-fonts easymenu cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs xterm time-date paren tooltip 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 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 106480 3340) (symbols 48 20255 0) (miscs 40 41 132) (strings 32 16733 4161) (string-bytes 1 571592) (vectors 16 9569) (vector-slots 8 369435 10826) (floats 8 67 286) (intervals 56 231 0) (buffers 960 13) (heap 1024 8627 714)) --RnlQjJ0d97Da+TV1 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJWfqtiAAoJEKjcqm1chzaI9ZcP/2w1wj41JHQevDuD1h6ClEnv LP4Uzia3AYcpSdtbOF4FClguzkM1kdjvg6CbRLrHuzM3cYYtineqTXFqF9yVFtj4 Di8Ntyd2xOnSTf+BDhes30zxM3Zm0Gz57ZFea/pl2YqITc3b9s0YIKJlhlBDBdTe na5m5nbSBOFTnv6XBayePoiEG+eSQcw1KuMANX0m6gt47kLT3V025bNjOn2buIT+ 5ZBlax+sFfYWp4Udg8rhimJub9Bj9Op4dgnMS31rj2nggloeNEiZnKWVfrhGmPGH KNs/uURO+DV1FJ7am8UupsCFZsXlQg4zfGQBG3FpWMgBSlzBdyQBlnjIAxI0BdBZ AL+/k7lqxWcqntyER35d7XWRoD4jkhIGVR4LNPenNmRh7FNb7TUo3w4YphvQz/yd f9ArQcyhvrVLgau6S9P4GmI3gI62PQOrQYfPZDuJxPkeeKeSa+AlSU5KU3wIiLvv Os2k3eR3H4IJadvjanARbeE4vNmgqO0+rFrcrja7iiIF4r1oEC+5twgckgwp5Vrn hYz1roRkmo7ZhkkKhjX9QoZCcFquYz+o/duVoGmF5np/8I2pDyljXrlJPniG7rRH dfco4aMx7ObNqbM5e4/97GmMzTg+202/EclU3S2gMvA71eWfAe/LFlD42zRUVMRC YMii8dMm0fTIJx2V0oHh =+t5I -----END PGP SIGNATURE----- --RnlQjJ0d97Da+TV1-- From unknown Sun Jun 22 11:49:00 2025 X-Loop: help-debbugs@gnu.org Subject: bug#22246: 24.4; C-Mode: Syntax-Highlighting for =?UTF-8?Q?=E2=80=9E//=E2=80=9C-Comment-Line?= continued with =?UTF-8?Q?=E2=80=9E\=E2=80=9C?= References: <20151226145948.GA30399@localhost> Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Mon, 28 Dec 2015 17:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22246 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: To: Andreas Pickart Cc: 22246@debbugs.gnu.org Received: via spool by 22246-submit@debbugs.gnu.org id=B22246.145132535524191 (code B ref 22246); Mon, 28 Dec 2015 17:56:02 +0000 Received: (at 22246) by debbugs.gnu.org; 28 Dec 2015 17:55:55 +0000 Received: from localhost ([127.0.0.1]:46645 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aDc1T-0006I7-5E for submit@debbugs.gnu.org; Mon, 28 Dec 2015 12:55:55 -0500 Received: from mail.muc.de ([193.149.48.3]:46893) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aDc1R-0006Hy-DM for 22246@debbugs.gnu.org; Mon, 28 Dec 2015 12:55:54 -0500 Received: (qmail 41700 invoked by uid 3782); 28 Dec 2015 17:55:51 -0000 Date: 28 Dec 2015 17:55:51 -0000 Message-ID: <20151228175551.41699.qmail@mail.muc.de> From: Alan Mackenzie Organization: muc.de e.V. In-Reply-To: X-Newsgroups: gnu.emacs.bug User-Agent: tin/2.3.1-20141224 ("Tallant") (UNIX) (FreeBSD/10.2-RELEASE-p7 (amd64)) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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.0 (/) Hello, Andreas. There's now at least a provisional fix to this bug in the Emacs repository release branch. In article you wrote: > [-- text/plain, encoding quoted-printable, charset: utf-8, 114 lines --= ] > In Standard-C, it is allowed to continue Lines with a Backslash (=E2=80= =9E\=E2=80=9C). > This even works for Single-Line-Comments (=E2=80=9E//=E2=80=9C). But th= e C-Mode of Emacs > does not colour the Continuation-Line right in this Case. Thanks for taking the trouble to report this bug. > In GNU Emacs 24.4.1 (x86_64-pc-linux-gnu, GTK+ Version 3.14.5) > of 2015-03-07 on trouble, modified by Debian I've converted the fix to work on Emacs 24.4, but after applying the patch, you'll need (i) to rebuild the Emacs binary, and also (ii) to rebuild CC Mode. If you want any help on these, feel free to send me a private email. Here's the patch for Emacs 24.4: --- src/syntax.c~ 2015-12-28 17:31:54.658565440 +0000 +++ src/syntax.c 2015-12-28 16:26:02.057742664 +0000 @@ -139,6 +139,7 @@ =20 static Lisp_Object Qsyntax_table_p; static Lisp_Object Qsyntax_table, Qscan_error; +static Lisp_Object Qcomment_end_can_be_escaped; =20 /* This is the internal form of the parse state used in parse-partial-se= xp. */ =20 @@ -734,8 +735,10 @@ || SYNTAX_FLAGS_COMMENT_NESTED (syntax) !=3D comnested)) continue; =20 - /* Ignore escaped characters, except comment-enders. */ - if (code !=3D Sendcomment && char_quoted (from, from_byte)) + /* Ignore escaped characters, except comment-enders which cannot + be escaped. */ + if ((Vcomment_end_can_be_escaped || code !=3D Sendcomment) + && char_quoted (from, from_byte)) continue; =20 switch (code) @@ -2286,7 +2289,8 @@ if (code =3D=3D Sendcomment && SYNTAX_FLAGS_COMMENT_STYLE (syntax, 0) =3D=3D style && (SYNTAX_FLAGS_COMMENT_NESTED (syntax) ? - (nesting > 0 && --nesting =3D=3D 0) : nesting < 0)) + (nesting > 0 && --nesting =3D=3D 0) : nesting < 0) + && !(Vcomment_end_can_be_escaped && char_quoted (from, from_by= te))) /* we have encountered a comment end of the same style as the comment sequence which began this comment section */ @@ -3641,6 +3645,12 @@ In both cases, LIMIT bounds the search. */); Vfind_word_boundary_function_table =3D Fmake_char_table (Qnil, Qnil); =20 + DEFVAR_BOOL ("comment-end-can-be-escaped", Vcomment_end_can_be_escaped= , + doc: /* Non-nil means an escaped ender inside a comment d= oesn't end the comment. */); + Vcomment_end_can_be_escaped =3D 0; + DEFSYM (Qcomment_end_can_be_escaped, "comment-end-can-be-escaped"); + Fmake_variable_buffer_local (Qcomment_end_can_be_escaped); + defsubr (&Ssyntax_table_p); defsubr (&Ssyntax_table); defsubr (&Sstandard_syntax_table); --- lisp/progmodes/cc-langs.el~ 2014-06-14 23:51:42.000000000 +0000 +++ lisp/progmodes/cc-langs.el 2015-12-28 16:18:41.226762430 +0000 @@ -1380,6 +1380,14 @@ "\\)\\s *")) (c-lang-setvar comment-start-skip (c-lang-const comment-start-skip)) =20 +(c-lang-defconst comment-end-can-be-escaped + "When non-nil, escaped EOLs inside comments are valid. +This works in Emacs >=3D 25.1." + t nil + (c c++ objc) t) +(c-lang-setvar comment-end-can-be-escaped + (c-lang-const comment-end-can-be-escaped)) + (c-lang-defconst c-syntactic-ws-start ;; Regexp matching any sequence that can start syntactic whitespace. ;; The only uncertain case is '#' when there are cpp directives. --=20 Alan Mackenzie (Nuremberg, Germany). From unknown Sun Jun 22 11:49:00 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Andreas Pickart Subject: bug#22246: closed (Re: bug#22246: 24.4; C-Mode: Syntax-Highlighting for =?UTF-8?Q?=E2=80=9E//=E2=80=9C-Comment-Line?= continued with =?UTF-8?Q?=E2=80=9E\=E2=80=9C?=) Message-ID: References: <20151229150044.GB1884@acm.fritz.box> <20151226145948.GA30399@localhost> X-Gnu-PR-Message: they-closed 22246 X-Gnu-PR-Package: emacs,cc-mode Reply-To: 22246@debbugs.gnu.org Date: Tue, 29 Dec 2015 14:59:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1451401142-23822-1" This is a multi-part message in MIME format... ------------=_1451401142-23822-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #22246: 24.4; C-Mode: Syntax-Highlighting for =E2=80=9E//=E2=80=9C-Comment-= Line continued with =E2=80=9E\=E2=80=9C which was filed against the emacs,cc-mode package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 22246@debbugs.gnu.org. --=20 22246: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D22246 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1451401142-23822-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 22246-done) by debbugs.gnu.org; 29 Dec 2015 14:58:28 +0000 Received: from localhost ([127.0.0.1]:48779 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aDvjI-0006BG-MD for submit@debbugs.gnu.org; Tue, 29 Dec 2015 09:58:28 -0500 Received: from mail.muc.de ([193.149.48.3]:64377) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aDvjH-0006B8-I1 for 22246-done@debbugs.gnu.org; Tue, 29 Dec 2015 09:58:27 -0500 Received: (qmail 36433 invoked by uid 3782); 29 Dec 2015 14:58:26 -0000 Received: from acm.muc.de (p579E804C.dip0.t-ipconnect.de [87.158.128.76]) by colin.muc.de (tmda-ofmipd) with ESMTP; Tue, 29 Dec 2015 15:58:25 +0100 Received: (qmail 18322 invoked by uid 1000); 29 Dec 2015 15:00:44 -0000 Date: Tue, 29 Dec 2015 15:00:44 +0000 To: 22246-done@debbugs.gnu.org Subject: Re: bug#22246: 24.4; C-Mode: =?utf-8?Q?Syn?= =?utf-8?Q?tax-Highlighting_for_=E2=80=9E=2F=2F=E2=80=9C-Comment-Line_cont?= =?utf-8?B?aW51ZWQgd2l0aCDigJ5c4oCc?= Message-ID: <20151229150044.GB1884@acm.fritz.box> References: <20151226145948.GA30399@localhost> <20151228175551.41699.qmail@mail.muc.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20151228175551.41699.qmail@mail.muc.de> User-Agent: Mutt/1.5.23 (2014-03-12) X-Delivery-Agent: TMDA/1.1.12 (Macallan) From: Alan Mackenzie X-Primary-Address: acm@muc.de X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 22246-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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.0 (/) Bug fixed in emacs-25 branch. -- Alan Mackenzie (Nuremberg, Germany). ------------=_1451401142-23822-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 26 Dec 2015 18:30:36 +0000 Received: from localhost ([127.0.0.1]:42092 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aCtbv-0000Pq-Nc for submit@debbugs.gnu.org; Sat, 26 Dec 2015 13:30:36 -0500 Received: from eggs.gnu.org ([208.118.235.92]:35432) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aCqKG-00045V-0y for submit@debbugs.gnu.org; Sat, 26 Dec 2015 10:00:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aCqK9-0006fj-Fw for submit@debbugs.gnu.org; Sat, 26 Dec 2015 10:00:02 -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 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:51878) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aCqK9-0006fX-Dt for submit@debbugs.gnu.org; Sat, 26 Dec 2015 10:00:01 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54628) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aCqK8-0002iN-6Q for Bug-GNU-Emacs@GNU.Org; Sat, 26 Dec 2015 10:00:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aCqK4-0006aF-V0 for Bug-GNU-Emacs@GNU.Org; Sat, 26 Dec 2015 10:00:00 -0500 Received: from apic.name ([88.198.175.20]:48930) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aCqK4-0006Wg-LP for Bug-GNU-Emacs@GNU.Org; Sat, 26 Dec 2015 09:59:56 -0500 Received: by apic.name (Postfix, from userid 1000) id 750A619C28; Sat, 26 Dec 2015 15:59:49 +0100 (CET) Date: Sat, 26 Dec 2015 15:59:48 +0100 From: Andreas Pickart To: Bug-GNU-Emacs@GNU.Org Subject: 24.4; C-Mode: =?utf-8?Q?Syntax-Highlightin?= =?utf-8?Q?g_for_=E2=80=9E=2F=2F=E2=80=9C-Comment-Line_continued_with_?= =?utf-8?B?4oCeXOKAnA==?= Message-ID: <20151226145948.GA30399@localhost> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="RnlQjJ0d97Da+TV1" Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sat, 26 Dec 2015 13:30:34 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -5.0 (-----) --RnlQjJ0d97Da+TV1 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In Standard-C, it is allowed to continue Lines with a Backslash (=E2=80=9E\= =E2=80=9C). This even works for Single-Line-Comments (=E2=80=9E//=E2=80=9C). But the C-= Mode of Emacs does not colour the Continuation-Line right in this Case. In GNU Emacs 24.4.1 (x86_64-pc-linux-gnu, GTK+ Version 3.14.5) of 2015-03-07 on trouble, modified by Debian Configured using: `configure --build x86_64-linux-gnu --prefix=3D/usr --sharedstatedir=3D/var/lib --libexecdir=3D/usr/lib --localstatedir=3D/var/lib --infodir=3D/usr/share/info --mandir=3D/usr/share/man --with-pop=3Dyes --enable-locallisppath=3D/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24= =2E4/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.4/site-= lisp:/usr/share/emacs/site-lisp --build x86_64-linux-gnu --prefix=3D/usr --sharedstatedir=3D/var/lib --libexecdir=3D/usr/lib --localstatedir=3D/var/lib --infodir=3D/usr/share/info --mandir=3D/usr/share/man --with-pop=3Dyes --enable-locallisppath=3D/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24= =2E4/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.4/site-= lisp:/usr/share/emacs/site-lisp --with-x=3Dyes --with-x-toolkit=3Dgtk3 --with-toolkit-scroll-bars 'CFLAGS=3D-g -O2 -fstack-protector-strong -Wformat -Werror=3Dformat-security -Wall' CPPFLAGS=3D-D_FORTIFY_SOURCE=3D2 LDFLAGS=3D-Wl,-z,relro' Important settings: value of $LC_ALL: en_US.utf8 value of $LANG: de_DE.UTF-8 locale-coding-system: utf-8-unix Major mode: C/l Minor modes in effect: show-paren-mode: t tooltip-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 auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t abbrev-mode: t Recent input: / / SPC C o m m e n t \ RET s t i l l SPC C o m m e=20 n t RET ESC x r e p TAB o TAB r TAB RET Recent messages: Loading debian-ispell... Loading /var/cache/dictionaries-common/emacsen-ispell-default.el (source)..= =2Edone Loading debian-ispell...done Loading /var/cache/dictionaries-common/emacsen-ispell-dicts.el (source)...d= one Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...done Loading term/xterm...done For information about GNU Emacs and the GNU system, type C-h C-a. (New file) Auto-saving...done Making completion list... [2 times] Load-path shadows: /usr/share/emacs/24.4/site-lisp/debian-startup hides /usr/share/emacs/site-= lisp/debian-startup /usr/share/emacs24/site-lisp/dictionaries-common/ispell hides /usr/share/em= acs/24.4/lisp/textmodes/ispell /usr/share/emacs24/site-lisp/dictionaries-common/flyspell hides /usr/share/= emacs/24.4/lisp/textmodes/flyspell Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml 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 help-mode cc-langs cl-loaddefs cl-lib cc-mode cc-fonts easymenu cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs xterm time-date paren tooltip 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 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 106480 3340) (symbols 48 20255 0) (miscs 40 41 132) (strings 32 16733 4161) (string-bytes 1 571592) (vectors 16 9569) (vector-slots 8 369435 10826) (floats 8 67 286) (intervals 56 231 0) (buffers 960 13) (heap 1024 8627 714)) --RnlQjJ0d97Da+TV1 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJWfqtiAAoJEKjcqm1chzaI9ZcP/2w1wj41JHQevDuD1h6ClEnv LP4Uzia3AYcpSdtbOF4FClguzkM1kdjvg6CbRLrHuzM3cYYtineqTXFqF9yVFtj4 Di8Ntyd2xOnSTf+BDhes30zxM3Zm0Gz57ZFea/pl2YqITc3b9s0YIKJlhlBDBdTe na5m5nbSBOFTnv6XBayePoiEG+eSQcw1KuMANX0m6gt47kLT3V025bNjOn2buIT+ 5ZBlax+sFfYWp4Udg8rhimJub9Bj9Op4dgnMS31rj2nggloeNEiZnKWVfrhGmPGH KNs/uURO+DV1FJ7am8UupsCFZsXlQg4zfGQBG3FpWMgBSlzBdyQBlnjIAxI0BdBZ AL+/k7lqxWcqntyER35d7XWRoD4jkhIGVR4LNPenNmRh7FNb7TUo3w4YphvQz/yd f9ArQcyhvrVLgau6S9P4GmI3gI62PQOrQYfPZDuJxPkeeKeSa+AlSU5KU3wIiLvv Os2k3eR3H4IJadvjanARbeE4vNmgqO0+rFrcrja7iiIF4r1oEC+5twgckgwp5Vrn hYz1roRkmo7ZhkkKhjX9QoZCcFquYz+o/duVoGmF5np/8I2pDyljXrlJPniG7rRH dfco4aMx7ObNqbM5e4/97GmMzTg+202/EclU3S2gMvA71eWfAe/LFlD42zRUVMRC YMii8dMm0fTIJx2V0oHh =+t5I -----END PGP SIGNATURE----- --RnlQjJ0d97Da+TV1-- ------------=_1451401142-23822-1--