bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#49214: dabbrev-expand vs. : vs. :


From: Lars Ingebrigtsen
Subject: bug#49214: dabbrev-expand vs. : vs. :
Date: Thu, 24 Jun 2021 21:43:52 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

積丹尼 Dan Jacobson <jidanni@jidanni.org> writes:

> 1. 名:laura@nurdsboro.org
> 2. 名:ralph@nurdsboro.org

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]