From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Mauro Aranda Newsgroups: gmane.emacs.bugs Subject: bug#35454: 26.2.50; CC-Mode fontification fails inside macro Date: Sat, 27 Apr 2019 12:57:05 -0300 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000000e4be40587851b0d" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="159341"; mail-complaints-to="usenet@blaine.gmane.org" To: 35454@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Apr 27 18:12:24 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hKPw5-000fKB-NJ for geb-bug-gnu-emacs@m.gmane.org; Sat, 27 Apr 2019 18:12:21 +0200 Original-Received: from localhost ([127.0.0.1]:33826 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hKPw4-0003qP-M7 for geb-bug-gnu-emacs@m.gmane.org; Sat, 27 Apr 2019 12:12:20 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:58073) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hKPvt-0003mG-5L for bug-gnu-emacs@gnu.org; Sat, 27 Apr 2019 12:12:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hKPvp-0007hN-HZ for bug-gnu-emacs@gnu.org; Sat, 27 Apr 2019 12:12:08 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50508) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hKPvn-0007eK-3e for bug-gnu-emacs@gnu.org; Sat, 27 Apr 2019 12:12:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hKPvm-00074q-UA for bug-gnu-emacs@gnu.org; Sat, 27 Apr 2019 12:12:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mauro Aranda Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 27 Apr 2019 16:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 35454 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs Original-Received: via spool by submit@debbugs.gnu.org id=B.155638148527150 (code B ref -1); Sat, 27 Apr 2019 16:12:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 27 Apr 2019 16:11:25 +0000 Original-Received: from localhost ([127.0.0.1]:35818 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hKPvB-00073p-Ag for submit@debbugs.gnu.org; Sat, 27 Apr 2019 12:11:25 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:43537) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hKPv6-00073K-Kh for submit@debbugs.gnu.org; Sat, 27 Apr 2019 12:11:21 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:41207) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hKPv0-0006Sj-NZ for submit@debbugs.gnu.org; Sat, 27 Apr 2019 12:11:15 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:57853) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hKPuy-0003F5-Tp for bug-gnu-emacs@gnu.org; Sat, 27 Apr 2019 12:11:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hKPha-0002gs-Fu for bug-gnu-emacs@gnu.org; Sat, 27 Apr 2019 11:57:24 -0400 Original-Received: from mail-lj1-x22d.google.com ([2a00:1450:4864:20::22d]:44905) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hKPhY-0002Yu-RU for bug-gnu-emacs@gnu.org; Sat, 27 Apr 2019 11:57:22 -0400 Original-Received: by mail-lj1-x22d.google.com with SMTP id h16so5565043ljg.11 for ; Sat, 27 Apr 2019 08:57:19 -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=xymZtn0cZRsHFFqMjkZJ5Jb1Wim3qn/jLKExJmPP/RE=; b=PuszW7O6DScjWdH2oNkSi+FOea+NPS84+2gElJMwnGsx27L/zD9DGOVoBE7foVkjY9 JaFnuptfdOtixChjtrag23XZ606B7Nqf539QCBPSzWwTp5HbcceApoe7714tdOm+KZwo qK5WfmvMKc8ltirNIC6s6FUESO+mCyELLc7rorwhFjjaM4QRTxOWuLDzbRDes+5+847e bC3hmIiH7kfXsKRixnxLuT7s5cuVGUdFKd8DYNWwVeN3l185OHse+4o90TY65yixbBsj /47lnHG58aavTG8uSGHwAMR8seu6vMo/u1SQQAq9qnrjPtviNDiTm0R4EWDgFqYc1wcF 7Ecg== 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=xymZtn0cZRsHFFqMjkZJ5Jb1Wim3qn/jLKExJmPP/RE=; b=t4pI2aA3WH/o2LtCsOQkwbPbEcDc9U89Pv5mWxArBRgGrPrUw/Mdo4iwGE/QI1rmZu f2E2Hpb7cZl3Jso3ipTBGUFId4CwVTO3yZAKEhJFvhSm34ouMiI7afR9bqU0WmVwa2cm dEOWNoJ/whdgCOq3jejcZXzOvd/9XxeBt8KkMkaST3PEhge8QQDwq4JxlszNRWIef38Y 8v6sSoSruGkVsMunji2xcQz65HhGjRZiS5Nq7Ek4BJ1Rnf+pFrG6vBLsM6+lO0CiCm7B rRAGmQoTU8LROR3bi04hCZsl+jBEspXuvjfhtExFYsfKCbA2fIvgIbAgNXGUSlhK8LHh bjsA== X-Gm-Message-State: APjAAAXVgg7+GZgf6R5NvNmYMTRvO2RzuMGkA2ocYYVTX7iG6CC3b0rV zKwo4Qn8rGgE61mZCAo9z+k3wKsDetymd1hAmyoQ3fbhb2M= X-Google-Smtp-Source: APXvYqxMUSTWCCKCedFAMueiWwl5YTqj00/5L8Lkz3x2RsAb23o+K/LQBN9bJuC8MxY6tzJESvcwL+4DDhJ05tB3RGs= X-Received: by 2002:a2e:5b5c:: with SMTP id p89mr27372083ljb.177.1556380637873; Sat, 27 Apr 2019 08:57:17 -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-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: 209.51.188.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:158358 Archived-At: --0000000000000e4be40587851b0d Content-Type: text/plain; charset="UTF-8" Hello. Steps to reproduce: 1) emacs -Q 2) Open up a new .c file: C-x C-f test.c 3) Type this text: #define FOO \ /* Some comms. */ \ struct foobar my_foo; \ struct foobar my_bar; The first struct foobar after the comment is not fontified as the second one. That is, the second foobar has face font-lock-type-face, and my_bar has face font-lock-variable-name-face, but the first foobar and my_foo don't get those face values. I actually bumped into this issue while visiting the emacs source file src/editfns.c. In that file, search for "#define EXTRA_CONTEXT_FIELDS" and the problem should be evident. I can reproduce it with the latest Emacs 26, as well as with the latest master: Repository revision: 8dc00b2f1e6523c634df3e24379afbe712a32b27 Repository branch: master Best regards, Mauro. In GNU Emacs 26.2.50 (build 1, i686-pc-linux-gnu, GTK+ Version 3.18.9) of 2019-04-23 built on the-blackbeard Repository revision: 9ec18fbd560526ab19c6171aff15995d1307233e Windowing system distributor 'The X.Org Foundation', version 11.0.11906000 System Description: Ubuntu 16.04.6 LTS Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. (New file) Auto-saving...done Quit Making completion list... Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS GLIB NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM THREADS LCMS2 Important settings: value of $LANG: en_US.utf8 value of $XMODIFIERS: locale-coding-system: utf-8-unix Major mode: C/*l 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 transient-mark-mode: t abbrev-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc 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 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 elec-pair 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 threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 8 115795 11061) (symbols 24 22635 1) (miscs 20 58 184) (strings 16 34126 1595) (string-bytes 1 1031562) (vectors 12 17262) (vector-slots 4 561150 8896) (floats 8 51 121) (intervals 28 306 68) (buffers 536 13) (heap 1024 38012 1009)) --0000000000000e4be40587851b0d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello.

