From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Artur Malabarba Newsgroups: gmane.emacs.devel Subject: Re: ASCII-folded search [was: Re: Upcoming loss of usability ...] Date: Wed, 24 Jun 2015 22:59:28 +0100 Message-ID: References: <20150615142237.GA3517@acm.fritz.box> <557F3C22.4060909@cs.ucla.edu> <5580D356.4050708@cs.ucla.edu> <87si9qonxb.fsf@gnu.org> <87ioamz8if.fsf@petton.fr> <32013464-2300-46c6-ba46-4a3c36bfee5d@default> <87twu62nnt.fsf@mbork.pl> <87oakdfwim.fsf@uwakimon.sk.tsukuba.ac.jp> <83wpz1lh7c.fsf@gnu.org> <83oakdl7yj.fsf@gnu.org> <83ioall3x5.fsf@gnu.org> <87h9pzxtyi.fsf@mail.linkov.net> <87k2uudoqr.fsf@mail.linkov.net> <87616c94g4.fsf@mail.linkov.net> Reply-To: bruce.connor.am@gmail.com 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 1435183182 8874 80.91.229.3 (24 Jun 2015 21:59:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 24 Jun 2015 21:59:42 +0000 (UTC) Cc: "Stephen J. Turnbull" , Eli Zaretskii , Stefan Monnier , emacs-devel To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 24 23:59:38 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 1Z7shl-0006fC-9L for ged-emacs-devel@m.gmane.org; Wed, 24 Jun 2015 23:59:37 +0200 Original-Received: from localhost ([::1]:53118 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z7shk-0004bM-OV for ged-emacs-devel@m.gmane.org; Wed, 24 Jun 2015 17:59:36 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41841) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z7shh-0004bH-7D for emacs-devel@gnu.org; Wed, 24 Jun 2015 17:59:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z7shg-0005Bc-EZ for emacs-devel@gnu.org; Wed, 24 Jun 2015 17:59:33 -0400 Original-Received: from mail-lb0-x22b.google.com ([2a00:1450:4010:c04::22b]:32961) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z7shd-0005Al-Ns; Wed, 24 Jun 2015 17:59:29 -0400 Original-Received: by lbbvz5 with SMTP id vz5so34568390lbb.0; Wed, 24 Jun 2015 14:59:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:in-reply-to:references:date:message-id :subject:from:to:cc:content-type:content-transfer-encoding; bh=IS5Qr0aXiiNuV6C4AZewq7400lYWbP8VIrVQM6D6xzY=; b=Uis8PO7E0irGqEJ6AK21cPkGzvDwG2yC5p55ZnhOkcPyew5oA0eQqnvWe37Tcco8LU 1Goyt9gz2+oSy0kWrB9mCqsjPYM7ABuJ3IySnW1DWW98tSbItGPKBq+UN4KZdPfPU83N R91GYmoqp8qWhjmgY5NpABhDQ/KmuG8+7flernYUIf7SzhRcjyKarZrsj0AqZ0jNt6dw MPDV7/D1bVSkdjJLNt9/eWUakocIeKrRfhJ03vu2vkEfI7R5Qhldf33p8BvILzMvVlu6 1aAtHYro76L1ZWlvKmzWDnJkwqm4mFipswOqUJCkmOlGJO+RC9EHXbYFsPFHRyumG/5j al9Q== X-Received: by 10.152.43.110 with SMTP id v14mr1092062lal.4.1435183168829; Wed, 24 Jun 2015 14:59:28 -0700 (PDT) Original-Received: by 10.25.214.133 with HTTP; Wed, 24 Jun 2015 14:59:28 -0700 (PDT) In-Reply-To: <87616c94g4.fsf@mail.linkov.net> X-Google-Sender-Auth: snyrz8FnrjHbl-QrrkcTHoNTBvk X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c04::22b 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:187502 Archived-At: 2015-06-24 22:44 GMT+01:00 Juri Linkov : >> It's easy for things like =E2=80=9C=E2=93=90=E2=80=9D or =E2=80=9C=C3=A1= =E2=80=9D, which are single characters, >> normalizing a combination of multiple characters (like =E2=80=9Ca=CC=81= =E2=80=9D) can get a >> little complicated. But then, I don't think we want to do either. > > I'm testing your changes right now and noticed the following problem: > > 0. emacs -Q > 1. C-h H (=E2=80=98view-hello-file=E2=80=99) > 2. C-s i (search for =E2=80=98i=E2=80=99) > > matches such substrings as =E2=80=9Cin=E2=80=9D, =E2=80=9Civ=E2=80=9D, = =E2=80=98ii=E2=80=99 =E2=80=A6 > > Maybe we should add explicit exceptions for such cases? Yes, I saw that too. I've added a clause that will generally prevent one letter from mathing multiple letters (it can still match multiple characters, as long as only one of them is a letter). > It doesn't enable by default, so it could be combined with the same logic > like in =E2=80=98isearch-toggle-case-fold=E2=80=99. In any case we have = to find a good > mnemonic key binding to toggle the new character-folding mode. I think I'll set it to M-s f. Both c and h are already taken (not sure why, but `h' feels mnemonic here) and f is the next best thing I think. Or we could use a quote M-s '