From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#22520: 25.0.50; unhighlight-regexp shows the scary guts of char-folding to the user Date: Fri, 22 May 2020 02:21:15 +0300 Message-ID: <878shkanos.fsf@mail.linkov.net> References: <877fio4v18.fsf@secretsauce.net> <877finncqp.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="24851"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) Cc: 22520@debbugs.gnu.org To: Dima Kogan Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri May 22 01:34:09 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jbuhV-0006NB-9m for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 22 May 2020 01:34:09 +0200 Original-Received: from localhost ([::1]:53682 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jbuhU-0000hK-Cj for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 21 May 2020 19:34:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35656) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jbuhO-0000h0-77 for bug-gnu-emacs@gnu.org; Thu, 21 May 2020 19:34:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46023) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jbuhN-0006yq-Up for bug-gnu-emacs@gnu.org; Thu, 21 May 2020 19:34:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jbuhN-0002JM-SK for bug-gnu-emacs@gnu.org; Thu, 21 May 2020 19:34:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 21 May 2020 23:34:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22520 X-GNU-PR-Package: emacs Original-Received: via spool by 22520-submit@debbugs.gnu.org id=B22520.15901039888804 (code B ref 22520); Thu, 21 May 2020 23:34:01 +0000 Original-Received: (at 22520) by debbugs.gnu.org; 21 May 2020 23:33:08 +0000 Original-Received: from localhost ([127.0.0.1]:57563 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jbugV-0002Hv-MH for submit@debbugs.gnu.org; Thu, 21 May 2020 19:33:07 -0400 Original-Received: from relay10.mail.gandi.net ([217.70.178.230]:49197) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jbugS-0002HD-SG; Thu, 21 May 2020 19:33:05 -0400 Original-Received: from mail.gandi.net (m91-129-97-200.cust.tele2.ee [91.129.97.200]) (Authenticated sender: juri@linkov.net) by relay10.mail.gandi.net (Postfix) with ESMTPSA id 282DA240002; Thu, 21 May 2020 23:32:56 +0000 (UTC) In-Reply-To: <877finncqp.fsf@mail.linkov.net> (Juri Linkov's message of "Tue, 02 Feb 2016 02:50:02 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:180727 Archived-At: tags 22520 fixed close 22520 28.0.50 thanks Fortunately, both points are now implemented in bug#40337. >> 1. Create a file t.el containing a single line >> (message "\nDatabase directory: ") >> >> 2. emacs -Q t.el >> >> 3. C-s m (to isearch for "m") >> >> 4. M-s h r enter (to highlight "m" with the default face) >> >> 5. M-s h u >> >> Step 5 should offer to unhighlight "m", but it offers garbage-looking >> text instead. Upon closer inspection, it looks like the crazy garbage is >> actually the regexp that char-folding produces when you look for "m". I >> don't think this is what the user should see. As one consequence of >> this, trying to unhighlight simply "m" doesn't work, even though that's >> what the user asked to highlight in the first place. > > Unlike bug#21180, it's much harder to conceal the innards of hi-lock. > Its regexps will keep pouring in from all places. > >> Another possible side effect of this is that highlighting >> >> Database directory: >> >> doesn't work: hi-lock goes through the motions but nothing ends up being >> highlighted. Turning off char-folding fixes that. > > Actually “Database directory:” is not highlighted due to case-folding. > After toggling case-folding with ‘M-s c’ and preserving the capital D, > it's highlighted correctly.