From unknown Fri Jun 20 07:19:00 2025 X-Loop: help-debbugs@gnu.org Subject: bug#28098: 26.0.50; bad C fontification Resent-From: Marti Bolivar Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 15 Aug 2017 15:28:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 28098 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 28098@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.150281086727646 (code B ref -1); Tue, 15 Aug 2017 15:28:01 +0000 Received: (at submit) by debbugs.gnu.org; 15 Aug 2017 15:27:47 +0000 Received: from localhost ([127.0.0.1]:38225 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dhdkw-0007Bq-KQ for submit@debbugs.gnu.org; Tue, 15 Aug 2017 11:27:47 -0400 Received: from eggs.gnu.org ([208.118.235.92]:39146) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dhd6J-0006lh-8j for submit@debbugs.gnu.org; Tue, 15 Aug 2017 10:45:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dhd6C-0005iR-KF for submit@debbugs.gnu.org; Tue, 15 Aug 2017 10:45:42 -0400 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]:42021) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dhd6C-0005i8-E0 for submit@debbugs.gnu.org; Tue, 15 Aug 2017 10:45:40 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58342) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dhd6A-0007In-I6 for bug-gnu-emacs@gnu.org; Tue, 15 Aug 2017 10:45:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dhd68-0005cN-Or for bug-gnu-emacs@gnu.org; Tue, 15 Aug 2017 10:45:38 -0400 Received: from mail-io0-x22d.google.com ([2607:f8b0:4001:c06::22d]:35331) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dhd68-0005av-GJ for bug-gnu-emacs@gnu.org; Tue, 15 Aug 2017 10:45:36 -0400 Received: by mail-io0-x22d.google.com with SMTP id m88so3990840iod.2 for ; Tue, 15 Aug 2017 07:45:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=9pgv6Fl4r7K9GxMcq+BUrkJu/YSwUI1hdN+NJeAqqj8=; b=nFFv8z8EZWn9YS/kqRXSH+xNNDXxDIQf4V4yo0u9QLAAXjo0+nZZZWrkx2wcW24uM2 tnA55iWDD9NUl8gNa5BcijvTq/RsKYY/nfpaowXwAS52IxZyiTvlMmZZLZZaq/jDC5OK zM3v3EhGqv1levjSOBSXiTfTVGnFhxRZwOTDz/vnEGnEe0NxgVQQzVFiuf2VJUF+Vm9r oraNE36uBPX2ksAmYxbsADFlZv+YLRyuWxxliyA+lD35cXCv6p54UARS1Zdgj2n+aa0Z Za4tDUzT+o22uqbzLapp4zD3b4YjZOqGAUeoIeHpMqQT8dJUZCbcdsr/bIHwaKxQeyJD SeyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=9pgv6Fl4r7K9GxMcq+BUrkJu/YSwUI1hdN+NJeAqqj8=; b=SosuG4Mpou9zIz802cUcgcWR0lB4LnA2GIfvyTKpsFnnAAZ4usFHUAsQcUFKC6budu BanKX5XLC3Q7QA3i+JYxcpFf9tdVPL0gFPBtkC4LFiP+qPgyVHadyM0Ja65hhx1ouZLd 8ZCkW56DZNQ53skRAI0guqbdN6Mb4lCwrApo8c5SUnS69/lQM6+eEWndW5cK0F1s+cqO Wyj9zCXhiMmhTrqXZ7tKJkLF3sVTAzrGTrl0VGmg2pLb81ZLeNbhcDoUTtl+NZUbhyOW 5TCrewsbamIHt0NCa5OaH9O/X724++LiSBrtm1CFB6jLkXFLVdH4xtrTf8yZQ37+0v+M udHQ== X-Gm-Message-State: AHYfb5ix9Exo5Ssg5iN2pGiGsMs1+gmRcWD2sYV70VnMap41WN/kdLSs qNt2O8VCr7IPALveU4l6fDHj9dpWQiP4 X-Received: by 10.107.43.131 with SMTP id r125mr22846703ior.76.1502808333983; Tue, 15 Aug 2017 07:45:33 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.164.151 with HTTP; Tue, 15 Aug 2017 07:45:33 -0700 (PDT) From: Marti Bolivar Date: Tue, 15 Aug 2017 10:45:33 -0400 Message-ID: Content-Type: multipart/alternative; boundary="001a11398748e9c7680556cbd4ca" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Mailman-Approved-At: Tue, 15 Aug 2017 11:27:45 -0400 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: -4.0 (----) --001a11398748e9c7680556cbd4ca Content-Type: text/plain; charset="UTF-8" 1. From emacs -Q, open this file: https://github.com/zephyrproject-rtos/zephyr/blob/2de59023dc726e61244eb7cca17252294016c65a/subsys/net/lib/http/http_client.c 2. Observe incorrect syntax highlighting at beginning of file. Screenshot: https://postimg.org/image/tzy8qgjjz/ (Note that loading a C file with just the #ifdefs and initial comment which fail to highlight above doesn't reproduce the issue.) In GNU Emacs 26.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.11) of 2017-08-10 built on plop Repository revision: 81656add8117e8d1b7faab18b330d0706462b433 Windowing system distributor 'The X.Org Foundation', version 11.0.11903000 System Description: Ubuntu 17.04 Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Making completion list... mwheel-scroll: Beginning of buffer [21 times] Making completion list... Configured using: 'configure --without-pop' Configured features: XPM JPEG TIFF GIF PNG SOUND DBUS GSETTINGS NOTIFY GNUTLS FREETYPE XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 Important settings: value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: C/*l Minor modes in effect: diff-auto-refine-mode: t 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 transient-mark-mode: t abbrev-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message subr-x puny seq byte-opt gv bytecomp byte-compile cconv dired dired-loaddefs format-spec rfc822 mml mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils vc-git diff-mode easy-mmode cc-mode cc-fonts easymenu cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs cl-loaddefs cl-lib time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray 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 dbusbind inotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 123261 11555) (symbols 48 22839 1) (miscs 40 60 140) (strings 32 35859 1155) (string-bytes 1 1079093) (vectors 16 17814) (vector-slots 8 527552 12359) (floats 8 52 134) (intervals 56 1378 3) (buffers 992 13)) --001a11398748e9c7680556cbd4ca Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

