X-Loop: help-debbugs@HIDDEN Subject: bug#17998: 24.3; generic-x - improper highlighting of string with double quote Resent-From: Vasya Belkin <vasyabelkin5@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Fri, 11 Jul 2014 15:39:03 +0000 Resent-Message-ID: <handler.17998.B.140509312813282 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 17998 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 17998 <at> debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@HIDDEN Received: via spool by submit <at> debbugs.gnu.org id=B.140509312813282 (code B ref -1); Fri, 11 Jul 2014 15:39:03 +0000 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 <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1X5cuJ-0003Rr-Kl for submit <at> 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 <vasyabelkin5@HIDDEN>) id 1X5YWk-0001uV-HO for submit <at> 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 <vasyabelkin5@HIDDEN>) id 1X5YWd-0003Xh-SC for submit <at> 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 <vasyabelkin5@HIDDEN>) id 1X5YWd-0003Xa-PV for submit <at> 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 <vasyabelkin5@HIDDEN>) id 1X5YWc-0004Ur-3f for bug-gnu-emacs@HIDDEN; Fri, 11 Jul 2014 06:57:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <vasyabelkin5@HIDDEN>) id 1X5YWa-0003Vj-GQ for bug-gnu-emacs@HIDDEN; 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 <vasyabelkin5@HIDDEN>) id 1X5YWa-0003VX-Bh for bug-gnu-emacs@HIDDEN; Fri, 11 Jul 2014 06:57:56 -0400 Received: by mail-qa0-f68.google.com with SMTP id dc16so244011qab.7 for <bug-gnu-emacs@HIDDEN>; 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: <CAFy_wrfp5Rj_AEV+H8_xnbBeOo0VxqpEA6e__cw_kH17n-3B_A@HIDDEN> From: Vasya Belkin <vasyabelkin5@HIDDEN> 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-Mailman-Approved-At: Fri, 11 Jul 2014 11:38:38 -0400 X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> 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: <help-echo> <help-echo> <help-echo> M-x r e p o r t <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. 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 <div dir=3D"ltr"><div>generic-x mode has problems with highlighting strings= containing quotes.</div><div>This happens on official win32 24.3.1 & o= n unofficial binaries of</div><div>pretest/<a href=3D"http://24.3.92.">24.3= .92.</a> The test is done with .emacs.d containing only init.el</div> <div>with one row: (require 'generic-x)</div><div>Let's take the fo= llowing .ini file:</div><div>[{B725F130-47EF-101A-A5F1-02608C9EEBAC}10]</di= v><div>Caption=3DName</div><div><br></div><div>The text is highlighted prop= erly, according to rules in INI-Generic</div> <div>mode.</div><div>Now let's insert randomly double quotes:</div><div= >[{B725F130-47EF-101A-A5F1-026"08C"9EEBAC}10]</div><div>Cap"= t"ion=3DNa"m"e</div><div><br></div><div>Now only parts betwe= en the quotes (like '08C') will be highlighted with font-lock-strin= g-face</div> <div>instead of font-lock-constant-face as defined in the INI-Generic</div>= <div>mode.Rest of the symbols in the row will lose any highlight at all.</d= iv><div>The same problem manifests itself in BAT-Generic mode and in a cust= om</div> <div>mode I've tried to wrote myself.</div><div><br></div><div>Thank yo= u.</div><div><br></div><div><br></div><div>In GNU Emacs 24.3.1 (i386-mingw-= nt6.1.7601)</div><div>=C2=A0of 2013-03-17 on MARVIN</div><div>Windowing sys= tem distributor `Microsoft Corp.', version 6.1.7601</div> <div>Configured using:</div><div>=C2=A0`configure --with-gcc (4.7) --cflags= </div><div>=C2=A0-ID:/devel/emacs/libs/libXpm-3.5.8/include</div><div>=C2= =A0-ID:/devel/emacs/libs/libXpm-3.5.8/src</div><div>=C2=A0-ID:/devel/emacs/= libs/libpng-dev_1.4.3-1/include</div> <div>=C2=A0-ID:/devel/emacs/libs/zlib-dev_1.2.5-2/include</div><div>=C2=A0-= ID:/devel/emacs/libs/giflib-4.1.4-1/include</div><div>=C2=A0-ID:/devel/emac= s/libs/jpeg-6b-4/include</div><div>=C2=A0-ID:/devel/emacs/libs/tiff-3.8.2-1= /include</div><div> =C2=A0-ID:/devel/emacs/libs/gnutls-3.0.9/include</div><div>=C2=A0-ID:/devel= /emacs/libs/libiconv-1.13.1-1-dev/include</div><div>=C2=A0-ID:/devel/emacs/= libs/libxml2-2.7.8/include/libxml2'</div><div><br></div><div>Important = settings:</div> <div>=C2=A0 value of $LANG: HEB</div><div>=C2=A0 locale-coding-system: cp12= 52</div><div>=C2=A0 default enable-multibyte-characters: t</div><div><br></= div><div>Major mode: Ini-Generic</div><div><br></div><div>Minor modes in ef= fect:</div> <div>=C2=A0 tooltip-mode: t</div><div>=C2=A0 mouse-wheel-mode: t</div><div>= =C2=A0 tool-bar-mode: t</div><div>=C2=A0 menu-bar-mode: t</div><div>=C2=A0 = file-name-shadow-mode: t</div><div>=C2=A0 global-font-lock-mode: t</div><di= v>=C2=A0 font-lock-mode: t</div> <div>=C2=A0 blink-cursor-mode: t</div><div>=C2=A0 auto-composition-mode: t<= /div><div>=C2=A0 auto-encryption-mode: t</div><div>=C2=A0 auto-compression-= mode: t</div><div>=C2=A0 line-number-mode: t</div><div>=C2=A0 transient-mar= k-mode: t</div><div><br></div> <div>Recent input:</div><div><help-echo> <help-echo> <help-e= cho> M-x r e p o r t=C2=A0</div><div><tab> <return></div><di= v><br></div><div>Recent messages:</div><div>For information about GNU Emacs= and the GNU system, type C-h C-a.</div> <div>ShellDetails.ini has auto save data; consider M-x recover-this-file</d= iv><div><br></div><div>Load-path shadows:</div><div>None found.</div><div><= br></div><div>Features:</div><div>(shadow sort gnus-util mail-extr emacsbug= message format-spec rfc822 mml</div> <div>easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231</div= ><div>mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums</= div><div>mm-util mail-prsvr mail-utils generic generic-x time-date tooltip<= /div> <div>ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp</div><div>w= 32-common-fns disp-table w32-win w32-vars tool-bar dnd fontset image</div><= div>regexp-opt fringe tabulated-list newcomment lisp-mode register page</di= v> <div>menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock<= /div><div>syntax facemenu font-core frame cham georgian utf-8-lang misc-lan= g</div><div>vietnamese tibetan thai tai-viet lao korean japanese hebrew gre= ek</div> <div>romanian slovak czech european ethiopic indian cyrillic chinese</div><= div>case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddef= s</div><div>button faces cus-face macroexp files text-properties overlay sh= a1 md5</div> <div>base64 format env code-pages mule custom widget hashtable-print-readab= le</div><div>backquote make-network-process w32 multi-tty emacs)</div><div>= <br></div></div> --001a113abaee4b618f04fde8d016--
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.503 (Entity 5.503) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: Vasya Belkin <vasyabelkin5@HIDDEN> Subject: bug#17998: Acknowledgement (24.3; generic-x - improper highlighting of string with double quote) Message-ID: <handler.17998.B.140509312813282.ack <at> debbugs.gnu.org> References: <CAFy_wrfp5Rj_AEV+H8_xnbBeOo0VxqpEA6e__cw_kH17n-3B_A@HIDDEN> X-Gnu-PR-Message: ack 17998 X-Gnu-PR-Package: emacs Reply-To: 17998 <at> debbugs.gnu.org Date: Fri, 11 Jul 2014 15:39:04 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-gnu-emacs@HIDDEN If you wish to submit further information on this problem, please send it to 17998 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 17998: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D17998 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.