From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: ASCII-folded search [was: Re: Upcoming loss of usability ...] Date: Tue, 23 Jun 2015 20:33:14 +0300 Message-ID: <83pp4mfhyd.fsf@gnu.org> References: <20150615142237.GA3517@acm.fritz.box> <87y4jkhqh5.fsf@uwakimon.sk.tsukuba.ac.jp> <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> <83si9ifk4p.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1435080842 18340 80.91.229.3 (23 Jun 2015 17:34:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 23 Jun 2015 17:34:02 +0000 (UTC) Cc: stephen@xemacs.org, monnier@iro.umontreal.ca, emacs-devel@gnu.org To: bruce.connor.am@gmail.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 23 19:33:50 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 1Z7S4x-0002KK-QP for ged-emacs-devel@m.gmane.org; Tue, 23 Jun 2015 19:33:47 +0200 Original-Received: from localhost ([::1]:46705 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z7S4x-0001xc-4e for ged-emacs-devel@m.gmane.org; Tue, 23 Jun 2015 13:33:47 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50236) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z7S4k-0001xN-0k for emacs-devel@gnu.org; Tue, 23 Jun 2015 13:33:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z7S4f-0006co-FT for emacs-devel@gnu.org; Tue, 23 Jun 2015 13:33:33 -0400 Original-Received: from mtaout27.012.net.il ([80.179.55.183]:38539) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z7S4f-0006cR-7O for emacs-devel@gnu.org; Tue, 23 Jun 2015 13:33:29 -0400 Original-Received: from conversion-daemon.mtaout27.012.net.il by mtaout27.012.net.il (HyperSendmail v2007.08) id <0NQE00000QM2KZ00@mtaout27.012.net.il> for emacs-devel@gnu.org; Tue, 23 Jun 2015 20:29:22 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout27.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NQE00MBNR8Y9460@mtaout27.012.net.il>; Tue, 23 Jun 2015 20:29:22 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.179.55.183 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:187433 Archived-At: > Date: Tue, 23 Jun 2015 18:20:41 +0100 > From: Artur Malabarba > Cc: emacs-devel , Stefan Monnier , > Stephen Turnbull > > For instance, to get this character folding behavior with > `search-forward', instead of writing > (search-forward STRING) > I would instead write (conditional on a variable being non-nil) > (search-forward-regexp (isearch--character-folded-regexp STRING)) > > But I can't do that directly inside search-forward, because that's a c > function. So it needs to be done in the functions that call > search-forward. I was aware of isearch and query-replace, but there's > no reason it won't work on others. I think it would be good to have that in all the search commands that search for fixed strings. But that could be added as separate commits.