From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Rittwik Chatterjee Newsgroups: gmane.emacs.bugs Subject: bug#33147: 26.1; Latex inline math syntax highlighting problem Date: Thu, 25 Oct 2018 12:34:19 +0530 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000e5ce35057908361f" X-Trace: blaine.gmane.org 1540450990 5621 195.159.176.226 (25 Oct 2018 07:03:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 25 Oct 2018 07:03:10 +0000 (UTC) To: 33147@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 25 09:03:06 2018 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 1gFZfd-0001MP-Nj for geb-bug-gnu-emacs@m.gmane.org; Thu, 25 Oct 2018 09:03:05 +0200 Original-Received: from localhost ([::1]:52864 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gFZhk-0004MJ-1l for geb-bug-gnu-emacs@m.gmane.org; Thu, 25 Oct 2018 03:05:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34958) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gFZhY-0004M5-Ny for bug-gnu-emacs@gnu.org; Thu, 25 Oct 2018 03:05:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gFZhX-0005tO-4A for bug-gnu-emacs@gnu.org; Thu, 25 Oct 2018 03:05:04 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:36899) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gFZhX-0005t8-0s for bug-gnu-emacs@gnu.org; Thu, 25 Oct 2018 03:05:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gFZhW-0008La-AN for bug-gnu-emacs@gnu.org; Thu, 25 Oct 2018 03:05:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Rittwik Chatterjee Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 25 Oct 2018 07:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 33147 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.154045108632057 (code B ref -1); Thu, 25 Oct 2018 07:05:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 25 Oct 2018 07:04:46 +0000 Original-Received: from localhost ([127.0.0.1]:41157 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gFZhF-0008Kz-KV for submit@debbugs.gnu.org; Thu, 25 Oct 2018 03:04:46 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:53491) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gFZhD-0008Km-RQ for submit@debbugs.gnu.org; Thu, 25 Oct 2018 03:04:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gFZh7-0005dT-3U for submit@debbugs.gnu.org; Thu, 25 Oct 2018 03:04:38 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:45636) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gFZh6-0005dK-UY for submit@debbugs.gnu.org; Thu, 25 Oct 2018 03:04:37 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34865) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gFZh5-0004JS-Do for bug-gnu-emacs@gnu.org; Thu, 25 Oct 2018 03:04:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gFZh3-0005c9-OS for bug-gnu-emacs@gnu.org; Thu, 25 Oct 2018 03:04:35 -0400 Original-Received: from mail-ot1-x329.google.com ([2607:f8b0:4864:20::329]:41253) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gFZh3-0005bg-Bo for bug-gnu-emacs@gnu.org; Thu, 25 Oct 2018 03:04:33 -0400 Original-Received: by mail-ot1-x329.google.com with SMTP id c32so7799002otb.8 for ; Thu, 25 Oct 2018 00:04:32 -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=vWA484WZp3VxUr6HK9Ywn7v7otTSqGZAlDsloJpliyg=; b=BpCRSPMVULjVcoAl+Rd7K1hzM52ApDI5J7AgxScYF1wF4YFSufMsnigAMZALsvRg9g imdv3rH9cozUtYLksnQE0+hlUYMhMXDZhMf4mcPp86wSlnGuQOeAGqI7DuvH04KJdyb+ R60AnYlQwP2oSCrH8XArgOm1qe3fIfC0yKMXm/Q8U3pDzgZ5OvNYTAvPGATJRr3Sq01b Ao9x7uR0MhWeNvdySf494pyxzzS2g0e+BOo9wDgB6W17f/xoHJPjwYDAq84g5DaTjJ3/ TCFbVtR2s0v0hCMboHqobKpOxdTX03m43b5Kp7whjqBi7/cI4493yVM57/Rxas9j6woo neRg== 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=vWA484WZp3VxUr6HK9Ywn7v7otTSqGZAlDsloJpliyg=; b=WduOLt88c0MQM0e6mg6nmp9M+IEeaVf0aVbZNo/UNSOKBR8jGvjQ7XNVLj86B+n1LG NbF1fyiiaP4+mwA/YF4r9P43H4KudBpUwPEuUqz6MP8jhDDm3Fj+/RpXGaPrPCFaE9Tl tt4OesPc+KCxPmcBeRNIj3SMDE5d9CU9mCyEpOukkrdkE93jiOSO4ThI2mZiZef9Stya byj+At0x0/orP2U4rESzqbhTVbWTH/CVH90l2Hd5rq/WCd1xONsXoBu4oVemce8Jotgn HA/oATaKa6Rv/jF/L8CPdN9qmypR2R+9GG594QfyzmvpCwVPrS1WzIfO4V5cuTO4mFc3 Hv3A== X-Gm-Message-State: AGRZ1gKyanhacUatlbwfJW4eUVHQWd17WgVGn0zPadrQsZHG+po3h0t1 YhlnaK+DjwImg9ZtLbtvLiV4K0liLp6h0bORywbqkLV4 X-Google-Smtp-Source: AJdET5fyrfBos1R+ImGCgnxzBpcxmhQva5t1bgpd3Fa/HewQK6CTP7Pf+ltVq8+TtAx7m0RzqsTXOqyyryCRc820sAQ= X-Received: by 2002:a9d:5c19:: with SMTP id o25mr409840otk.264.1540451071281; Thu, 25 Oct 2018 00:04:31 -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: 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:151589 Archived-At: --000000000000e5ce35057908361f Content-Type: text/plain; charset="UTF-8" Create any 'tex' file, say 'a.tex'. Start emacs by executing 'emacs -Q' Visit the tex file with emacs. Paste the following ${{{{a}}}}$ The syntax highlighting will not work. Another (real life) example $t = \frac{\hat{\beta}_{1} - \beta_{1}}{\sqrt{\frac{\sigma^{2}}{n} \frac{\sum X_{i}^{2}}{\sum x_{i}^{2}}}}$ It seems that upto three nested '{}', the syntax highlighting is working. But beyond that it is not. In GNU Emacs 26.1 (build 1, x86_64-redhat-linux-gnu, GTK+ Version 3.22.30) of 2018-06-26 built on buildhw-10.phx2.fedoraproject.org Windowing system distributor 'Fedora Project', version 11.0.11906000 Recent messages: Loading /usr/share/emacs/site-lisp/site-start.d/cmake-init.el (source)...done Loading /usr/share/emacs/site-lisp/site-start.d/desktop-entry-mode-init.el (source)...done Loading /usr/share/emacs/site-lisp/site-start.d/git-init.el (source)...done For information about GNU Emacs and the GNU system, type C-h C-a. Configured using: 'configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-dbus --with-gif --with-jpeg --with-png --with-rsvg --with-tiff --with-xft --with-xpm --with-x-toolkit=gtk3 --with-gpm=no --with-xwidgets --with-modules build_alias=x86_64-redhat-linux-gnu host_alias=x86_64-redhat-linux-gnu 'CFLAGS=-DMAIL_USE_LOCKF -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' LDFLAGS=-Wl,-z,relro PKG_CONFIG_PATH=:/usr/lib64/pkgconfig:/usr/share/pkgconfig' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND DBUS GSETTINGS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 MODULES THREADS XWIDGETS LCMS2 Important settings: value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: Fundamental 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 blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib dired dired-loaddefs format-spec rfc822 mml easymenu 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 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 dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting xwidget-internal move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 95948 6990) (symbols 48 20405 1) (miscs 40 92 118) (strings 32 28389 1495) (string-bytes 1 744394) (vectors 16 14688) (vector-slots 8 497630 7512) (floats 8 50 67) (intervals 56 308 0) (buffers 992 12)) --000000000000e5ce35057908361f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Create any 'tex' file, say &#= 39;a.tex'.
Start emacs by executing 'emacs -Q'
Visit the = tex file with emacs.

