[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: abbreviation ending with "."
From: |
finotti |
Subject: |
Re: abbreviation ending with "." |
Date: |
Thu, 12 Nov 2009 08:28:03 -0800 (PST) |
User-agent: |
G2/1.0 |
Thanks for the reply!
On Nov 11, 11:30 pm, Stefan Monnier <monn...@iro.umontreal.ca> wrote:
> Abbreviations by default only work if they're exclusively made up of
> "word chars" (a.k.a chars of syntax class "word").
I see. Thanks for clarifying that.
> So you can either change the char "." to be a word constituent (which
> may lead to surprises), or you can change the setting on the
> abbrev-table in which you placed that "p." abbreviation.
>
> E.g. if it's added to the abbrev table named `foo-abbrev-table', you
> could do
>
> (abbrev-table-put foo-abbrev-table
> :regexp "\\<\\(\\w+\\.?\\)\\W*")
Should I put it in my .emacs? If so, it did not work. (BTW, I have
it in my global-abbrev-table.)
> See C-h v define-abbrev-table to see the default value used for
> the :regexp (to which I just added \\.?).
That command did not work for me: define-<TAB> gives only "define-key-
rebound-commands"...
Any suggestions?
Thanks again for the quick reply!
Luis