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: Sat, 14 May 2016 15:27:05 -0700 (PDT) Message-ID: <1cf152de-c6dd-49e2-84da-d09764ff1cac@default> 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> <87r3d4z7uf.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 1463264912 1257 80.91.229.3 (14 May 2016 22:28:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 14 May 2016 22:28:32 +0000 (UTC) Cc: 22147@debbugs.gnu.org To: Artur Malabarba , Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun May 15 00:28:16 2016 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 1b1i2f-0001bo-H2 for geb-bug-gnu-emacs@m.gmane.org; Sun, 15 May 2016 00:28:13 +0200 Original-Received: from localhost ([::1]:39038 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b1i2b-0007hH-Qj for geb-bug-gnu-emacs@m.gmane.org; Sat, 14 May 2016 18:28:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57106) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b1i2Y-0007ew-GZ for bug-gnu-emacs@gnu.org; Sat, 14 May 2016 18:28:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b1i2U-0003TV-1a for bug-gnu-emacs@gnu.org; Sat, 14 May 2016 18:28:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:39471) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b1i2T-0003TQ-Vj for bug-gnu-emacs@gnu.org; Sat, 14 May 2016 18:28:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1b1i2T-0001Ng-Rt for bug-gnu-emacs@gnu.org; Sat, 14 May 2016 18:28:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 14 May 2016 22:28:01 +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.14632648355249 (code B ref 22147); Sat, 14 May 2016 22:28:01 +0000 Original-Received: (at 22147) by debbugs.gnu.org; 14 May 2016 22:27:15 +0000 Original-Received: from localhost ([127.0.0.1]:51808 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b1i1i-0001Mb-Sp for submit@debbugs.gnu.org; Sat, 14 May 2016 18:27:15 -0400 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:39510) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b1i1g-0001MO-PG for 22147@debbugs.gnu.org; Sat, 14 May 2016 18:27:13 -0400 Original-Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u4EMR6NA029801 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 14 May 2016 22:27:07 GMT Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserv0022.oracle.com (8.13.8/8.13.8) with ESMTP id u4EMR61g020093 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 14 May 2016 22:27:06 GMT Original-Received: from abhmp0019.oracle.com (abhmp0019.oracle.com [141.146.116.25]) by aserv0121.oracle.com (8.13.8/8.13.8) with ESMTP id u4EMR528029468; Sat, 14 May 2016 22:27:06 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6744.5000 (x86)] X-Source-IP: aserv0022.oracle.com [141.146.126.234] 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" Xref: news.gmane.org gmane.emacs.bugs:118252 Archived-At: > IIUC, Drew was offering an implementation of symmetric char folding, > whereas the release blocking aspect of this bug is to add a > char-folding-ad-hoc variable.=20 That makes sense. That too is in `character-fold+.el', which I attached to my previous messag= e. Dunno whether what I have there is exactly what you want/need. This is it: (defcustom char-fold-ad-hoc '((?\" "=EF=BC=82" "=E2=80=9C" "=E2=80=9D" "=E2= =80=9D" "=E2=80=9E" "=E2=B9=82" "=E3=80=9E" "=E2=80=9F" "=E2=80=9F" "=E2=9D= =9E" "=E2=9D=9D" "=E2=9D=A0" "=E2=80=9C" "=E2=80=9E" "=E3=80= =9D" "=E3=80=9F" "=F0=9F=99=B7" "=F0=9F=99=B6" "=F0=9F=99=B8" "=C2=AB" "=C2= =BB") (?' "=E2=9D=9F" "=E2=9D=9B" "=E2=9D=9C" "=E2= =80=98" "=E2=80=99" "=E2=80=9A" "=E2=80=9B" "=E2=80=9A" "=F3=A0=80=A2" "=E2= =9D=AE" "=E2=9D=AF" "=E2=80=B9" "=E2=80=BA") (?` "=E2=9D=9B" "=E2=80=98" "=E2=80=9B" "=F3= =A0=80=A2" "=E2=9D=AE" "=E2=80=B9")) "Ad hoc character foldings. Each entry is a list of a character and the strings that fold into it. The default value includes those ad hoc foldings provided by vanilla Emacs." :set (lambda (sym defs) (custom-set-default sym defs) (update-char-fold-table)) :type '(repeat (cons (character :tag "Fold to character") (repeat (string :tag "Fold from string")))) :group 'isearch) And this is where it is used: ;; Add some manual entries. (dolist (it char-fold-ad-hoc) (let ((idx (car it)) (chr-strgs (cdr it))) (aset equiv idx (append chr-strgs (aref equiv idx)))))