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#35202: 27.0.50; Info-quoted false positives and false negatives Date: Mon, 8 Apr 2019 19:42:26 -0300 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000c0516805860c8d3d" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="20185"; mail-complaints-to="usenet@blaine.gmane.org" To: 35202@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Apr 09 00:43:15 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 1hDcyx-00058j-3u for geb-bug-gnu-emacs@m.gmane.org; Tue, 09 Apr 2019 00:43:15 +0200 Original-Received: from localhost ([127.0.0.1]:60017 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hDcyw-0006kR-5i for geb-bug-gnu-emacs@m.gmane.org; Mon, 08 Apr 2019 18:43:14 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:42993) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hDcyo-0006k2-CV for bug-gnu-emacs@gnu.org; Mon, 08 Apr 2019 18:43:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hDcyl-0005Dt-1I for bug-gnu-emacs@gnu.org; Mon, 08 Apr 2019 18:43:06 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36752) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hDcyk-0005DQ-Hp for bug-gnu-emacs@gnu.org; Mon, 08 Apr 2019 18:43:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hDcyk-0006M1-DI for bug-gnu-emacs@gnu.org; Mon, 08 Apr 2019 18:43: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: Mon, 08 Apr 2019 22:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 35202 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs Original-Received: via spool by submit@debbugs.gnu.org id=B.155476337824408 (code B ref -1); Mon, 08 Apr 2019 22:43:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 8 Apr 2019 22:42:58 +0000 Original-Received: from localhost ([127.0.0.1]:50296 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hDcyf-0006LZ-MM for submit@debbugs.gnu.org; Mon, 08 Apr 2019 18:42:58 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:56474) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hDcyc-0006LI-Vk for submit@debbugs.gnu.org; Mon, 08 Apr 2019 18:42:56 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:54787) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hDcyX-0004v1-I5 for submit@debbugs.gnu.org; Mon, 08 Apr 2019 18:42:49 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:42608) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hDcyV-0006iR-QO for bug-gnu-emacs@gnu.org; Mon, 08 Apr 2019 18:42:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hDcyT-0004tZ-Mv for bug-gnu-emacs@gnu.org; Mon, 08 Apr 2019 18:42:47 -0400 Original-Received: from mail-lf1-x129.google.com ([2a00:1450:4864:20::129]:35048) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hDcyR-0004rU-Va for bug-gnu-emacs@gnu.org; Mon, 08 Apr 2019 18:42:45 -0400 Original-Received: by mail-lf1-x129.google.com with SMTP id u21so10768797lfu.2 for ; Mon, 08 Apr 2019 15:42:41 -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=vLdfzUiVQN6GxIYaavQDjs7vddOpXbLVXqXiLHr9/iQ=; b=OpmpLD0d4Uujy8NarwOXbXjx4drhvDXROjXCKkiNtrs1d9mU0dITuifvuwcYFD4Cvx xDR91Vq+c76CEc8jZZ47DA6U4ht+jkhPQ3mmIhZKOUrviyZT+gcRHiND/VrZlwIPSvEz 4l5Cfr9UKoY2N6aUCCJrPU5HTXU6qmLGX+XfsjtiVjAzX3LOwckrZpt2938KXz143k+f axRPXH2UXGOCxj16GNanAuZ/6wgkRb5/lvEtI5ROdLyi/9cEy3W9hil2C9etbP25DcbR quPc6dBCc/Q/l4A6XQcaoZqvf6Gw1D/fyY9AtgVM/3PaGIimmFM1lKFUUzekqDloX8pV WU7Q== 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=vLdfzUiVQN6GxIYaavQDjs7vddOpXbLVXqXiLHr9/iQ=; b=gKvUbhuq8hwYmgrUh55I3CQtSLwVE+8AWAgQSKrtD2CcM6qTqImNyamrBnmbgGSPJ9 YUjDvkgyxHj6dFr7eKZ8/9tGbWltF3hv5z/8hCah6WajYQHyW7xYT6HpJY87Ay4EzcR+ sw5kwC9jhPIdYrXrQlYf2bJQExOD6J2ESdfHxql/uaqGZbPF0NBtQaJvJuvKYPsRua9I ucHZuxy+U9hTI53cGwNCGj8p2BPQfLa1GA7+gpxf4Zb8LICKA+Q9+djRqf/+Ii4r0ZBl V7DyCuPX+On7JZyFY5OVJiBkO5/lzMIhNEPaFkno0k6pPkJL7qabXoNpe+FIUhdxkMYH 5QZA== X-Gm-Message-State: APjAAAXp6nkZkhTboH0+2WVECasbrXM/699R9rU7QVZl/1vWlWwX5iL1 AFebKqW4IQZrUXCPB4S5B1kP4P4OTSAUtWQYxv0OMleh X-Google-Smtp-Source: APXvYqwt5w/yWuuAcc+5Gb6i7EZC+7m3DQbg9W3p0eBb8IAEab0kCL4wdI1/qBclA0DS8vPSMmvtwpMeWoqPfokgu/A= X-Received: by 2002:ac2:546c:: with SMTP id e12mr6089196lfn.121.1554763359472; Mon, 08 Apr 2019 15:42:39 -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:157368 Archived-At: --000000000000c0516805860c8d3d Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello. I've noticed that the regexp of Info-mode-font-lock-keywords throws some false negatives and positives. In latest Emacs, do these steps to see the bug. 1) Start Emacs: emacs -Q 2) Go to the Emacs Manual: C-h r 3) Go to the Basic node: m Basic RET 4) Go to the Inserting Text section: 1 5) Search for "which is": C-s which is RET 6) Type: M-x describe-text-properties Notice that face is Info-quoted, even though point is not in a quote. This is a false positive. Under the same section, there's another false positive: "To see which characters have " is quoted too. Now to show a false negative, in the same Emacs Manual: Search for this string C-s =E2=80=98=E2=80=99=E2=80=99. That is: C-x 8 [ f= ollowed by C-x 8 ] followed by C-x 8 ]. The search should get you to the Text Display section. Move point to the middle =E2=80=99, the one that is being quoted, and again type: M-x describe-text-properties. It doesn't have the face Info-quoted, even though it is a quote. I hope I've described well enough the issue. Proposed patch to follow. Best regards, Mauro. In GNU Emacs 27.0.50 (build 3, i686-pc-linux-gnu, GTK+ Version 3.18.9) of 2019-04-08 built on the-blackbeard Repository revision: 36dc39bfbf1a307769bd62dbe1311a1935737b51 Repository branch: master 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. Mark saved where search started Type C-x 1 to delete the help window. Mark saved where search started Type C-x 1 to delete the help window. Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS GLIB NOTIFY INOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM THREADS PDUMPER LCMS2 GMP Important settings: value of $LANG: en_US.utf8 value of $XMODIFIERS: locale-coding-system: utf-8-unix Major mode: Info 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 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 dired dired-loaddefs format-spec rfc822 mml mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs text-property-search time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils iso-transl pp wid-edit descr-text help-mode cl-loaddefs cl-lib misearch multi-isearch info easymenu elec-pair 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 76132 6951) (symbols 24 6685 1) (strings 16 20842 1712) (string-bytes 1 613744) (vectors 8 10074) (vector-slots 4 126132 14196) (floats 8 23 19) (intervals 28 3882 0) (buffers 564 13) (heap 1024 8510 811)) --000000000000c0516805860c8d3d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello.=C2=A0 I've no= ticed that the regexp of Info-mode-font-lock-keywords
throws some false = negatives and positives.

