From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!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: Tue, 02 Feb 2016 02:50:02 +0200 Organization: LINKOV.NET Message-ID: <877finncqp.fsf@mail.linkov.net> References: <877fio4v18.fsf@secretsauce.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1454375668 4577 80.91.229.3 (2 Feb 2016 01:14:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 2 Feb 2016 01:14:28 +0000 (UTC) Cc: 22520@debbugs.gnu.org To: Dima Kogan Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Feb 02 02:14:17 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aQPXr-0000Ll-7i for geb-bug-gnu-emacs@m.gmane.org; Tue, 02 Feb 2016 02:14:15 +0100 Original-Received: from localhost ([::1]:54645 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQPXq-0002er-GP for geb-bug-gnu-emacs@m.gmane.org; Mon, 01 Feb 2016 20:14:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56121) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQPXi-0002ao-QV for bug-gnu-emacs@gnu.org; Mon, 01 Feb 2016 20:14:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aQPXe-0005X2-PR for bug-gnu-emacs@gnu.org; Mon, 01 Feb 2016 20:14:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:46872) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQPXe-0005Ww-LQ for bug-gnu-emacs@gnu.org; Mon, 01 Feb 2016 20:14:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aQPXe-0002uS-IC for bug-gnu-emacs@gnu.org; Mon, 01 Feb 2016 20:14:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 02 Feb 2016 01:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22520 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22520-submit@debbugs.gnu.org id=B22520.145437559911095 (code B ref 22520); Tue, 02 Feb 2016 01:14:02 +0000 Original-Received: (at 22520) by debbugs.gnu.org; 2 Feb 2016 01:13:19 +0000 Original-Received: from localhost ([127.0.0.1]:55457 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aQPWx-0002st-Iw for submit@debbugs.gnu.org; Mon, 01 Feb 2016 20:13:19 -0500 Original-Received: from sub3.mail.dreamhost.com ([69.163.253.7]:52851 helo=homiemail-a76.g.dreamhost.com) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aQPWw-0002sl-BQ for 22520@debbugs.gnu.org; Mon, 01 Feb 2016 20:13:18 -0500 Original-Received: from homiemail-a76.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a76.g.dreamhost.com (Postfix) with ESMTP id 2F75345807B; Mon, 1 Feb 2016 17:13:16 -0800 (PST) Original-Received: from localhost.linkov.net (85.253.171.19.cable.starman.ee [85.253.171.19]) (Authenticated sender: jurta@jurta.org) by homiemail-a76.g.dreamhost.com (Postfix) with ESMTPA id 64775458079; Mon, 1 Feb 2016 17:13:15 -0800 (PST) In-Reply-To: <877fio4v18.fsf@secretsauce.net> (Dima Kogan's message of "Mon, 01 Feb 2016 01:52:35 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (x86_64-pc-linux-gnu) 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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:112237 Archived-At: > 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 i= s > 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 bein= g > highlighted. Turning off char-folding fixes that. Actually =E2=80=9CDatabase directory:=E2=80=9D is not highlighted due to = case-folding. After toggling case-folding with =E2=80=98M-s c=E2=80=99 and preserving t= he capital D, it's highlighted correctly.