From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Artur Malabarba Newsgroups: gmane.emacs.devel Subject: Re: Questions about isearch Date: Fri, 27 Nov 2015 23:57:20 +0000 Message-ID: References: <2844.1448653818@allegro.localdomain> <83poyvqk9t.fsf@gnu.org> Reply-To: bruce.connor.am@gmail.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a113fb2a4be94c105258e73ce X-Trace: ger.gmane.org 1448668648 25750 80.91.229.3 (27 Nov 2015 23:57:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 27 Nov 2015 23:57:28 +0000 (UTC) Cc: Mike Kupfer , emacs-devel To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Nov 28 00:57:25 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 1a2StI-0008Nt-VW for ged-emacs-devel@m.gmane.org; Sat, 28 Nov 2015 00:57:25 +0100 Original-Received: from localhost ([::1]:58972 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a2StM-0000BQ-0S for ged-emacs-devel@m.gmane.org; Fri, 27 Nov 2015 18:57:28 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46646) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a2StI-00007b-5U for emacs-devel@gnu.org; Fri, 27 Nov 2015 18:57:25 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a2StH-0006KZ-B3 for emacs-devel@gnu.org; Fri, 27 Nov 2015 18:57:24 -0500 Original-Received: from mail-lf0-x22d.google.com ([2a00:1450:4010:c07::22d]:33688) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a2StF-0006K6-PQ; Fri, 27 Nov 2015 18:57:21 -0500 Original-Received: by lfaz4 with SMTP id z4so142995018lfa.0; Fri, 27 Nov 2015 15:57:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=HV3IR5J99N9ueZim9b44/gVpQch9obgajrb3c8bbOzE=; b=zpcAaMhZZ5tmJ20nWV/YEx0jkCxuMQisurS2/WX35XSM4COydMGELqTmH5nqUP//6U BNuxvM50O8rIqJPGuG1tew2/9Hyuf/7VFZp7T0jioikvT1+gpsBno176vyzr+YBeQXQ7 G5iI14zDOS/ZUT/MLXKDrJU6WO2pB0hOUjbfDTTuZNASxGqK9xF/k+qYEqiS+HKPLwLe VNN2zHIWO8sTLxFaMCCYDTsdtAQR5R44Zegr/a1F/ITtK6Sm6N4kkMbTpupML+uuVKZy P0cwTVHNOhv78f7Q7AbYVBbJV+l8XhfrbhlRUnAzc/Sbxv6LxO+Fbm83K3L0/YhfQ1EK 9SXw== X-Received: by 10.25.18.92 with SMTP id h89mr18102713lfi.54.1448668641004; Fri, 27 Nov 2015 15:57:21 -0800 (PST) Original-Received: by 10.112.202.99 with HTTP; Fri, 27 Nov 2015 15:57:20 -0800 (PST) Original-Received: by 10.112.202.99 with HTTP; Fri, 27 Nov 2015 15:57:20 -0800 (PST) In-Reply-To: <83poyvqk9t.fsf@gnu.org> X-Google-Sender-Auth: AimkgTRsG244OdujagkyUvbO7Os X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c07::22d 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:195423 Archived-At: --001a113fb2a4be94c105258e73ce Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 27 Nov 2015 8:06 pm, "Eli Zaretskii" wrote: > > Experimentation shows that it also applies to replace-string, but > > not replace-regexp ("[ab]" does not match "=C3=A4" even when > > replace-character-fold is non-nil). I'm not sure what's intended > > here, particularly since replace-regexp does honor case-fold-search. > > Not sure whether this is intended, please submit a bug report. It's a known limitation. Char folding works by converting a plain string to a regexp, so it does not work on regexps. The same happen with isearch. You can't do a char-folding regexp isearch. --001a113fb2a4be94c105258e73ce Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

On 27 Nov 2015 8:06 pm, "Eli Zaretskii" <eliz@gnu.org> wrote:
> > Experimentation shows that it also applies to replace-string, but=
> > not replace-regexp ("[ab]" does not match "=C3=A4&= quot; even when
> > replace-character-fold is non-nil).=C2=A0 I'm not sure what&#= 39;s intended
> > here, particularly since replace-regexp does honor case-fold-sear= ch.
>
> Not sure whether this is intended, please submit a bug report.

It's a known limitation. Char folding works by convertin= g a plain string to a regexp, so it does not work on regexps.
The same happen with isearch. You can't do a char-folding regexp isearc= h.

--001a113fb2a4be94c105258e73ce--