1. From emacs -Q, open this file:

=C2=A0 =C2=A0https://github.com/zephyrproject-rtos/zephyr/blob/2de5= 9023dc726e61244eb7cca17252294016c65a/subsys/net/lib/http/http_client.c<= /div>

2. Observe incorrect syntax highlighting at beginn= ing of file. Screenshot:





<= div>


cc-vars cc-defs cl-loaddefs cl-lib time-date mule-util tooltip eldoc
electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-w= in
x-win term/common-win x-dnd tool-bar dnd fontset image regexp-= opt fringe
tabulated-list replace newcomment text-mode elisp-mode= lisp-mode
prog-mode register page menu-bar rfn-eshadow isearch t= imer select
scroll-bar mouse jit-lock font-lock syntax facemenu f= ont-core
term/tty-colors frame cl-generic cham georgian utf-8-lan= g misc-lang
vietnamese tibetan thai tai-viet lao korean japanese = eucjp-ms cp51932
hebrew greek romanian slovak czech european ethi= opic indian cyrillic
chinese composite charscript charprop case-t= able epa-hook jka-cmpr-hook
help simple abbrev obarray minibuffer= cl-preloaded nadvice loaddefs
button faces cus-face macroexp fil= es text-properties overlay sha1 md5
base64 format env code-pages = mule custom widget hashtable-print-readable
backquote dbusbind in= otify dynamic-setting system-font-setting
font-render-setting mov= e-toolbar gtk x-toolkit x multi-tty
make-network-process emacs)

Memory information:
((conses 16 123261 11= 555)
=C2=A0(symbols 48 22839 1)
=C2=A0(miscs 40 60 140)=
=C2=A0(strings 32 35859 1155)
=C2=A0(string-bytes 1 10= 79093)
=C2=A0(vectors 16 17814)
=C2=A0(vector-slots 8 5= 27552 12359)
=C2=A0(floats 8 52 134)
=C2=A0(intervals 5= 6 1378 3)
=C2=A0(buffers 992 13))