Paste the following
${{{{a}}}}$

The s= yntax highlighting will not work.

Another (real life) example
$t = =3D \frac{\hat{\beta}_{1} - \beta_{1}}{\sqrt{\frac{\sigma^{2}}{n}
\frac{= \sum X_{i}^{2}}{\sum x_{i}^{2}}}}$

It seems that upto three nested &= #39;{}', the syntax highlighting is
working.
But beyond that it i= s not.


In GNU Emacs 26.1 (build 1, x86_64-redhat-linux-gnu, GTK+= Version 3.22.30)
=C2=A0of 2018-06-26 built on buildhw-10.phx2.fedoraproject.org
Window= ing system distributor 'Fedora Project', version 11.0.11906000
R= ecent messages:
Loading /usr/share/emacs/site-lisp/site-start.d/cmake-in= it.el (source)...done
Loading /usr/share/emacs/site-lisp/site-start.d/de= sktop-entry-mode-init.el (source)...done
Loading /usr/share/emacs/site-l= isp/site-start.d/git-init.el (source)...done
For information about GNU E= macs and the GNU system, type C-h C-a.

Configured using:
=C2=A0&#= 39;configure --build=3Dx86_64-redhat-linux-gnu
=C2=A0--host=3Dx86_64-red= hat-linux-gnu --program-prefix=3D
=C2=A0--disable-dependency-tracking --= prefix=3D/usr --exec-prefix=3D/usr
=C2=A0--bindir=3D/usr/bin --sbindir= =3D/usr/sbin --sysconfdir=3D/etc
=C2=A0--datadir=3D/usr/share --included= ir=3D/usr/include --libdir=3D/usr/lib64
=C2=A0--libexecdir=3D/usr/libexe= c --localstatedir=3D/var
=C2=A0--sharedstatedir=3D/var/lib --mandir=3D/u= sr/share/man
=C2=A0--infodir=3D/usr/share/info --with-dbus --with-gif --= with-jpeg --with-png
=C2=A0--with-rsvg --with-tiff --with-xft --with-xpm= --with-x-toolkit=3Dgtk3
=C2=A0--with-gpm=3Dno --with-xwidgets --with-mo= dules
=C2=A0build_alias=3Dx86_64-redhat-linux-gnu host_alias=3Dx86_64-re= dhat-linux-gnu
=C2=A0'CFLAGS=3D-DMAIL_USE_LOCKF -O2 -g -pipe -Wall -= Werror=3Dformat-security
=C2=A0-Wp,-D_FORTIFY_SOURCE=3D2 -Wp,-D_GLIBCXX_= ASSERTIONS -fexceptions
=C2=A0-fstack-protector-strong -grecord-gcc-swit= ches
=C2=A0-specs=3D/usr/lib/rpm/redhat/redhat-hardened-cc1
=C2=A0-sp= ecs=3D/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=3Dgeneric
=C2= =A0-fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection= 9;
=C2=A0LDFLAGS=3D-Wl,-z,relro
=C2=A0PKG_CONFIG_PATH=3D:/usr/lib64/p= kgconfig:/usr/share/pkgconfig'

