From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.devel Subject: RE: char equivalence classes in search - why not symmetric? Date: Tue, 8 Sep 2015 14:00:24 -0700 (PDT) Message-ID: <8f78daed-0e89-4a4b-b423-78ac2889eeac@default> References: <2a7b9134-af2a-462d-af6c-d02bad60bbe8@default> <834mjecdy7.fsf@gnu.org> <38061f42-eaf1-47c6-b74d-f676ac952b18@default> <83r3miatvl.fsf@gnu.org> <21998.29683.916211.867479@a1i15.kph.uni-mainz.de> 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 1441746070 2411 80.91.229.3 (8 Sep 2015 21:01:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 8 Sep 2015 21:01:10 +0000 (UTC) Cc: eliz@gnu.org, emacs-devel@gnu.org To: rms@gnu.org, Ulrich Mueller Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 08 23:00:53 2015 Return-path: Envelope-to: ged-emacs-devel@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 1ZZQ0V-0001cl-MA for ged-emacs-devel@m.gmane.org; Tue, 08 Sep 2015 23:00:47 +0200 Original-Received: from localhost ([::1]:37763 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZQ0V-0002jm-9z for ged-emacs-devel@m.gmane.org; Tue, 08 Sep 2015 17:00:47 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38689) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZQ0K-0002iu-AS for emacs-devel@gnu.org; Tue, 08 Sep 2015 17:00:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZZQ0J-0000pP-43 for emacs-devel@gnu.org; Tue, 08 Sep 2015 17:00:35 -0400 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:31778) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZQ0D-0000kA-7T; Tue, 08 Sep 2015 17:00:29 -0400 Original-Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id t88L0Qor014483 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 8 Sep 2015 21:00:27 GMT Original-Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by userv0021.oracle.com (8.13.8/8.13.8) with ESMTP id t88L0PgQ002372 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Tue, 8 Sep 2015 21:00:26 GMT Original-Received: from abhmp0019.oracle.com (abhmp0019.oracle.com [141.146.116.25]) by aserv0122.oracle.com (8.13.8/8.13.8) with ESMTP id t88L0Pe2011229; Tue, 8 Sep 2015 21:00:25 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6691.5000 (x86)] X-Source-IP: userv0021.oracle.com [156.151.31.71] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 141.146.126.69 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:189742 Archived-At: > > I disagree. When I search for "M=C3=BCller" I want it to also match > > "Muller" because some people (e.g., in French speaking countries) use > > this as an approximation of the spelling. >=20 > Are you suggesting that searching for =C3=BC should match u but not =C3= =BA or =C3=B9? I'm not speaking for Ulrich, but no, I am not suggesting that. The proposal behind this thread is that when char folding is turned ON, any char CHR in a given equivalence class would match any other char in that class, when CHR is used in a search string. So if char folding is on, you can find any of [e=C3=A9=C3=A8=C3=AA=C3=A6=C3= =AB] in the buffer text using any of those chars in the search string, not just `e' in the search string. None of them has a privileged role in the search string.=20 To match only one of those folding-equivalent chars (e.g., only `e' or `=C3=A9'), you would turn OFF char folding and use that exact char in the search string. Char folding would be togglable, as now, using `M-s ''. The only difference would be that when char folding is on, any of [e=C3=A9=C3=A8=C3= =AA=C3=A6=C3=AB] would act the same way in a search string.