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: Thu, 25 Jun 2015 02:56:17 +0100 Message-ID: References: <20150615142237.GA3517@acm.fritz.box> <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> <87h9pw6922.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 1435197387 24139 80.91.229.3 (25 Jun 2015 01:56:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 25 Jun 2015 01:56:27 +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 Thu Jun 25 03:56: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 1Z7wOu-0001Pr-Fl for ged-emacs-devel@m.gmane.org; Thu, 25 Jun 2015 03:56:24 +0200 Original-Received: from localhost ([::1]:53570 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z7wOt-0000kL-Ra for ged-emacs-devel@m.gmane.org; Wed, 24 Jun 2015 21:56:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39215) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z7wOq-0000kG-LV for emacs-devel@gnu.org; Wed, 24 Jun 2015 21:56:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z7wOp-0002Gc-SA for emacs-devel@gnu.org; Wed, 24 Jun 2015 21:56:20 -0400 Original-Received: from mail-la0-x234.google.com ([2a00:1450:4010:c03::234]:34140) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z7wOo-0002GQ-DY; Wed, 24 Jun 2015 21:56:18 -0400 Original-Received: by lagx9 with SMTP id x9so36323083lag.1; Wed, 24 Jun 2015 18:56:17 -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=LixeibvD1nvngAKGdOsiICsFAmhikmJur44MYRW9AnE=; b=S10WNR6uj2GN5B4BR0YeF6Wp5q94TMQ44+E+uI7yHj+9QmE+nGxCOc1ZF8uocr5t43 ppN2mgwKOsobANwbr57PKMif7gpysv5/M1oHldSox6zxQflz09+vyF8TxmQbXspdWW6Z mww2yO/urOca401y2//5XewthxWJ+j3ELcTtlNxEnX0GaDRd8KG9SeRas2FmOgOR+wKS LjvBw8tV9wIqBvGh8WVbbM9i4zwYd/mePeFKsjHP0DmurtXnQ7LUWY1TjKfK1e/9iyd7 wVj0OuxoN2R8FLcjbMdihJTCQzV2EhSwtJG0zUIhKdsOjI5iAi9IpCs1zP7zx/ft108K jQvQ== X-Received: by 10.152.44.166 with SMTP id f6mr42719021lam.86.1435197377563; Wed, 24 Jun 2015 18:56:17 -0700 (PDT) Original-Received: by 10.25.214.133 with HTTP; Wed, 24 Jun 2015 18:56:17 -0700 (PDT) In-Reply-To: <87h9pw6922.fsf@mail.linkov.net> X-Google-Sender-Auth: NAWNFIrmYwegEIzhGX-ndiUlCEQ X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c03::234 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:187508 Archived-At: > So the most important remaining problem is how to combine char-folding > with =E2=80=98isearch-lax-whitespace=E2=80=99 and =E2=80=98search-whitesp= ace-regexp=E2=80=99. > It seems this will require duplicating some code between these two. I took a shot at this on the last commit. `character-fold-to-regexp' now takes a second argument (lax), when this is non-nil it appends a + to the regexp generated from whitespace characters. It doesn't take `search-whitespace-regexp' into consideration, but I don't know if that would even make sense given that a character-folded space is even more general (matches more characters) than what's specified by `search-whitespace-regexp'.