In latest Emacs, do these steps to see the = bug.
1) Start Emacs: emacs -Q
2) Go to the Emacs Manual: C-h r
3) = Go to the Basic node: m Basic RET
4) Go to the Inserting Text section: 1=
5) Search for "which is": C-s which is RET
6) Type: M-x de= scribe-text-properties
Notice that face is Info-quoted, even though poin= t is not in a quote.

This is a false positive.=C2=A0 Under the same = section, there's another false
positive: "To see which characte= rs have " is quoted too.

Now to show a false negative, in the s= ame Emacs Manual:
Search for this string C-s =E2=80=98=E2=80=99=E2=80=99= .=C2=A0 That is: C-x 8 [ followed by C-x 8 ]
followed by C-x 8 ].
The= search should get you to the Text Display section.=C2=A0 Move point to
= the middle =E2=80=99, the one that is being quoted, and again type:
M-x = describe-text-properties.=C2=A0 It doesn't have the face Info-quoted,even though it is a quote.

I hope I&= #39;ve described well enough the issue.=C2=A0 Proposed patch to follow.

Best regards,
Mauro.

In GNU Emacs 27.0.50 (build 3, i686-pc-linux-gnu, GTK+ Version 3.18= .9)
=C2=A0of 2019-04-08 built on the-blackbeard
Repository revision: = 36dc39bfbf1a307769bd62dbe1311a1935737b51
Repository branch: master
Wi= ndowing system distributor 'The X.Org Foundation', version 11.0.119= 06000
System Description: Ubuntu 16.04.6 LTS

