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: Character group folding in searches Date: Fri, 6 Feb 2015 22:08:19 +0000 Message-ID: References: <83zj8rcdpi.fsf@gnu.org> <83k2zudfqk.fsf@gnu.org> <83d25md8k5.fsf@gnu.org> 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 1423260507 10544 80.91.229.3 (6 Feb 2015 22:08:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 6 Feb 2015 22:08:27 +0000 (UTC) Cc: Stefan Monnier , emacs-devel To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 06 23:08:26 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 1YJr4c-00021U-8Y for ged-emacs-devel@m.gmane.org; Fri, 06 Feb 2015 23:08:26 +0100 Original-Received: from localhost ([::1]:50739 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJr4b-0000ek-9s for ged-emacs-devel@m.gmane.org; Fri, 06 Feb 2015 17:08:25 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51108) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJr4X-0000cn-SO for emacs-devel@gnu.org; Fri, 06 Feb 2015 17:08:22 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YJr4X-00075n-0L for emacs-devel@gnu.org; Fri, 06 Feb 2015 17:08:21 -0500 Original-Received: from mail-ob0-x22f.google.com ([2607:f8b0:4003:c01::22f]:44560) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJr4V-000758-PZ; Fri, 06 Feb 2015 17:08:19 -0500 Original-Received: by mail-ob0-f175.google.com with SMTP id va2so16039886obc.6; Fri, 06 Feb 2015 14:08:19 -0800 (PST) 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=lyEPrjCkjd+ZVGsFi54ytQF/vKnp+MPafjSoPKRbVXs=; b=MNa+jOyaViWAyhaIxYVG/+5YE+ozwL5sRWnCvQN51lggL9vp5e59KavLFFLYLXWqXU nK2KfrcqTahkKegEgw6UiNOhx3KRzRXBR5J4gt1+xM/bInzYVZagy6vP3V0LPfnpJdiO yO7rNCe10CA3U36EIz3Q5Hy0AxCR+nnMphxEzm9ZbfhpBVePH81BZjrDajT5Z5zGVBNh JIcoo6V0N6Wo0bDC/yM9RD4Rxzmi3P+KrrWcZpq/8eanvyYZBM/bNmhbSGYGsB/6Ltjn ZLPT65cXZJc9osFym7+YDvcmbxVAbJO7OutKc0cQ/OKuEZ9fb78x9HGhnDxY62T+XW/9 4iNA== X-Received: by 10.60.179.37 with SMTP id dd5mr4053594oec.4.1423260499369; Fri, 06 Feb 2015 14:08:19 -0800 (PST) Original-Received: by 10.76.125.1 with HTTP; Fri, 6 Feb 2015 14:08:19 -0800 (PST) In-Reply-To: <83d25md8k5.fsf@gnu.org> X-Google-Sender-Auth: bMNFRIN669iZ_virjpdYv_0IUo4 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4003:c01::22f 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:182562 Archived-At: >> > Because the other way you cannot use char-tables. And because >> > matching "a" and "=C3=A1" will be hard the other way. >> >> Maybe I'm missing something, but if you have "=C3=A1" expand to "a=C2=B4= ", it >> won't match "a", will it? > > It will, if you only pay attention to the base character. If you have the possibility of only paying attention to the base character (if the machinery is in place) then there's no reason to fold "=C3=A1" into "a=C2=B4" (folding 1 char into many). Just fold everything into "a". Then (by only paying attention to the base character) "=C3=A1" and "a=CC=81" will match, because "=C3=A1" folds i= nto "a" which is the base character of "a=CC=81".