From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Questions about isearch Date: Thu, 26 Nov 2015 05:34:17 +0200 Message-ID: <8337vtwi12.fsf@gnu.org> References: <83lh9lx6oi.fsf@gnu.org> <83a8q1x1cn.fsf@gnu.org> Reply-To: Eli Zaretskii 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 1448508891 6963 80.91.229.3 (26 Nov 2015 03:34:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 26 Nov 2015 03:34:51 +0000 (UTC) Cc: emacs-devel@gnu.org To: bruce.connor.am@gmail.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 26 04:34:41 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 1a1nKS-0004uW-A7 for ged-emacs-devel@m.gmane.org; Thu, 26 Nov 2015 04:34:40 +0100 Original-Received: from localhost ([::1]:48899 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a1nKU-0003SG-04 for ged-emacs-devel@m.gmane.org; Wed, 25 Nov 2015 22:34:42 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34614) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a1nKQ-0003S9-MJ for emacs-devel@gnu.org; Wed, 25 Nov 2015 22:34:39 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a1nKM-0000G5-JI for emacs-devel@gnu.org; Wed, 25 Nov 2015 22:34:38 -0500 Original-Received: from mtaout27.012.net.il ([80.179.55.183]:60226) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a1nKM-0000G0-BB for emacs-devel@gnu.org; Wed, 25 Nov 2015 22:34:34 -0500 Original-Received: from conversion-daemon.mtaout27.012.net.il by mtaout27.012.net.il (HyperSendmail v2007.08) id <0NYE00300JQ38800@mtaout27.012.net.il> for emacs-devel@gnu.org; Thu, 26 Nov 2015 05:29:29 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by mtaout27.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NYE00KMPKD50Q90@mtaout27.012.net.il>; Thu, 26 Nov 2015 05:29:29 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.179.55.183 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:195271 Archived-At: > Date: Wed, 25 Nov 2015 21:49:58 +0000 > From: Artur Malabarba > Cc: emacs-devel >=20 > > > > 2. It also doesn't match =C3=A4 (a single character) with a= =CC=88 (2 characters, > > > > which Emacs correctly composes into 1 grapheme cluster). Shou= ld it? > > > > > > Possibly. Since they look the same, might make things easier on= users. But > I > > > wouldn't know as I've never seen the second version used anywhe= re. > > > > Once again, the decomposition attribute says we should match them= : > > > > (get-char-code-property ?=C3=A4 'decomposition) > > =3D> (97 776) > > > > and the second character in a=CC=88 is U+0308 =3D 776. Doesn't th= at say we > > should have matched them? >=20 > That's different. Currently we use the decomposition attribute to d= ecide that > "a" should match =C3=A4. Our approach so far has been that searchin= g for the "easy > to type" characters should match the "hard to type" characters, but= searching > for the "hard to type" characters will only match the character its= elf. So > right now it is working as intended.=20 >=20 > We can (and I think we should) extend that last case so that search= ing for the > "hard to type" characters will only match the character itself or i= ts exact > decomposition.=20 The first part (matching only itself) already works, AFAICS. If the latter doesn't require too deep changes, I think we should do that fo= r Emacs 25.1, because it would be confusing not to have that. Thanks.