From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: search-default-mode char-fold-to-regexp and Greek Extended block characters Date: Thu, 25 Jul 2019 21:46:20 +0300 Organization: LINKOV.NET Message-ID: <877e869dir.fsf@mail.linkov.net> References: <834l3ium3f.fsf@gnu.org> <83wogduc41.fsf@gnu.org> <83h87cpzml.fsf@gnu.org> <87r26gv6k2.fsf@mail.linkov.net> <87blxj3u4e.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="266754"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 25 21:06:58 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hqj4s-0017DV-1V for ged-emacs-devel@m.gmane.org; Thu, 25 Jul 2019 21:06:58 +0200 Original-Received: from localhost ([::1]:35005 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hqj4q-0007fD-U6 for ged-emacs-devel@m.gmane.org; Thu, 25 Jul 2019 15:06:56 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44125) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hqj4Q-0006X1-Gj for emacs-devel@gnu.org; Thu, 25 Jul 2019 15:06:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hqj4P-0002my-BZ for emacs-devel@gnu.org; Thu, 25 Jul 2019 15:06:30 -0400 Original-Received: from blue.elm.relay.mailchannels.net ([23.83.212.20]:17833) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hqj4M-0002l4-MD for emacs-devel@gnu.org; Thu, 25 Jul 2019 15:06:27 -0400 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id E87BA8C29F4 for ; Thu, 25 Jul 2019 19:06:23 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a43.g.dreamhost.com (100-96-35-167.trex.outbound.svc.cluster.local [100.96.35.167]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 779798C2D09 for ; Thu, 25 Jul 2019 19:06:23 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a43.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.17.3); Thu, 25 Jul 2019 19:06:23 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Drop-Sponge: 7987db006b610881_1564081583743_128725260 X-MC-Loop-Signature: 1564081583743:3033591768 X-MC-Ingress-Time: 1564081583743 Original-Received: from pdx1-sub0-mail-a43.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a43.g.dreamhost.com (Postfix) with ESMTP id B0B427F5CE for ; Thu, 25 Jul 2019 12:06:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; s=linkov.net; bh=jGjg5g vLU3efMbr757cNFPhhzNw=; b=ZU62EtweNuSZWiZ1O+Td/+wwYTmoG6K4Y52W6c tIOOCncqJ0qmGXPjpZbOgTvO4T7wbWct5HRK+DrQW0dZa0H03oTBS4b4fdX0loho ZoxXHoWvQu5qCAn9GDTB+fdqfEvjTre5Kj++aCsS15nytPGtngRj5kD7ITCDIwfq Cl/yk= Original-Received: from mail.jurta.org (m91-129-103-76.cust.tele2.ee [91.129.103.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a43.g.dreamhost.com (Postfix) with ESMTPSA id C932E7F122 for ; Thu, 25 Jul 2019 12:06:20 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a43 In-Reply-To: (Robert Pluim's message of "Thu, 25 Jul 2019 10:46:12 +0200") X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: 0 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduvddrkedvgddufedvucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucenucfjughrpefhvffuohhfffgjkfgfgggtgfesthekredttderjeenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucfkphepledurdduvdelrddutdefrdejieenucfrrghrrghmpehmohguvgepshhmthhppdhhvghlohepmhgrihhlrdhjuhhrthgrrdhorhhgpdhinhgvthepledurdduvdelrddutdefrdejiedprhgvthhurhhnqdhprghthheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqedpmhgrihhlfhhrohhmpehjuhhriheslhhinhhkohhvrdhnvghtpdhnrhgtphhtthhopegvmhgrtghsqdguvghvvghlsehgnhhurdhorhhgnecuvehluhhsthgvrhfuihiivgeptd X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 23.83.212.20 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.org gmane.emacs.devel:238898 Archived-At: > But this one I don=CA=BCt understand. Searching for iota (capital or sm= all) > in a buffer containing =E1=BF=93 =CE=B9=CC=88=CC=81 or =CE=99=CC=88=CC=81= already works with > char-fold-to-regexp, so why is this needed? Searching for =CE=B9 finds =CE=B9=CC=88=CC=81 only when searching for a s= ingle letter =CE=B9 because the search matches the first part of =CE=B9=CC=88=CC=81 that cont= ains the base character =CE=B9 and ignores the remaining combining accents like =CC=88=CC= =81 So for testing you need to search for longer strings, e.g. in a buffer with this text "=E1=BF=93=CE=B9=CC=88=CC=81=CE=99=CC=88=CC=81= ." try to search for "=CE=B9=CE=B9=CE=B9." It fails to find this text without adding (?=CE=B9 "=CE=B9=CC=88=CC=81") to char-fold-include.