GNU bug report logs - #5936
23.1.95; fix a bug in abbrev--before-point

Previous Next

Package: emacs;

Reported by: Leo <sdl.web <at> gmail.com>

Date: Mon, 12 Apr 2010 15:20:02 UTC

Severity: normal

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Leo <sdl.web <at> gmail.com>
Cc: 5936 <at> debbugs.gnu.org
Subject: bug#5936: 23.1.95; fix a bug in abbrev--before-point
Date: Mon, 12 Apr 2010 14:25:16 -0400
> 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






This bug report was last modified 15 years and 98 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.