|
From: | Andreas Röhler |
Subject: | Re: Using punctuation in abbrev |
Date: | Sun, 02 Jun 2013 19:54:22 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130329 Thunderbird/17.0.5 |
Am 02.06.2013 19:00, schrieb Aurélien Aptel:
On Sun, Jun 2, 2013 at 4:24 PM, Stefan Monnier <monnier@iro.umontreal.ca> wrote:Actually, if you call M-x expand-abbrev RET explicitly, you'll see they all work. What doesn't work for the first two is the "press space after it to cause expansion", because this is only performed right after a word char (hence it works for "$foo" because the last char is a word char).I see, thanks. I've just looked at it: it's done in src/cmds.c:434 so behavior can't be changed from Lisp, too bad.
AFAICS the restriction is in abbrev--before-point for example, which fetches the abbrev using (backward-word 1). Don't see a reason why not permit any printable char being part of an abbrev. Replace backward-word by (skip-chars-backward "^ \t\r\n\f") etc. Andreas
[Prev in Thread] | Current Thread | [Next in Thread] |