Configured features:
XPM JPEG = TIFF GIF PNG RSVG IMAGEMAGICK SOUND DBUS GSETTINGS NOTIFY ACL
LIBSELINUX= GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB
TOOLKIT_SCROLL_BARS GT= K3 X11 MODULES THREADS XWIDGETS LCMS2

Important settings:
=C2=A0 = value of $LANG: en_US.UTF-8
=C2=A0 value of $XMODIFIERS: @im=3Dibus
= =C2=A0 locale-coding-system: utf-8-unix

Major mode: Fundamental
<= br>Minor modes in effect:
=C2=A0 tooltip-mode: t
=C2=A0 global-eldoc-= mode: t
=C2=A0 electric-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-shad= ow-mode: t
=C2=A0 global-font-lock-mode: t
=C2=A0 blink-cursor-mode: = t
=C2=A0 auto-composition-mode: t
=C2=A0 auto-encryption-mode: t
= =C2=A0 auto-compression-mode: t
=C2=A0 buffer-read-only: t
=C2=A0 lin= e-number-mode: t
=C2=A0 transient-mark-mode: t

Load-path shadows:=
None found.

Features:
(shadow sort mail-extr emacsbug message= rmc puny seq byte-opt gv
bytecomp byte-compile cconv cl-loaddefs cl-lib= dired dired-loaddefs
format-spec rfc822 mml easymenu mml-sec password-c= ache 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 elec-p= air time-date
mule-util tooltip eldoc electric uniquify ediff-hook vc-ho= oks
lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-b= ar
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 eucj= p-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 loa= ddefs button faces cus-face macroexp files
text-properties overlay sha1 = md5 base64 format env code-pages mule
custom widget hashtable-print-read= able backquote dbusbind inotify lcms2
dynamic-setting system-font-settin= g font-render-setting xwidget-internal
move-toolbar gtk x-toolkit x mult= i-tty make-network-process emacs)

Memory information:
((conses 16= 95948 6990)
=C2=A0(symbols 48 20405 1)
=C2=A0(miscs 40 92 118)
= =C2=A0(strings 32 28389 1495)
=C2=A0(string-bytes 1 744394)
=C2=A0(ve= ctors 16 14688)
=C2=A0(vector-slots 8 497630 7512)
=C2=A0(floats 8 50= 67)
=C2=A0(intervals 56 308 0)
=C2=A0(buffers 992 12))

=
--000000000000e5ce35057908361f--