--001a11398748e9c7680556cbd4ca-- From unknown Fri Jun 20 07:19:00 2025 X-Loop: help-debbugs@gnu.org Subject: bug#28098: 26.0.50; bad C fontification References: Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Wed, 16 Aug 2017 17:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28098 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: To: Marti Bolivar Cc: 28098@debbugs.gnu.org Received: via spool by 28098-submit@debbugs.gnu.org id=B28098.15029057929012 (code B ref 28098); Wed, 16 Aug 2017 17:50:02 +0000 Received: (at 28098) by debbugs.gnu.org; 16 Aug 2017 17:49:52 +0000 Received: from localhost ([127.0.0.1]:41455 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1di2Rz-0002LI-RH for submit@debbugs.gnu.org; Wed, 16 Aug 2017 13:49:52 -0400 Received: from ocolin.muc.de ([193.149.48.4]:30113 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1di2Rx-0002L8-Ud for 28098@debbugs.gnu.org; Wed, 16 Aug 2017 13:49:50 -0400 Received: (qmail 36468 invoked by uid 3782); 16 Aug 2017 17:49:48 -0000 Date: 16 Aug 2017 17:49:48 -0000 Message-ID: <20170816174948.36467.qmail@mail.muc.de> From: Alan Mackenzie Organization: muc.de e.V. In-Reply-To: X-Newsgroups: gnu.emacs.bug User-Agent: tin/2.4.1-20161224 ("Daill") (UNIX) (FreeBSD/11.0-RELEASE-p2 (amd64)) 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, Marti. In article you wrote: > [-- text/plain, encoding 7bit, charset: UTF-8, 98 lines --] > 1. From emacs -Q, open this file: > https://github.com/zephyrproject-rtos/zephyr/blob/2de59023dc726e61244eb7cca17252294016c65a/subsys/net/lib/http/http_client.c > 2. Observe incorrect syntax highlighting at beginning of file. Screenshot: > https://postimg.org/image/tzy8qgjjz/ More precisely, the first ~500 bytes, which consist entirely of comments and preprocessor directives doesn't get fontified at all. > (Note that loading a C file with just the #ifdefs and initial > comment which fail to highlight above doesn't reproduce the issue.) Thanks. The fact that it's ~500 bytes which don't get fontified suggest that something is interfering with the first jit-lock chunk. I'll be looking into it. Give me a bit of time. > In GNU Emacs 26.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.11) > of 2017-08-10 built on plop > Repository revision: 81656add8117e8d1b7faab18b330d0706462b433 > Windowing system distributor 'The X.Org Foundation', version 11.0.11903000 > System Description: Ubuntu 17.04 [ .... ] -- Alan Mackenzie (Nuremberg, Germany). From unknown Fri Jun 20 07:19:00 2025 X-Loop: help-debbugs@gnu.org Subject: bug#28098: 26.0.50; bad C fontification References: Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Wed, 16 Aug 2017 20:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28098 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: To: Marti Bolivar Cc: 28098@debbugs.gnu.org Received: via spool by 28098-submit@debbugs.gnu.org id=B28098.150291704711663 (code B ref 28098); Wed, 16 Aug 2017 20:58:02 +0000 Received: (at 28098) by debbugs.gnu.org; 16 Aug 2017 20:57:27 +0000 Received: from localhost ([127.0.0.1]:41611 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1di5NX-000322-An for submit@debbugs.gnu.org; Wed, 16 Aug 2017 16:57:27 -0400 Received: from ocolin.muc.de ([193.149.48.4]:50300 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1di5NU-00031l-5F for 28098@debbugs.gnu.org; Wed, 16 Aug 2017 16:57:24 -0400 Received: (qmail 955 invoked by uid 3782); 16 Aug 2017 20:57:22 -0000 Date: 16 Aug 2017 20:57:22 -0000 Message-ID: <20170816205722.954.qmail@mail.muc.de> From: Alan Mackenzie Organization: muc.de e.V. In-Reply-To: X-Newsgroups: gnu.emacs.bug User-Agent: tin/2.4.1-20161224 ("Daill") (UNIX) (FreeBSD/11.0-RELEASE-p2 (amd64)) 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 again, Marti. In article you wrote: > [-- text/plain, encoding 7bit, charset: UTF-8, 98 lines --] > 1. From emacs -Q, open this file: > https://github.com/zephyrproject-rtos/zephyr/blob/2de59023dc726e61244eb7cca17252294016c65a/subsys/net/lib/http/http_client.c > 2. Observe incorrect syntax highlighting at beginning of file. Screenshot: > https://postimg.org/image/tzy8qgjjz/ > (Note that loading a C file with just the #ifdefs and initial > comment which fail to highlight above doesn't reproduce the issue.) I think the following patch should fix the bug. Would you please apply it, try it out, and either confirm to me that it fixes the bug, or tell me what's still wrong: diff -r 9533dc4cbda3 cc-mode.el --- a/cc-mode.el Thu Jul 27 17:37:02 2017 +0000 +++ b/cc-mode.el Wed Aug 16 20:48:54 2017 +0000 @@ -1529,10 +1529,13 @@ (c-backward-syntactic-ws) (when (setq pos1 (c-on-identifier)) (goto-char pos1) - (when (and (c-forward-declarator) - (eq (c-forward-token-2) 0)) - (c-backward-syntactic-ws) - (point))))) + (let ((lim (save-excursion + (and (c-beginning-of-macro) + (progn (c-end-of-macro) (point)))))) + (when (and (c-forward-declarator lim) + (eq (c-forward-token-2 1 nil lim) 0)) + (c-backward-syntactic-ws) + (point)))))) (defun c-change-expand-fl-region (beg end old-len) ;; Expand the region (c-new-BEG c-new-END) to an after-change font-lock Thanks for taking the trouble to report this bug. > In GNU Emacs 26.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.11) > of 2017-08-10 built on plop > Repository revision: 81656add8117e8d1b7faab18b330d0706462b433 > Windowing system distributor 'The X.Org Foundation', version 11.0.11903000 > System Description: Ubuntu 17.04 -- Alan Mackenzie (Nuremberg, Germany). From unknown Fri Jun 20 07:19:00 2025 X-Loop: help-debbugs@gnu.org Subject: bug#28098: 26.0.50; bad C fontification Resent-From: Marti Bolivar Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Mon, 21 Aug 2017 19:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28098 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: To: Alan Mackenzie Cc: 28098@debbugs.gnu.org Received: via spool by 28098-submit@debbugs.gnu.org id=B28098.15033439631362 (code B ref 28098); Mon, 21 Aug 2017 19:33:02 +0000 Received: (at 28098) by debbugs.gnu.org; 21 Aug 2017 19:32:43 +0000 Received: from localhost ([127.0.0.1]:48211 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1djsRD-0000Lp-KQ for submit@debbugs.gnu.org; Mon, 21 Aug 2017 15:32:43 -0400 Received: from mail-it0-f48.google.com ([209.85.214.48]:36624) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1djsRC-0000Ld-CA for 28098@debbugs.gnu.org; Mon, 21 Aug 2017 15:32:38 -0400 Received: by mail-it0-f48.google.com with SMTP id 77so35858798itj.1 for <28098@debbugs.gnu.org>; Mon, 21 Aug 2017 12:32:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=9e9Y0Qx5fO3T5lvAXU/4ZBFb2I0C9+Ucs22Z2L+IisQ=; b=KXoLeAGhTADhvjBnT64NBYvgIpPRGNHtNVoMlP6jE9pyV+Cdf/BaavGFBagH44RZw3 ynU3PAS6zDdzTBC7iQw6EpD6ef6hJLQ7r14LCpqThqDJcCtROlS3MOfw44wIxvoY/8xs i7bYg5i4w8IpZAi0WbzFt2GRbGa4bLoGJAPzE3H8MDYg8ahsqzLGuJ0jtUJFXwHSDC0s y/avT9++M94mFrrraFuGK5qsEZZbQ7Ndw221sDJnDbhB5Y/nQVBdKZxk/tTBrJJRWJ3F PVS/llfQRx6qGe2P0mtbW6cxDIV3LvRjhP2EleJ2iaE+q2RjrsTNGYdiDDzLfOGD5+Cq jnkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=9e9Y0Qx5fO3T5lvAXU/4ZBFb2I0C9+Ucs22Z2L+IisQ=; b=tZTU2Mbk0pbi6uakY0yDtgRp0sOZgz5dq1AQSmYrc5HQi0KRrvbdbzPgOWjDapv03g TH3kbmgdGJfcTnWMV+hckphbS9CKjF6bwuJdA1VUAMhyqHi5pSSC9m0c0yC3PpgVc8+6 QkhPrFkhM72UDXsguu37sNSz6n66d37W8b0H9kKe//VurmfTeWHFGVBIgIRswnKfWcL2 gzOUuZ+MJ6eaGU2dEwSSKeXaOijZyviHO4KEQW6Lake4Zpf9qqrA//SfQfrqtf5f8+g6 NgBwuyUyEc/txZJRCG6Qqc2Jx+4LCwUezI8TNhSDONNGvoFJt21XF1kdYJruvsVqj8Wy k8NQ== X-Gm-Message-State: AHYfb5h3MDAtKq3SWnHaII2/LS/Vrt46MzsBqzbN+7VRDRKoOMyrZJ+L 1wdoyT+IvfA54igs8SsTRLGJ0IOFSg== X-Received: by 10.36.7.138 with SMTP id f132mr7063371itf.10.1503343952776; Mon, 21 Aug 2017 12:32:32 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.164.151 with HTTP; Mon, 21 Aug 2017 12:32:30 -0700 (PDT) In-Reply-To: <20170816205722.954.qmail@mail.muc.de> References: <20170816205722.954.qmail@mail.muc.de> From: Marti Bolivar Date: Mon, 21 Aug 2017 12:32:30 -0700 Message-ID: Content-Type: multipart/mixed; boundary="001a114592944835770557488a4d" X-Spam-Score: 0.5 (/) 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.5 (/) --001a114592944835770557488a4d Content-Type: multipart/alternative; boundary="001a114592944835730557488a4b" --001a114592944835730557488a4b Content-Type: text/plain; charset="UTF-8" Hi Alan, Thanks for the patch. On Wed, Aug 16, 2017 at 1:57 PM, Alan Mackenzie wrote: > Hello again, Marti. > > In article you > wrote: > > [-- text/plain, encoding 7bit, charset: UTF-8, 98 lines --] > > > 1. From emacs -Q, open this file: > > > > https://github.com/zephyrproject-rtos/zephyr/blob/ > 2de59023dc726e61244eb7cca17252294016c65a/subsys/net/lib/http/http_client.c > > > 2. Observe incorrect syntax highlighting at beginning of file. > Screenshot: > > > https://postimg.org/image/tzy8qgjjz/ > > > (Note that loading a C file with just the #ifdefs and initial > > comment which fail to highlight above doesn't reproduce the issue.) > > I think the following patch should fix the bug. Would you please apply > it, try it out, and either confirm to me that it fixes the bug, or tell > me what's still wrong: > > > diff -r 9533dc4cbda3 cc-mode.el > --- a/cc-mode.el Thu Jul 27 17:37:02 2017 +0000 > +++ b/cc-mode.el Wed Aug 16 20:48:54 2017 +0000 > @@ -1529,10 +1529,13 @@ > (c-backward-syntactic-ws) > (when (setq pos1 (c-on-identifier)) > (goto-char pos1) > - (when (and (c-forward-declarator) > - (eq (c-forward-token-2) 0)) > - (c-backward-syntactic-ws) > - (point))))) > + (let ((lim (save-excursion > + (and (c-beginning-of-macro) > + (progn (c-end-of-macro) (point)))))) > + (when (and (c-forward-declarator lim) > + (eq (c-forward-token-2 1 nil lim) 0)) > + (c-backward-syntactic-ws) > + (point)))))) > > (defun c-change-expand-fl-region (beg end old-len) > ;; Expand the region (c-new-BEG c-new-END) to an after-change font-lock > I couldn't manage to get this to apply, but I made the changes manually; git format-patch output for the relevant commit is attached. This did indeed resolve the issue. > > Thanks for taking the trouble to report this bug. > > Thanks for taking the time to investigate and fix it. Marti > > In GNU Emacs 26.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.11) > > of 2017-08-10 built on plop > > Repository revision: 81656add8117e8d1b7faab18b330d0706462b433 > > Windowing system distributor 'The X.Org Foundation', version > 11.0.11903000 > > System Description: Ubuntu 17.04 > > -- > Alan Mackenzie (Nuremberg, Germany). > > --001a114592944835730557488a4b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Alan,

