From unknown Fri Jun 13 10:44:53 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#17998 <17998@debbugs.gnu.org> To: bug#17998 <17998@debbugs.gnu.org> Subject: Status: 24.3; generic-x - improper highlighting of string with double quote Reply-To: bug#17998 <17998@debbugs.gnu.org> Date: Fri, 13 Jun 2025 17:44:53 +0000 retitle 17998 24.3; generic-x - improper highlighting of string with double= quote reassign 17998 emacs submitter 17998 Vasya Belkin severity 17998 minor thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 11 11:38:48 2014 Received: (at submit) by debbugs.gnu.org; 11 Jul 2014 15:38:48 +0000 Received: from localhost ([127.0.0.1]:53619 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X5cuJ-0003Rr-Kl for submit@debbugs.gnu.org; Fri, 11 Jul 2014 11:38:48 -0400 Received: from eggs.gnu.org ([208.118.235.92]:38051) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X5YWk-0001uV-HO for submit@debbugs.gnu.org; Fri, 11 Jul 2014 06:58:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X5YWd-0003Xh-SC for submit@debbugs.gnu.org; Fri, 11 Jul 2014 06:58:01 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.1 required=5.0 tests=BAYES_50, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:34293) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X5YWd-0003Xa-PV for submit@debbugs.gnu.org; Fri, 11 Jul 2014 06:57:59 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39705) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X5YWc-0004Ur-3f for bug-gnu-emacs@gnu.org; Fri, 11 Jul 2014 06:57:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X5YWa-0003Vj-GQ for bug-gnu-emacs@gnu.org; Fri, 11 Jul 2014 06:57:58 -0400 Received: from mail-qa0-x244.google.com ([2607:f8b0:400d:c00::244]:56805) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X5YWa-0003VX-Bh for bug-gnu-emacs@gnu.org; Fri, 11 Jul 2014 06:57:56 -0400 Received: by mail-qa0-f68.google.com with SMTP id dc16so244011qab.7 for ; Fri, 11 Jul 2014 03:57:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=2SP031cPhbk0E413nq47Uju9uqvNRkJXlDqDa8EzzrY=; b=YvDqcYef5UqIzgWs4muqdLQneocp55uipbN4PQ6xr8Zo+5au8eQhqr31qsH6YcNanC J75a9qllDxYczIWKY0aMSDotPmcHkD7ZNhC85k94oWqy+6ZMk49rU2eo+rwJ7qs7q0Vv WsyYA0T/yDydTJRJkZETTILBiOKqc3vcr0cAQrHViVxsA+lLyTSp/TCRW40HHf7Dosbp xhT9/WBA+oc2PglG1v5di1HQSNXC4Kn+yrxPTid4TJLEwiLjwqbQcWb6DwpwAgc3Ddha xHrCcfu60WT70ov0EMcZk64+0+Rcc4CKfLMDrOQQbOwsPIvPYDCXG9D0WsG8il2Xr+A4 sCRw== MIME-Version: 1.0 X-Received: by 10.140.87.68 with SMTP id q62mr4572867qgd.21.1405076275681; Fri, 11 Jul 2014 03:57:55 -0700 (PDT) Received: by 10.96.210.37 with HTTP; Fri, 11 Jul 2014 03:57:55 -0700 (PDT) Date: Fri, 11 Jul 2014 13:57:55 +0300 Message-ID: Subject: 24.3; generic-x - improper highlighting of string with double quote From: Vasya Belkin To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary=001a113abaee4b618f04fde8d016 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -3.8 (---) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Fri, 11 Jul 2014 11:38:38 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -3.8 (---) --001a113abaee4b618f04fde8d016 Content-Type: text/plain; charset=UTF-8 generic-x mode has problems with highlighting strings containing quotes. This happens on official win32 24.3.1 & on unofficial binaries of pretest/24.3.92. The test is done with .emacs.d containing only init.el with one row: (require 'generic-x) Let's take the following .ini file: [{B725F130-47EF-101A-A5F1-02608C9EEBAC}10] Caption=Name The text is highlighted properly, according to rules in INI-Generic mode. Now let's insert randomly double quotes: [{B725F130-47EF-101A-A5F1-026"08C"9EEBAC}10] Cap"t"ion=Na"m"e Now only parts between the quotes (like '08C') will be highlighted with font-lock-string-face instead of font-lock-constant-face as defined in the INI-Generic mode.Rest of the symbols in the row will lose any highlight at all. The same problem manifests itself in BAT-Generic mode and in a custom mode I've tried to wrote myself. Thank you. In GNU Emacs 24.3.1 (i386-mingw-nt6.1.7601) of 2013-03-17 on MARVIN Windowing system distributor `Microsoft Corp.', version 6.1.7601 Configured using: `configure --with-gcc (4.7) --cflags -ID:/devel/emacs/libs/libXpm-3.5.8/include -ID:/devel/emacs/libs/libXpm-3.5.8/src -ID:/devel/emacs/libs/libpng-dev_1.4.3-1/include -ID:/devel/emacs/libs/zlib-dev_1.2.5-2/include -ID:/devel/emacs/libs/giflib-4.1.4-1/include -ID:/devel/emacs/libs/jpeg-6b-4/include -ID:/devel/emacs/libs/tiff-3.8.2-1/include -ID:/devel/emacs/libs/gnutls-3.0.9/include -ID:/devel/emacs/libs/libiconv-1.13.1-1-dev/include -ID:/devel/emacs/libs/libxml2-2.7.8/include/libxml2' Important settings: value of $LANG: HEB locale-coding-system: cp1252 default enable-multibyte-characters: t Major mode: Ini-Generic Minor modes in effect: tooltip-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 Recent input: M-x r e p o r t Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. ShellDetails.ini has auto save data; consider M-x recover-this-file Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils generic generic-x time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp w32-common-fns disp-table w32-win w32-vars tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process w32 multi-tty emacs) --001a113abaee4b618f04fde8d016 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
generic-x mode has problems with highlighting strings= containing quotes.
This happens on official win32 24.3.1 & o= n unofficial binaries of
pretest/24.3= .92. The test is done with .emacs.d containing only init.el
with one row: (require 'generic-x)
Let's take the fo= llowing .ini file:
[{B725F130-47EF-101A-A5F1-02608C9EEBAC}10]
Caption=3DName

The text is highlighted prop= erly, according to rules in INI-Generic
mode.
Now let's insert randomly double quotes:
[{B725F130-47EF-101A-A5F1-026"08C"9EEBAC}10]
Cap"= t"ion=3DNa"m"e

Now only parts betwe= en the quotes (like '08C') will be highlighted with font-lock-strin= g-face
instead of font-lock-constant-face as defined in the INI-Generic
=
mode.Rest of the symbols in the row will lose any highlight at all.
The same problem manifests itself in BAT-Generic mode and in a cust= om
mode I've tried to wrote myself.

Thank yo= u.


In GNU Emacs 24.3.1 (i386-mingw-= nt6.1.7601)
=C2=A0of 2013-03-17 on MARVIN
Windowing sys= tem distributor `Microsoft Corp.', version 6.1.7601
Configured using:
=C2=A0`configure --with-gcc (4.7) --cflags=
=C2=A0-ID:/devel/emacs/libs/libXpm-3.5.8/include
=C2= =A0-ID:/devel/emacs/libs/libXpm-3.5.8/src
=C2=A0-ID:/devel/emacs/= libs/libpng-dev_1.4.3-1/include
=C2=A0-ID:/devel/emacs/libs/zlib-dev_1.2.5-2/include
=C2=A0-= ID:/devel/emacs/libs/giflib-4.1.4-1/include
=C2=A0-ID:/devel/emac= s/libs/jpeg-6b-4/include
=C2=A0-ID:/devel/emacs/libs/tiff-3.8.2-1= /include
=C2=A0-ID:/devel/emacs/libs/gnutls-3.0.9/include
=C2=A0-ID:/devel= /emacs/libs/libiconv-1.13.1-1-dev/include
=C2=A0-ID:/devel/emacs/= libs/libxml2-2.7.8/include/libxml2'

Important = settings:
=C2=A0 value of $LANG: HEB
=C2=A0 locale-coding-system: cp12= 52
=C2=A0 default enable-multibyte-characters: t

Major mode: Ini-Generic

Minor modes in ef= fect:
=C2=A0 tooltip-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 global-font-lock-mode: t
=C2=A0 font-lock-mode: t
=C2=A0 blink-cursor-mode: t
=C2=A0 auto-composition-mode: t<= /div>
=C2=A0 auto-encryption-mode: t
=C2=A0 auto-compression-= mode: t
=C2=A0 line-number-mode: t
=C2=A0 transient-mar= k-mode: t

Recent input:
<help-echo> <help-echo> <help-e= cho> M-x r e p o r t=C2=A0
<tab> <return>

Recent messages:
For information about GNU Emacs= and the GNU system, type C-h C-a.
ShellDetails.ini has auto save data; consider M-x recover-this-file

Load-path shadows:
None found.
<= br>
Features:
(shadow sort gnus-util mail-extr emacsbug= message format-spec rfc822 mml
easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231
mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums
mm-util mail-prsvr mail-utils generic generic-x time-date tooltip<= /div>
ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp
w= 32-common-fns disp-table w32-win w32-vars tool-bar dnd fontset image
<= div>regexp-opt fringe tabulated-list newcomment lisp-mode register page
menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock<= /div>
syntax facemenu font-core frame cham georgian utf-8-lang misc-lan= g
vietnamese tibetan thai tai-viet lao korean japanese hebrew gre= ek
romanian slovak czech european ethiopic indian cyrillic chinese
<= div>case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddef= s
button faces cus-face macroexp files text-properties overlay sh= a1 md5
base64 format env code-pages mule custom widget hashtable-print-readab= le
backquote make-network-process w32 multi-tty emacs)
=
--001a113abaee4b618f04fde8d016--