Steps to reproduce:
1) e= macs -Q
2) Open up a new .c file:
C-x C-f test.c
3) Type this text= :
#define FOO=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 \
=C2=A0 /* Some c= omms.=C2=A0 */ =C2=A0=C2=A0=C2=A0 \
=C2=A0 struct foobar my_foo; \
= =C2=A0 struct foobar my_bar;

The first struct foobar after the comme= nt is not fontified as the second
one.=C2=A0 That is, the second foobar = has face font-lock-type-face, and
my_bar has face font-lock-variable-nam= e-face, but the first foobar and
my_foo don't get those face values.=

I actually bumped into this issue while visiting the emacs source f= ile
src/editfns.c.=C2=A0 In that file, search for "#define EXTRA_CO= NTEXT_FIELDS"
and the problem should be evident.

I can repro= duce it with the latest Emacs 26, as well as with the latest
master:
= Repository revision: 8dc00b2f1e6523c634df3e24379afbe712a32b27
Repository= branch: master

Best regards,
Mauro.


In GNU Emacs 26.2= .50 (build 1, i686-pc-linux-gnu, GTK+ Version 3.18.9)
=C2=A0of 2019-04-2= 3 built on the-blackbeard
Repository revision: 9ec18fbd560526ab19c6171af= f15995d1307233e
Windowing system distributor 'The X.Org Foundation&#= 39;, version 11.0.11906000
System Description:=C2=A0=C2=A0=C2=A0 Ubuntu = 16.04.6 LTS

