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

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

bug#5936: 23.1.95; fix a bug in abbrev--before-point


From: Stefan Monnier
Subject: bug#5936: 23.1.95; fix a bug in abbrev--before-point
Date: Mon, 12 Apr 2010 14:25:16 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

> If you use the :regexp property in an abbrev table, all abbrevs in that
> table will fail except those with only one char.

Not at all.  But you may get such a result if you use a naive regexp, yes.

> This is because of a regexp match in abbrev--before-point which only
> looks back one char.

No, this is because the regexp you have to use must match part of the
text *before* the abbrev.  That's why the doc for define-abbrev-table
gives as example \<\(\w+\)\W* rather than just \(\w+\)\W*.


        Stefan








reply via email to

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