Thanks for the patch.

On Wed, Aug 16, 2017= at 1:57 PM, Alan Mackenzie <acm@muc.de> wrote:
Hello again, Marti.

In article <mailman.13159.1502810889.21957.bug-gnu-emacs@gnu.org&g= t; you wrote:
> [-- text/plain, encoding 7bit, charset: UTF-8, 98 lines --]

> 1. From emacs -Q, open this file:


> https://github.com/zephyrproject-rtos/zep= hyr/blob/2de59023dc726e61244eb7cca17252294016c65a/subsys/net= /lib/http/http_client.c

> 2. Observe incorrect syntax highlighting at beginning of file. Screens= hot:

>=C2=A0 =C2=A0 https://postimg.org/image/tzy8qgjjz/<= br>
>=C2=A0 =C2=A0 (Note that loading a C file with = just the #ifdefs and initial
>=C2=A0 =C2=A0 comment which fail to highlight above doesn't reprodu= ce the issue.)

I think the following patch should fix the bug.=C2=A0 Would you plea= se apply
it, try it out, and either confirm to me that it fixes the bug, or tell
me what's still wrong:


diff -r 9533dc4cbda3 cc-mode.el
--- a/cc-mode.el=C2=A0 =C2=A0 =C2=A0 =C2=A0 Thu Jul 27 17:37:02 2017 +0000<= br> +++ b/cc-mode.el=C2=A0 =C2=A0 =C2=A0 =C2=A0 Wed Aug 16 20:48:54 2017 +0000<= br> @@ -1529,10 +1529,13 @@
=C2=A0 =C2=A0 =C2=A0(c-backward-syntactic-ws)
=C2=A0 =C2=A0 =C2=A0(when (setq pos1 (c-on-identifier))
=C2=A0 =C2=A0 =C2=A0 =C2=A0(goto-char pos1)
-=C2=A0 =C2=A0 =C2=A0 (when (and (c-forward-declarator)
-=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (eq (c-forward-tok= en-2) 0))
-=C2=A0 =C2=A0 =C2=A0 =C2=A0(c-backward-syntactic-ws)
-=C2=A0 =C2=A0 =C2=A0 =C2=A0(point)))))
+=C2=A0 =C2=A0 =C2=A0 (let ((lim (save-excursion
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (and (c-beg= inning-of-macro)
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0(progn (c-end-of-macro) (point))))))
+=C2=A0 =C2=A0 =C2=A0 =C2=A0(when (and (c-forward-declarator lim)
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (eq (c-forw= ard-token-2 1 nil lim) 0))
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(c-backward-syntactic-ws)
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(point))))))