Recent messages:
For information about GNU Emacs and = the GNU system, type C-h C-a.
(New file)
Auto-saving...done
QuitMaking completion list...

Configured features:
XPM JPEG TIFF GI= F PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS GLIB
NOTIFY ACL LIBSELIN= UX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB
TOOLKIT_SCROLL_BARS = GTK3 X11 XDBE XIM THREADS LCMS2

Important settings:
=C2=A0 value = of $LANG: en_US.utf8
=C2=A0 value of $XMODIFIERS:
=C2=A0 locale-codi= ng-system: utf-8-unix

Major mode: C/*l

Minor modes in effect:=
=C2=A0 tooltip-mode: t
=C2=A0 global-eldoc-mode: t
=C2=A0 electri= c-indent-mode: t
=C2=A0 mouse-wheel-mode: t
=C2=A0 tool-bar-mode: t=C2=A0 menu-bar-mode: t
=C2=A0 file-name-shadow-mode: t
=C2=A0 glob= al-font-lock-mode: t
=C2=A0 font-lock-mode: t
=C2=A0 blink-cursor-mod= e: t
=C2=A0 auto-composition-mode: t
=C2=A0 auto-encryption-mode: t=C2=A0 auto-compression-mode: t
=C2=A0 line-number-mode: t
=C2=A0 t= ransient-mark-mode: t
=C2=A0 abbrev-mode: t

Load-path shadows:None found.

Features:
(shadow sort mail-extr emacsbug message rm= c 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-d= rums
mm-util mail-prsvr mail-utils cc-mode cc-fonts easymenu cc-guesscc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs
cl-loadde= fs cl-lib elec-pair 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 re= place 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 ge= orgian utf-8-lang misc-lang
vietnamese tibetan thai tai-viet lao korean = japanese eucjp-ms cp51932
hebrew greek romanian slovak czech european et= hiopic indian cyrillic
chinese composite charscript charprop case-table = epa-hook jka-cmpr-hook
help simple abbrev obarray minibuffer cl-preloade= d nadvice loaddefs
button faces cus-face macroexp files text-properties = overlay sha1 md5
base64 format env code-pages mule custom widget hashtab= le-print-readable
backquote threads dbusbind inotify lcms2 dynamic-setti= ng
system-font-setting font-render-setting move-toolbar gtk x-toolkit x<= br>multi-tty make-network-process emacs)

Memory information:
((co= nses 8 115795 11061)
=C2=A0(symbols 24 22635 1)
=C2=A0(miscs 20 58 18= 4)
=C2=A0(strings 16 34126 1595)
=C2=A0(string-bytes 1 1031562)
= =C2=A0(vectors 12 17262)
=C2=A0(vector-slots 4 561150 8896)
=C2=A0(fl= oats 8 51 121)
=C2=A0(intervals 28 306 68)
=C2=A0(buffers 536 13)
= =C2=A0(heap 1024 38012 1009))

--0000000000000e4be40587851b0d--