Recent messages:
= For information about GNU Emacs and the GNU system, type C-h C-a.
Mark s= aved where search started
Type C-x 1 to delete the help window.
Mark = saved where search started
Type C-x 1 to delete the help window.

= Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DB= US GSETTINGS GLIB
NOTIFY INOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE = M17N_FLT LIBOTF
XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM THREADS P= DUMPER LCMS2 GMP

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

Major mode: Info

Minor modes in effect:
=C2=A0 tool= tip-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-b= ar-mode: t
=C2=A0 file-name-shadow-mode: t
=C2=A0 global-font-lock-mo= de: t
=C2=A0 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-c= ompression-mode: t
=C2=A0 buffer-read-only: t
=C2=A0 line-number-mode= : t
=C2=A0 transient-mark-mode: t

Load-path shadows:
None foun= d.

Features:
(shadow sort mail-extr emacsbug message rmc puny seq= byte-opt gv
bytecomp byte-compile cconv dired dired-loaddefs format-spe= c rfc822 mml
mml-sec password-cache epa derived epg epg-config gnus-util= rmail
rmail-loaddefs text-property-search time-date mm-decode mm-bodies=
mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmailrfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils iso-transl ppwid-edit descr-text help-mode cl-loaddefs cl-lib misearch multi-isearchinfo easymenu elec-pair 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 georgia= n utf-8-lang misc-lang
vietnamese tibetan thai tai-viet lao korean japan= ese eucjp-ms cp51932
hebrew greek romanian slovak czech european ethiopi= c indian cyrillic
chinese composite charscript charprop case-table epa-h= ook jka-cmpr-hook
help simple abbrev obarray minibuffer cl-preloaded nad= vice loaddefs
button faces cus-face macroexp files text-properties overl= ay sha1 md5
base64 format env code-pages mule custom widget hashtable-pr= int-readable
backquote threads dbusbind inotify lcms2 dynamic-settingsystem-font-setting font-render-setting move-toolbar gtk x-toolkit x
mu= lti-tty make-network-process emacs)

Memory information:
((conses = 8 76132 6951)
=C2=A0(symbols 24 6685 1)
=C2=A0(strings 16 20842 1712)=
=C2=A0(string-bytes 1 613744)
=C2=A0(vectors 8 10074)
=C2=A0(vect= or-slots 4 126132 14196)
=C2=A0(floats 8 23 19)
=C2=A0(intervals 28 3= 882 0)
=C2=A0(buffers 564 13)
=C2=A0(heap 1024 8510 811))
--000000000000c0516805860c8d3d--