From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Artur Malabarba Newsgroups: gmane.emacs.devel,gmane.emacs.help Subject: Re: Single quotes in Info Date: Tue, 27 Jan 2015 14:27:45 -0200 Message-ID: References: <87twzhgk84.fsf@wmi.amu.edu.pl> <83lhksshdm.fsf@gnu.org> <9ee0c895-a178-40e1-b1c8-ed2b97071c6b@default> <87h9vgglkz.fsf@wmi.amu.edu.pl> Reply-To: bruce.connor.am@gmail.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1422376094 7987 80.91.229.3 (27 Jan 2015 16:28:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 27 Jan 2015 16:28:14 +0000 (UTC) Cc: Eli Zaretskii , help-gnu-emacs To: Marcin Borkowski , emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jan 27 17:28:13 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 1YG8zn-0008SM-0I for ged-emacs-devel@m.gmane.org; Tue, 27 Jan 2015 17:28:07 +0100 Original-Received: from localhost ([::1]:48327 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YG8zm-0002HX-GD for ged-emacs-devel@m.gmane.org; Tue, 27 Jan 2015 11:28:06 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38359) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YG8zg-0002DS-RE for emacs-devel@gnu.org; Tue, 27 Jan 2015 11:28:02 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YG8zd-0007PL-Kb for emacs-devel@gnu.org; Tue, 27 Jan 2015 11:28:00 -0500 Original-Received: from mail-ob0-x235.google.com ([2607:f8b0:4003:c01::235]:40769) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YG8zR-0007LQ-Hd; Tue, 27 Jan 2015 11:27:45 -0500 Original-Received: by mail-ob0-f181.google.com with SMTP id nt9so14286966obb.12; Tue, 27 Jan 2015 08:27:45 -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; bh=bvz1R0oMavWJxNAGaIK8m15WuY8+5MSPnHkiFop7GN8=; b=XkQcqz0Txf71I47dSgFmVq2e8hxtWb3pZ8v+kBaREriwWKYHZ8YTZ/152PK8N1eSFM ABPww4Xy5ASy8mfwg/019hqd6YiG2LApjwSdv6lg/oEBEzz2/PHR4j1HWkzXxOiDXC2E bmJnLYWVO6XeOFpK68E9c9Ck58jaunDx9imf/EPbbGnD2D7+yeOE8/CaQPrDmfc5uRXS EZ1v/zmItnTERt3hMreBKjWf6uZkaLn7lx7WaYEEcecRx6XNV82U+RkkJFtyETkbzOHF W/hpgjYCC2J5Rf9h7GtXIIvH1lBFN1oiZXD3LrOnmOBI1zFv1+dxWWaZ4hZQ1FfsEv23 m8sw== X-Received: by 10.202.90.139 with SMTP id o133mr1158418oib.99.1422376065098; Tue, 27 Jan 2015 08:27:45 -0800 (PST) Original-Received: by 10.76.125.1 with HTTP; Tue, 27 Jan 2015 08:27:45 -0800 (PST) In-Reply-To: <87h9vgglkz.fsf@wmi.amu.edu.pl> X-Google-Sender-Auth: 5HzdClfEMWGSc7YhFKoOUK8hgPE X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4003:c01::235 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:181837 gmane.emacs.help:102309 Archived-At: 2015-01-24 15:00 GMT-02:00 Marcin Borkowski : > > On 2015-01-24, at 16:11, Drew Adams wrote: > >> This is conceptually related to, but it need not necessarily be >> extended to, discussion about being able to Isearch abstracting from >> diacritical marks etc. (E.g. bug #13041: >> http://debbugs.gnu.org/cgi/bugreport.cgi?bug=13041.) >> >> IOW, being able to easily specify equivalence classes of chars for >> search (and other) purposes, and preferably being able to quickly >> choose whether to make use of them (this one or that one) - e.g., >> as we can do now for case-sensitivity (`a' ~ `A'). > > This is a great idea. Maybe even not only for isearch. > I also really like this idea, so much so that I've gone ahead and implemented it. It is implemented on the branch `scratch/isearch-character-group-folding'. I called it group-folding, but we can call it class folding or whatever sounds more intuitive to most people. The implementation is very much up for debate. Currently, what it does is use regexps (behind the scenes) so that a plain double quote matches all those unicode double quotes, and the same for a hard single quote. The way it is written, it is trivial to add more groups by adding entries to `isearch-groups-alist'. Of course, other characters are appropriately regexp-quoted behind the scenes, so that everything else works as expected. The surface is exactly like regular isearch, except for these two characters. The set of groups is defined by `isearch-groups-alist', and the folding only happens if `isearch-fold-groups' is non-nil. Other groups that maybe should be added are latin accented letters. Cheers to all,