=C2=A0(defun c-change-expand-fl-region (beg end old-len)
=C2=A0 =C2=A0;; Expand the region (c-new-BEG c-new-END) to an after-change = font-lock

I couldn't manage to get = this to apply, but I made the changes manually; git format-patch output for= the relevant commit is attached. This did indeed resolve the issue.
<= div>=C2=A0

Thanks for taking the trouble to report this bug.


Thank= s for taking the time to investigate and fix it.

M= arti
=C2=A0
> In GNU Emacs 26.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.= 11)
>=C2=A0 of 2017-08-10 built on plop
> Repository revision: 81656add8117e8d1b7faab18b330d0706462b433
> Windowing system distributor 'The X.Org Foundation', version 1= 1.0.11903000
> System Description: Ubuntu 17.04

--
Alan Mackenzie (Nuremberg, Germany).


--001a114592944835730557488a4b-- --001a114592944835770557488a4d Content-Type: text/x-patch; charset="US-ASCII"; name="0001-Test-c-fontification-fix.patch" Content-Disposition: attachment; filename="0001-Test-c-fontification-fix.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_j6mk4ur00 RnJvbSA5NWEzOWIzMzk1OWI5OGY0YjMxNGMxYzQ0MTA2MDY4MmJmNDlhYTQ0IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBNYXJ0aSBCb2xpdmFyIDxtYXJ0aS5mLmJvbGl2YXJAZ21haWwu Y29tPgpEYXRlOiBNb24sIDIxIEF1ZyAyMDE3IDExOjQ3OjI5IC0wNzAwClN1YmplY3Q6IFtQQVRD SF0gVGVzdCBjIGZvbnRpZmljYXRpb24gZml4CgpGcm9tOiBBbGFuIE1hY2tlbnppZSA8YWNtQG11 Yy5kZT4KLS0tCiBsaXNwL3Byb2dtb2Rlcy9jYy1tb2RlLmVsIHwgMTEgKysrKysrKy0tLS0KIDEg ZmlsZSBjaGFuZ2VkLCA3IGluc2VydGlvbnMoKyksIDQgZGVsZXRpb25zKC0pCgpkaWZmIC0tZ2l0 IGEvbGlzcC9wcm9nbW9kZXMvY2MtbW9kZS5lbCBiL2xpc3AvcHJvZ21vZGVzL2NjLW1vZGUuZWwK aW5kZXggMGJmODliOWEzNi4uZjI3ZWM4NzIyYyAxMDA2NDQKLS0tIGEvbGlzcC9wcm9nbW9kZXMv Y2MtbW9kZS5lbAorKysgYi9saXNwL3Byb2dtb2Rlcy9jYy1tb2RlLmVsCkBAIC0xNTQ5LDEwICsx NTQ5LDEzIEBAIGMtZmwtZGVjbC1lbmQKICAgICAoYy1iYWNrd2FyZC1zeW50YWN0aWMtd3MpCiAg ICAgKHdoZW4gKHNldHEgcG9zMSAoYy1vbi1pZGVudGlmaWVyKSkKICAgICAgIChnb3RvLWNoYXIg cG9zMSkKLSAgICAgICh3aGVuIChhbmQgKGMtZm9yd2FyZC1kZWNsYXJhdG9yKQotCQkgKGVxIChj LWZvcndhcmQtdG9rZW4tMikgMCkpCi0JKGMtYmFja3dhcmQtc3ludGFjdGljLXdzKQotCShwb2lu dCkpKSkpCisgICAgICAobGV0ICgobGltIChzYXZlLWV4Y3Vyc2lvbgorICAgICAgICAgICAgICAg ICAgKGFuZCAoYy1iZWdpbm5pbmctb2YtbWFjcm8pCisgICAgICAgICAgICAgICAgICAgICAgIChw cm9nbiAoYy1lbmQtb2YtbWFjcm8pIChwb2ludCkpKSkpKQorICAgICAgICh3aGVuIChhbmQgKGMt Zm9yd2FyZC1kZWNsYXJhdG9yIGxpbSkKKyAgICAgICAgICAgICAgICAgIChlcSAoYy1mb3J3YXJk LXRva2VuLTIgMSBuaWwgbGltKSAwKSkKKyAgICAgICAgIChjLWJhY2t3YXJkLXN5bnRhY3RpYy13 cykKKyAgICAgICAgIChwb2ludCkpKSkpKQogCiAoZGVmdW4gYy1jaGFuZ2UtZXhwYW5kLWZsLXJl Z2lvbiAoX2JlZyBfZW5kIF9vbGQtbGVuKQogICA7OyBFeHBhbmQgdGhlIHJlZ2lvbiAoYy1uZXct QkVHIGMtbmV3LUVORCkgdG8gYW4gYWZ0ZXItY2hhbmdlIGZvbnQtbG9jawotLSAKMi4xMS4wCgo= --001a114592944835770557488a4d-- From unknown Fri Jun 20 07:19: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: Marti Bolivar Subject: bug#28098: closed (Re: bug#28098: 26.0.50; bad C fontification) Message-ID: References: <20170822171745.GA14983@ACM> X-Gnu-PR-Message: they-closed 28098 X-Gnu-PR-Package: emacs,cc-mode Reply-To: 28098@debbugs.gnu.org Date: Tue, 22 Aug 2017 17:20:01 +0000 Content-Type: multipart/mixed; boundary="----------=_1503422401-10898-1" This is a multi-part message in MIME format... ------------=_1503422401-10898-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #28098: 26.0.50; bad C fontification 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 28098@debbugs.gnu.org. --=20 28098: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D28098 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1503422401-10898-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 28098-done) by debbugs.gnu.org; 22 Aug 2017 17:19:30 +0000 Received: from localhost ([127.0.0.1]:49810 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dkCpu-0002ox-Kd for submit@debbugs.gnu.org; Tue, 22 Aug 2017 13:19:30 -0400 Received: from ocolin.muc.de ([193.149.48.4]:38813 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1dkCps-0002op-NY for 28098-done@debbugs.gnu.org; Tue, 22 Aug 2017 13:19:29 -0400 Received: (qmail 17016 invoked by uid 3782); 22 Aug 2017 17:19:27 -0000 Received: from acm.muc.de (p548C6B47.dip0.t-ipconnect.de [84.140.107.71]) by colin.muc.de (tmda-ofmipd) with ESMTP; Tue, 22 Aug 2017 19:19:26 +0200 Received: (qmail 15242 invoked by uid 1000); 22 Aug 2017 17:17:45 -0000 Date: Tue, 22 Aug 2017 17:17:45 +0000 To: Marti Bolivar Subject: Re: bug#28098: 26.0.50; bad C fontification Message-ID: <20170822171745.GA14983@ACM> References: <20170816205722.954.qmail@mail.muc.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.7.2 (2016-11-26) 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: 28098-done Cc: 28098-done@debbugs.gnu.org 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 (/) On Mon, Aug 21, 2017 at 12:32:30 -0700, Marti Bolivar wrote: > Hi Alan, > Thanks for the patch. [ .... ] > I couldn't manage to get this to apply, but I made the changes manually; > git format-patch output for the relevant commit is attached. This did > indeed resolve the issue. Sorry about that and thanks for taking the trouble! I've committed the patch, and am closing the bug with this email. > Marti -- Alan Mackenzie (Nuremberg, Germany). ------------=_1503422401-10898-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 15 Aug 2017 15:27:47 +0000 Received: from localhost ([127.0.0.1]:38225 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dhdkw-0007Bq-KQ for submit@debbugs.gnu.org; Tue, 15 Aug 2017 11:27:47 -0400 Received: from eggs.gnu.org ([208.118.235.92]:39146) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dhd6J-0006lh-8j for submit@debbugs.gnu.org; Tue, 15 Aug 2017 10:45:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dhd6C-0005iR-KF for submit@debbugs.gnu.org; Tue, 15 Aug 2017 10:45:42 -0400 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]:42021) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dhd6C-0005i8-E0 for submit@debbugs.gnu.org; Tue, 15 Aug 2017 10:45:40 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58342) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dhd6A-0007In-I6 for bug-gnu-emacs@gnu.org; Tue, 15 Aug 2017 10:45:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dhd68-0005cN-Or for bug-gnu-emacs@gnu.org; Tue, 15 Aug 2017 10:45:38 -0400 Received: from mail-io0-x22d.google.com ([2607:f8b0:4001:c06::22d]:35331) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dhd68-0005av-GJ for bug-gnu-emacs@gnu.org; Tue, 15 Aug 2017 10:45:36 -0400 Received: by mail-io0-x22d.google.com with SMTP id m88so3990840iod.2 for ; Tue, 15 Aug 2017 07:45:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=9pgv6Fl4r7K9GxMcq+BUrkJu/YSwUI1hdN+NJeAqqj8=; b=nFFv8z8EZWn9YS/kqRXSH+xNNDXxDIQf4V4yo0u9QLAAXjo0+nZZZWrkx2wcW24uM2 tnA55iWDD9NUl8gNa5BcijvTq/RsKYY/nfpaowXwAS52IxZyiTvlMmZZLZZaq/jDC5OK zM3v3EhGqv1levjSOBSXiTfTVGnFhxRZwOTDz/vnEGnEe0NxgVQQzVFiuf2VJUF+Vm9r oraNE36uBPX2ksAmYxbsADFlZv+YLRyuWxxliyA+lD35cXCv6p54UARS1Zdgj2n+aa0Z Za4tDUzT+o22uqbzLapp4zD3b4YjZOqGAUeoIeHpMqQT8dJUZCbcdsr/bIHwaKxQeyJD SeyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=9pgv6Fl4r7K9GxMcq+BUrkJu/YSwUI1hdN+NJeAqqj8=; b=SosuG4Mpou9zIz802cUcgcWR0lB4LnA2GIfvyTKpsFnnAAZ4usFHUAsQcUFKC6budu BanKX5XLC3Q7QA3i+JYxcpFf9tdVPL0gFPBtkC4LFiP+qPgyVHadyM0Ja65hhx1ouZLd 8ZCkW56DZNQ53skRAI0guqbdN6Mb4lCwrApo8c5SUnS69/lQM6+eEWndW5cK0F1s+cqO Wyj9zCXhiMmhTrqXZ7tKJkLF3sVTAzrGTrl0VGmg2pLb81ZLeNbhcDoUTtl+NZUbhyOW 5TCrewsbamIHt0NCa5OaH9O/X724++LiSBrtm1CFB6jLkXFLVdH4xtrTf8yZQ37+0v+M udHQ== X-Gm-Message-State: AHYfb5ix9Exo5Ssg5iN2pGiGsMs1+gmRcWD2sYV70VnMap41WN/kdLSs qNt2O8VCr7IPALveU4l6fDHj9dpWQiP4 X-Received: by 10.107.43.131 with SMTP id r125mr22846703ior.76.1502808333983; Tue, 15 Aug 2017 07:45:33 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.164.151 with HTTP; Tue, 15 Aug 2017 07:45:33 -0700 (PDT) From: Marti Bolivar Date: Tue, 15 Aug 2017 10:45:33 -0400 Message-ID: Subject: 26.0.50; bad C fontification To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary="001a11398748e9c7680556cbd4ca" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Tue, 15 Aug 2017 11:27:45 -0400 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: -4.0 (----) --001a11398748e9c7680556cbd4ca Content-Type: text/plain; charset="UTF-8" 1. From emacs -Q, open this file: https://github.com/zephyrproject-rtos/zephyr/blob/2de59023dc726e61244eb7cca17252294016c65a/subsys/net/lib/http/http_client.c 2. Observe incorrect syntax highlighting at beginning of file. Screenshot: https://postimg.org/image/tzy8qgjjz/ (Note that loading a C file with just the #ifdefs and initial comment which fail to highlight above doesn't reproduce the issue.) In GNU Emacs 26.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.11) of 2017-08-10 built on plop Repository revision: 81656add8117e8d1b7faab18b330d0706462b433 Windowing system distributor 'The X.Org Foundation', version 11.0.11903000 System Description: Ubuntu 17.04 Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Making completion list... mwheel-scroll: Beginning of buffer [21 times] Making completion list... Configured using: 'configure --without-pop' Configured features: XPM JPEG TIFF GIF PNG SOUND DBUS GSETTINGS NOTIFY GNUTLS FREETYPE XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 Important settings: value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: C/*l Minor modes in effect: diff-auto-refine-mode: t 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 transient-mark-mode: t abbrev-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message subr-x puny seq byte-opt gv bytecomp byte-compile cconv dired dired-loaddefs format-spec rfc822 mml mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils vc-git diff-mode easy-mmode cc-mode cc-fonts easymenu cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs cl-loaddefs cl-lib time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray 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 dbusbind inotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 123261 11555) (symbols 48 22839 1) (miscs 40 60 140) (strings 32 35859 1155) (string-bytes 1 1079093) (vectors 16 17814) (vector-slots 8 527552 12359) (floats 8 52 134) (intervals 56 1378 3) (buffers 992 13)) --001a11398748e9c7680556cbd4ca Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

