|
From: | Stefan Monnier |
Subject: | Re: did the abbrev mechanism ever expand «two words» to «two different words». |
Date: | Fri, 08 Jan 2021 15:29:01 -0500 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
> table?". That can't be both two words separated by a space and a > single word at the same time, ie using > > "\\(\\w+ \\w+\\)\\|\\(w+\\) Note that these regexps will be matched via `re-search-backward` so \\(w+\\) will typically only match a single character (it stops at the *rightmost* match). Another way to go about it is to construct the regexp from the set of abbrevs using `regexp-opt`. Stefan
[Prev in Thread] | Current Thread | [Next in Thread] |