From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#28098: 26.0.50; bad C fontification Date: 16 Aug 2017 17:49:48 -0000 Organization: muc.de e.V. Message-ID: <20170816174948.36467.qmail__10749.2750430994$1502905878$gmane$org@mail.muc.de> References: NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1502905878 5139 195.159.176.226 (16 Aug 2017 17:51:18 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 16 Aug 2017 17:51:18 +0000 (UTC) User-Agent: tin/2.4.1-20161224 ("Daill") (UNIX) (FreeBSD/11.0-RELEASE-p2 (amd64)) Cc: 28098@debbugs.gnu.org To: Marti Bolivar Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Aug 16 19:51:14 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 1di2TF-0000mT-7T for geb-bug-gnu-emacs@m.gmane.org; Wed, 16 Aug 2017 19:51:09 +0200 Original-Received: from localhost ([::1]:35867 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1di2TL-0005X8-L7 for geb-bug-gnu-emacs@m.gmane.org; Wed, 16 Aug 2017 13:51:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56726) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1di2SG-0004ib-BV for bug-gnu-emacs@gnu.org; Wed, 16 Aug 2017 13:50:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1di2SA-0005nS-Kg for bug-gnu-emacs@gnu.org; Wed, 16 Aug 2017 13:50:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:32774) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1di2SA-0005n4-HB; Wed, 16 Aug 2017 13:50:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1di2SA-0002Lm-6G; Wed, 16 Aug 2017 13:50:02 -0400 X-Loop: help-debbugs@gnu.org 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: Original-Received: via spool by 28098-submit@debbugs.gnu.org id=B28098.15029057929012 (code B ref 28098); Wed, 16 Aug 2017 17:50:02 +0000 Original-Received: (at 28098) by debbugs.gnu.org; 16 Aug 2017 17:49:52 +0000 Original-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 Original-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 Original-Received: (qmail 36468 invoked by uid 3782); 16 Aug 2017 17:49:48 -0000 In-Reply-To: X-Newsgroups: gnu.emacs.bug 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:135834 Archived-At: 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).