From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Artur Malabarba Newsgroups: gmane.emacs.bugs Subject: bug#22147: Obsolete search-forward-lax-whitespace Date: Wed, 18 May 2016 17:40:22 -0300 Message-ID: <87bn436qx5.fsf@gmail.com> 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> <8ec0f5d4-a500-42c1-bab8-eaba00f0915c@default> <87shxjjb0h.fsf@mail.linkov.net> <8e655300-1a72-4df6-87cf-91fd006cb3d7@default> <8737pgwgiu.fsf@mail.linkov.net> <87mvnngnyq.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 1463604096 22835 80.91.229.3 (18 May 2016 20:41:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 18 May 2016 20:41:36 +0000 (UTC) Cc: 22147@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed May 18 22:41:19 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 1b38HO-0008Kv-1E for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 May 2016 22:41:18 +0200 Original-Received: from localhost ([::1]:47027 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b38HJ-0001sV-QF for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 May 2016 16:41:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49058) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b38HC-0001s7-4N for bug-gnu-emacs@gnu.org; Wed, 18 May 2016 16:41:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b38H7-000330-T1 for bug-gnu-emacs@gnu.org; Wed, 18 May 2016 16:41:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:45007) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b38H7-00032v-OC for bug-gnu-emacs@gnu.org; Wed, 18 May 2016 16:41:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1b38H7-0005Ht-Ih for bug-gnu-emacs@gnu.org; Wed, 18 May 2016 16:41:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Artur Malabarba Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 18 May 2016 20:41: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.146360404020291 (code B ref 22147); Wed, 18 May 2016 20:41:01 +0000 Original-Received: (at 22147) by debbugs.gnu.org; 18 May 2016 20:40:40 +0000 Original-Received: from localhost ([127.0.0.1]:57344 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b38Gm-0005HD-G4 for submit@debbugs.gnu.org; Wed, 18 May 2016 16:40:40 -0400 Original-Received: from mail-qg0-f47.google.com ([209.85.192.47]:34751) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b38Gk-0005Gy-Kl for 22147@debbugs.gnu.org; Wed, 18 May 2016 16:40:39 -0400 Original-Received: by mail-qg0-f47.google.com with SMTP id 90so32850958qgz.1 for <22147@debbugs.gnu.org>; Wed, 18 May 2016 13:40:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=du/m6RZiQgQ9fdyZXaHWowDc91NR7OTke/tvVDM7hGw=; b=FS+VXhHwXDqlb5p3z+Jvm02FjGUnaxQykNSF+I7gCVM0QOWXpBijJYF1i1Qb/rgvGB wfhyLKzT4jKpk0/2yjZIwLcOmcjX6G3CI1QIzJEy30L3wAqdwMLSSdAQR/ODd06du8gR BHqQXCrTmLBWi7PpzSD0pVCZ978DNWmoU33tnBlZHb2PZaJQGQTGawBxLH41gGVWXnma 1DXhb0GfrCc00eXO2DML4Zzc19s1RHW7awLWtl4XwQEZ4strVmljIBAHbxzW01rnGxuG uKbZtkhqlBvmgb78MoICNFSX41yDIdE/dyU3XWknKsht5KNoU1wNALrBk2scx4muTuwp oP/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version :content-transfer-encoding; bh=du/m6RZiQgQ9fdyZXaHWowDc91NR7OTke/tvVDM7hGw=; b=fbZJDwjGMz0l2bHa4BHYuapfUqFtmeS7ZRsi1+oV1uuU9iXtMirEhYHU2dwZMl6AJl 25VzUEl0iXZtFOr2Z9SraWaEp1f1HskUH76YbJT4l+ULaWPw2o2QSAeJJuoOZ8mYfeID hBk1+JgfTzmljTG6Y49ZKwH/UOS5hFDavasQzcACAyd2qyLHQJV1yoGxHCNO+C7fM32K oDlXBcW+SSAIsX7DmNCOWsvXUBXrKNqyTkc4lmWFQxcNQf+5qCBGn8Y81tVK4d2V0pL6 U4dDaq9tStvfz0FyYwDjWNF0VcdH8p9IvdqN2Nh5wWni3sVopO2ZN7Hey8WMkPVTLULO yJ2w== X-Gm-Message-State: AOPr4FVBOkqhubreOGb6a7m43rxojlgkd51ArhiSbFikAy28ZHXWIuahmEW8/iUNynZ0pQ== X-Received: by 10.140.19.5 with SMTP id 5mr9753572qgg.55.1463604033197; Wed, 18 May 2016 13:40:33 -0700 (PDT) Original-Received: from Gandalf-Linux.gmail.com ([179.184.224.5]) by smtp.gmail.com with ESMTPSA id 95sm5068033qgj.3.2016.05.18.13.40.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 May 2016 13:40:32 -0700 (PDT) In-Reply-To: <87mvnngnyq.fsf@mail.linkov.net> (Juri Linkov's message of "Wed, 18 May 2016 22:34:05 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) 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:118421 Archived-At: Juri Linkov writes: > Now I tried to reintroduce these lists with different names: > =E2=80=98char-fold-include-alist=E2=80=99 with a list to add to default m= appings and > =E2=80=98char-fold-exclude-alist=E2=80=99 with a list to remove from defa= ult mappings > taking into account all opinions expressed on emacs-devel for the > default values: Sounds good! Some minor comments: > +(defun make-char-fold-table () Call this `char-fold--make-table' > + (unless (and (assq char char-fold-exclude-alist) > + (member (apply #'string decomp) (assq char cha= r-fold-exclude-alist))) This call to `member' will run dozens of times for each entry in `char-fold-exclude-alist'. Maybe we should optimize those two repeated forms: `(apply #'string decomp)' and `(assq char char-fold-exclude-alist)'. > - (dolist (it '((?\" "=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"))) > + (dolist (it char-fold-include-alist) > (let ((idx (car it)) The indentation looks wrong here.