all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: net june <netjune@outlook.com>
To: zhang cc <ccsmile2008@outlook.com>, Alan Mackenzie <acm@muc.de>
Cc: Emacs developers <emacs-devel@gnu.org>
Subject: Re: c-forward-sws: Is the code right?
Date: Thu, 29 Mar 2018 03:06:47 +0000	[thread overview]
Message-ID: <SINPR04MB17742A82353C364D34426BEFB7A20@SINPR04MB1774.apcprd04.prod.outlook.com> (raw)
In-Reply-To: <20180328190518.GA6592@ACM>

[-- Attachment #1: Type: text/plain, Size: 1460 bytes --]

I am using emacs 26 and have cherry-picked your commit on master. It seems be fixed.

?取 Outlook for Android<https://aka.ms/ghei36>

________________________________
From: Emacs-devel <emacs-devel-bounces+netjune=outlook.com@gnu.org> on behalf of Alan Mackenzie <acm@muc.de>
Sent: Thursday, March 29, 2018 3:05:18 AM
To: zhang cc
Cc: Emacs developers
Subject: Re: c-forward-sws: Is the code right?

Hello, Zhang.

On Wed, Mar 28, 2018 at 01:35:55 +0000, zhang cc wrote:

>> The intention is that "\\<\\>" will never match at all, hence that
>> match-end will never be executed. "\\<" means "beginning of word" and
>> "\\>" means "end of word". Could there be something in your environment
>> whereby an end of word might be at the same position as the beginning of
>> a word? If this is the case, then I will need to come up with an actual
>> regexp which can never match anything.


> 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\\`".

Unfortunately, it is too late to get this bug fix into Emacs 26.1.

If you are using any version but master, please tell me, and I will send
you a patch to fix the bug in your copy of that version.

Thanks for taking the trouble to report this bug.

--
Alan Mackenzie (Nuremberg, Germany).


[-- Attachment #2: Type: text/html, Size: 2761 bytes --]

  reply	other threads:[~2018-03-29  3:06 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-27 14:44 c-forward-sws: Is the code right? zhang cc
2018-03-27 16:41 ` Alan Mackenzie
2018-03-27 17:15   ` Stefan Monnier
2018-03-28  1:35   ` zhang cc
2018-03-28  1:56     ` Noam Postavsky
2018-03-28 19:05     ` Alan Mackenzie
2018-03-29  3:06       ` net june [this message]
2018-03-29 10:38       ` Eli Zaretskii
2018-04-02 19:58         ` Alan Mackenzie
2018-04-02 23:58           ` Stefan Monnier
2018-04-03 17:13             ` Andy Moreton
2018-04-03 21:03               ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=SINPR04MB17742A82353C364D34426BEFB7A20@SINPR04MB1774.apcprd04.prod.outlook.com \
    --to=netjune@outlook.com \
    --cc=acm@muc.de \
    --cc=ccsmile2008@outlook.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.