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: Wed, 2 Sep 2015 08:56:17 -0700 (PDT) Message-ID: References: <2a7b9134-af2a-462d-af6c-d02bad60bbe8@default> <834mjecdy7.fsf@gnu.org> 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 1441209406 13992 80.91.229.3 (2 Sep 2015 15:56:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 2 Sep 2015 15:56:46 +0000 (UTC) Cc: emacs-devel@gnu.org To: rms@gnu.org, Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 02 17:56:33 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 1ZXAOm-0005gx-Tj for ged-emacs-devel@m.gmane.org; Wed, 02 Sep 2015 17:56:33 +0200 Original-Received: from localhost ([::1]:38987 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXAOm-0005Dl-Op for ged-emacs-devel@m.gmane.org; Wed, 02 Sep 2015 11:56:32 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47184) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXAOi-0005DI-PV for emacs-devel@gnu.org; Wed, 02 Sep 2015 11:56:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZXAOh-0000dt-Tl for emacs-devel@gnu.org; Wed, 02 Sep 2015 11:56:28 -0400 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:33071) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXAOb-0000cz-IW; Wed, 02 Sep 2015 11:56:21 -0400 Original-Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id t82FuJ1f031243 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 2 Sep 2015 15:56:20 GMT Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userv0022.oracle.com (8.13.8/8.13.8) with ESMTP id t82FuJqU023096 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Wed, 2 Sep 2015 15:56:19 GMT Original-Received: from abhmp0010.oracle.com (abhmp0010.oracle.com [141.146.116.16]) by aserv0121.oracle.com (8.13.8/8.13.8) with ESMTP id t82FuJWv010777; Wed, 2 Sep 2015 15:56:19 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: userv0022.oracle.com [156.151.31.74] 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:189471 Archived-At: > Since it is possible to search for only '=C3=A1', it would be nice to hav= e > some convenient way to search only for 'a' with no accents. >=20 > The only convenient interface I can think of is that you type, in a > postfix input method, a ' DEL. Currently that is equivalent to typing > just a. But we could conceivably make it different. >=20 > Can someone think of some other interface for this? Yes, I mentioned this. And see the proposal from Juri in this thread: During Isearch, `M-s '' (he wrote `M-'' but I think he meant `M-s '') would toggle character folding, just as `M-c' toggles case folding. If char folding is on then `a' matches all of the variants (=C3=A1 etc.). But if it it is off then `a' matches only `a'. Users could customize the default (on or off), just as they can today customize `case-fold-search'. So someone could leave char folding on most of the time, and toggle it off anytime using `M-s '', or vice versa, leave it off most of the time and toggle it on. If it is on and you want to search for only `a', not also =C3=A1 etc.: C-s M-s ' a