From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: c-forward-sws: Is the code right? Date: Thu, 29 Mar 2018 13:38:09 +0300 Message-ID: <83d0zndv5a.fsf@gnu.org> References: <20180327164156.GA4105@ACM> <20180328190518.GA6592@ACM> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1522319798 2709 195.159.176.226 (29 Mar 2018 10:36:38 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 29 Mar 2018 10:36:38 +0000 (UTC) Cc: emacs-devel@gnu.org, ccsmile2008@outlook.com To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 29 12:36:34 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f1Uuz-0000UQ-Ni for ged-emacs-devel@m.gmane.org; Thu, 29 Mar 2018 12:36:29 +0200 Original-Received: from localhost ([::1]:39308 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f1Ux2-0004N5-SL for ged-emacs-devel@m.gmane.org; Thu, 29 Mar 2018 06:38:36 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53907) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f1Uwv-0004MM-C1 for emacs-devel@gnu.org; Thu, 29 Mar 2018 06:38:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f1Uws-00074V-6Q for emacs-devel@gnu.org; Thu, 29 Mar 2018 06:38:29 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:39243) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f1Uws-00074R-2U; Thu, 29 Mar 2018 06:38:26 -0400 Original-Received: from [176.228.60.248] (port=2060 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1f1Uwr-0000B2-Af; Thu, 29 Mar 2018 06:38:25 -0400 In-reply-to: <20180328190518.GA6592@ACM> (message from Alan Mackenzie on Wed, 28 Mar 2018 19:05:18 +0000) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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:224145 Archived-At: > Date: Wed, 28 Mar 2018 19:05:18 +0000 > From: Alan Mackenzie > Cc: Emacs developers > > > It matchs when cursor is between a Chinese char and an ASCII char like “你hao”( cursor before ‘h’). > > I've committed a fix to master which should fix this bug. Basically, > instead of "\\<\\>" CC Mode now uses Stefan's suggestion of "a\\`". Please comment the use of this everywhere. AFAICS, you have a comment only in some places. (Maybe it's better to have a (pair of) defconst(s) with these regexps with some descriptive names, in which case we need only comment them in one place.) Thanks.