1. From emacs -Q, open this file:

=C2=A0 =C2=A0https://github.com/zephyrproject-rtos/zephyr/blob/2de5= 9023dc726e61244eb7cca17252294016c65a/subsys/net/lib/http/http_client.c<= /div>

2. Observe incorrect syntax highlighting at beginn= ing of file. Screenshot:





<= div>


cc-vars cc-defs cl-loaddefs cl-lib time-date mule-util tooltip eldoc
electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-w= in
x-win term/common-win x-dnd tool-bar dnd fontset image regexp-= opt fringe
tabulated-list replace newcomment text-mode elisp-mode= lisp-mode
prog-mode register page menu-bar rfn-eshadow isearch t= imer select
scroll-bar mouse jit-lock font-lock syntax facemenu f= ont-core
term/tty-colors frame cl-generic cham georgian utf-8-lan= g misc-lang
vietnamese tibetan thai tai-viet lao korean japanese = eucjp-ms cp51932
hebrew greek romanian slovak czech european ethi= opic indian cyrillic
chinese composite charscript charprop case-t= able epa-hook jka-cmpr-hook
help simple abbrev obarray minibuffer= cl-preloaded nadvice loaddefs
button faces cus-face macroexp fil= es text-properties overlay sha1 md5
base64 format env code-pages = mule custom widget hashtable-print-readable
backquote dbusbind in= otify dynamic-setting system-font-setting
font-render-setting mov= e-toolbar gtk x-toolkit x multi-tty
make-network-process emacs)

Memory information:
((conses 16 123261 11= 555)
=C2=A0(symbols 48 22839 1)
=C2=A0(miscs 40 60 140)=
=C2=A0(strings 32 35859 1155)
=C2=A0(string-bytes 1 10= 79093)
=C2=A0(vectors 16 17814)
=C2=A0(vector-slots 8 5= 27552 12359)
=C2=A0(floats 8 52 134)
=C2=A0(intervals 5= 6 1378 3)
=C2=A0(buffers 992 13))

--001a11398748e9c7680556cbd4ca-- ------------=_1503422401-10898-1--