From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mike Kupfer Newsgroups: gmane.emacs.devel Subject: Re: Questions about isearch Date: Fri, 27 Nov 2015 11:50:18 -0800 Message-ID: <2844.1448653818@allegro.localdomain> References: <83ziy1v35v.fsf@gnu.org> 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 1448653851 12058 80.91.229.3 (27 Nov 2015 19:50:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 27 Nov 2015 19:50:51 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 27 20:50:39 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 1a2P2T-00085w-Js for ged-emacs-devel@m.gmane.org; Fri, 27 Nov 2015 20:50:37 +0100 Original-Received: from localhost ([::1]:58320 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a2P2W-0003J1-GD for ged-emacs-devel@m.gmane.org; Fri, 27 Nov 2015 14:50:40 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49024) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a2P2J-0003If-6x for emacs-devel@gnu.org; Fri, 27 Nov 2015 14:50:28 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a2P2F-0004YU-Vt for emacs-devel@gnu.org; Fri, 27 Nov 2015 14:50:27 -0500 Original-Received: from shell1.rawbw.com ([198.144.192.42]:65227) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a2P2F-0004YE-Ng; Fri, 27 Nov 2015 14:50:23 -0500 Original-Received: from allegro.localdomain (m208-249.dsl.rawbw.com [198.144.208.249]) by shell1.rawbw.com (8.15.1/8.15.1) with ESMTP id tARJoIte056045; Fri, 27 Nov 2015 11:50:19 -0800 (PST) (envelope-from m.kupfer@acm.org) X-Authentication-Warning: shell1.rawbw.com: Host m208-249.dsl.rawbw.com [198.144.208.249] claimed to be allegro.localdomain In-Reply-To: Your message of "Thu\, 26 Nov 2015 05\:40\:44 +0200." <83ziy1v35v.fsf@gnu.org> X-Mailer: MH-E 8.6+mdk01; nmh 1.6; GNU Emacs 24.5.2 X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x X-Received-From: 198.144.192.42 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:195412 Archived-At: Eli Zaretskii wrote: > > From: Mike Kupfer > > cc: emacs-devel > > Date: Wed, 25 Nov 2015 15:04:37 -0800 > >=20 > > To give a more concrete example, if I try to replace "papa" ("pope" in > > Italian) with "Francis", I would not want Emacs to also replace (or even > > suggest replacing) "pap=C3=A0" ("dad" in Italian) with "Francis". >=20 > By default, Emacs won't. But if you set replace-character-fold > non-nil, it will. Ah, I see; thanks. Assuming that there won't be any major changes for 25.1 in this area, I think it would be helpful for the "Lax Search" Info node to say something about replace-character-fold, particularly since that node mentions the relationship between case-fold-search and replace commands. And maybe replace-character-fold should be listed in the "Search Customizations" node? Also, I'm confused about the exact semantics of replace-character-fold. Its help string says it applies to query-replace. 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. And speaking of case-fold-search, it is documented as buffer-local when set. Should search-default-regexp-mode and replace-character-fold do the same? regards, mike