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#40216: 28.0.50; Misinformation in isearch char-fold Date: Fri, 27 Mar 2020 01:00:18 +0200 Organization: LINKOV.NET Message-ID: <87mu82d8n1.fsf@mail.linkov.net> References: <87y2rppddp.fsf@mail.linkov.net> <87imiskzc6.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="88788"; 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: 40216@debbugs.gnu.org To: Robert Pluim Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Mar 27 00:47:26 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 1jHcDe-000N1Y-5P for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 27 Mar 2020 00:47:26 +0100 Original-Received: from localhost ([::1]:35252 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jHcDd-0004nv-6F for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 26 Mar 2020 19:47:25 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60957) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jHcDI-0004iJ-TN for bug-gnu-emacs@gnu.org; Thu, 26 Mar 2020 19:47:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jHcDH-0006s3-9q for bug-gnu-emacs@gnu.org; Thu, 26 Mar 2020 19:47:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54418) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jHcDH-0006ri-2G for bug-gnu-emacs@gnu.org; Thu, 26 Mar 2020 19:47:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jHcDH-0005jI-0f for bug-gnu-emacs@gnu.org; Thu, 26 Mar 2020 19:47:03 -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, 26 Mar 2020 23:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40216 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 40216-submit@debbugs.gnu.org id=B40216.158526638221915 (code B ref 40216); Thu, 26 Mar 2020 23:47:02 +0000 Original-Received: (at 40216) by debbugs.gnu.org; 26 Mar 2020 23:46:22 +0000 Original-Received: from localhost ([127.0.0.1]:60378 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jHcCb-0005hI-Vg for submit@debbugs.gnu.org; Thu, 26 Mar 2020 19:46:22 -0400 Original-Received: from relay9-d.mail.gandi.net ([217.70.183.199]:52025) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jHcCZ-0005gw-7v for 40216@debbugs.gnu.org; Thu, 26 Mar 2020 19:46:20 -0400 X-Originating-IP: 91.129.96.173 Original-Received: from mail.gandi.net (m91-129-96-173.cust.tele2.ee [91.129.96.173]) (Authenticated sender: juri@linkov.net) by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id E21BEFF802; Thu, 26 Mar 2020 23:46:11 +0000 (UTC) In-Reply-To: (Robert Pluim's message of "Thu, 26 Mar 2020 10:28:55 +0100") 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:177765 Archived-At: > Ah, I hadn't considered that use case. Do we need an option to > char-fold-regexp that says 'only apply char-folding to non-ascii > characters'? That would reduce the size of the regexp considerably. Currently there are 2 covered use cases: 1. the default is to fold ascii to non-ascii characters; 2. non-nil char-fold-symmetric additionally folds non-ascii to ascii characters. It seems you are proposing a third use case: 3. symmetric-only that can be implemented with a new non-nil option char-fold-symmetric-only that will fold only non-ascii characters to ascii. I have doubts how useful this will be. The current default behavior is useful when the user types ascii characters on the keyboard with ascii characters only. The option char-fold-symmetric is useful to match pasted text both ways ignoring all differences between ascii/non-ascii characters. But for symmetric-only I can't imagine any useful use case. For example, when you paste non-ascii characters into the search string, and want to find corresponding ascii characters. But why wouldn't you want to find the other way around: pasting ascii characters to find non-ascii counterparts?