Subject: Re: bug#49214: dabbrev-expand vs. ： vs. :

From: Lars Ingebrigtsen <[email-masked]>
Date: Thu, 24 Jun 2021 21:43:52 +0200

積丹尼 Dan Jacobson <[email-masked]> writes:

> 1. 名：[email-masked]
> 2. 名:[email-masked]

The problem here is:

(string-match "^\\sw" "：foo")
0

(string-match "^\\sw" ":foo")
nil

That is, ： is word-constituent.  I'm not sure whether it's reasonable
for dabbrev to use \\sw as the regexp here, but it can be controlled by
setting `dabbrev-abbrev-char-regexp' to something else.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no