From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Marti Bolivar Newsgroups: gmane.emacs.bugs Subject: bug#28098: 26.0.50; bad C fontification Date: Tue, 15 Aug 2017 10:45:33 -0400 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a11398748e9c7680556cbd4ca" X-Trace: blaine.gmane.org 1502810905 8099 195.159.176.226 (15 Aug 2017 15:28:25 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 15 Aug 2017 15:28:25 +0000 (UTC) To: 28098@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Aug 15 17:28:18 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dhdlK-0001Og-HU for geb-bug-gnu-emacs@m.gmane.org; Tue, 15 Aug 2017 17:28:10 +0200 Original-Received: from localhost ([::1]:41445 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dhdlQ-00085m-TA for geb-bug-gnu-emacs@m.gmane.org; Tue, 15 Aug 2017 11:28:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44442) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dhdlE-000813-3N for bug-gnu-emacs@gnu.org; Tue, 15 Aug 2017 11:28:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dhdlC-00056H-GB for bug-gnu-emacs@gnu.org; Tue, 15 Aug 2017 11:28:04 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:57778) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dhdlC-00055w-Cd for bug-gnu-emacs@gnu.org; Tue, 15 Aug 2017 11:28:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dhdlC-0007C7-4T for bug-gnu-emacs@gnu.org; Tue, 15 Aug 2017 11:28:02 -0400 X-Loop: help-debbugs@gnu.org 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: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.150281086727646 (code B ref -1); Tue, 15 Aug 2017 15:28:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 15 Aug 2017 15:27:47 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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) Original-Received: by 10.107.164.151 with HTTP; Tue, 15 Aug 2017 07:45:33 -0700 (PDT) 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-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 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:135776 Archived-At: --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--