From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#22147: Obsolete search-forward-lax-whitespace Date: Tue, 15 Dec 2015 17:47:05 -0800 (PST) Message-ID: References: <87wpsk7dcs.fsf@mail.linkov.net> <87d1ubz3w9.fsf@mail.linkov.net> <87r3ipoofk.fsf@mail.linkov.net> <87zixcblno.fsf@mail.linkov.net> <874mfjchp1.fsf@mail.linkov.net> 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 1450230508 21972 80.91.229.3 (16 Dec 2015 01:48:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 16 Dec 2015 01:48:28 +0000 (UTC) Cc: 22147@debbugs.gnu.org To: Juri Linkov , Artur Malabarba Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Dec 16 02:48:14 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1a91CN-0004l0-Pn for geb-bug-gnu-emacs@m.gmane.org; Wed, 16 Dec 2015 02:48:11 +0100 Original-Received: from localhost ([::1]:39897 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a91CN-0002S0-94 for geb-bug-gnu-emacs@m.gmane.org; Tue, 15 Dec 2015 20:48:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37684) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a91CJ-0002Ro-RY for bug-gnu-emacs@gnu.org; Tue, 15 Dec 2015 20:48:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a91CE-00089w-Rd for bug-gnu-emacs@gnu.org; Tue, 15 Dec 2015 20:48:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:45476) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a91CE-00089s-OW for bug-gnu-emacs@gnu.org; Tue, 15 Dec 2015 20:48:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1a91CE-0002iD-6b for bug-gnu-emacs@gnu.org; Tue, 15 Dec 2015 20:48:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 16 Dec 2015 01:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22147 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22147-submit@debbugs.gnu.org id=B22147.145023043610373 (code B ref 22147); Wed, 16 Dec 2015 01:48:02 +0000 Original-Received: (at 22147) by debbugs.gnu.org; 16 Dec 2015 01:47:16 +0000 Original-Received: from localhost ([127.0.0.1]:53078 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1a91BT-0002hD-Ns for submit@debbugs.gnu.org; Tue, 15 Dec 2015 20:47:15 -0500 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:24844) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1a91BR-0002h0-0x for 22147@debbugs.gnu.org; Tue, 15 Dec 2015 20:47:13 -0500 Original-Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id tBG1l6oV019032 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 16 Dec 2015 01:47:07 GMT Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserv0021.oracle.com (8.13.8/8.13.8) with ESMTP id tBG1l61I010678 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Wed, 16 Dec 2015 01:47:06 GMT Original-Received: from abhmp0008.oracle.com (abhmp0008.oracle.com [141.146.116.14]) by aserv0121.oracle.com (8.13.8/8.13.8) with ESMTP id tBG1l6I9020918; Wed, 16 Dec 2015 01:47:06 GMT In-Reply-To: <874mfjchp1.fsf@mail.linkov.net> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6691.5000 (x86)] X-Source-IP: aserv0021.oracle.com [141.146.126.233] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:110041 Archived-At: > I mean a char-folding customization that allows a search > for =E2=80=9C=C3=A4=E2=80=9D match =E2=80=9Ca=E2=80=9D. Is this already = possible? It sounds like you are asking for symmetric char folding: being able to use any of the various A's that make up the A-characters equivalence class as a search pattern and find any of those characters. If so, I implemented that (one way, at least), and in emacs-devel I proposed such behavior as a togglable option. It is trivial to try it, if you like: character-fold+.el. http://www.emacswiki.org/emacs/download/character-fold%2b.el (A toggle command for it, `isearchp-toggle-symmetric-char-fold', is defined in isearch+.el: http://www.emacswiki.org/emacs/download/isearch%2b.el.) > If yes, then it should be easy to customize it in such a way that > =E2=80=9C\n=E2=80=9D will match space =E2=80=9C\s=E2=80=9D to avoid the n= eed to write own > functions that define an intersection of the existing functions > char-folding and lax-whitespace. IOW, to customize a char-folding > option instead of search-default-regexp-mode? Not sure if it answers the need you just described, but the same library has an option, `char-fold-ad-hoc', that lets users add their own equivalence classes. (Caveat: I think that Artur made some changes to character-fold.el recently. It's possible that character-fold+.el is not up-to-date wrt those changes, in which case it might not work with the most recent versions of character-fold.el. Maybe check the dates, if you are interested.)