[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
:regexp to abbrev table
From: |
Leo |
Subject: |
:regexp to abbrev table |
Date: |
Fri, 16 Apr 2010 11:06:08 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
Hello Stefan and all,
If I want abbrevs to contain symbol, word, or \ (desirable in TeX), how
to construct a :regexp to the abbrev table? (For example, in TikZ, \node
and node are both meaningful, so one would naturally want \n to expand
into \node and n to expand into node).
The abbrev itself should match \\(\\(\\sw\\|\\s_\\|\\s\\\\)+\\). Since
currently :regexp also needs to match part of the text before the
abbrev, how to prepend \\(\\(\\sw\\|\\s_\\|\\s\\\\)+\\) so that abbrevs
can be correctly found? Something similar to \\(\\Sw\\|\\S_\\|\\S\\\\)
but without adding the extra group.
Do you think using greedy looking-back in abbrev--before-point will make
creating the :regexp property easier?
Thanks,
Leo
- :regexp to abbrev table,
Leo <=
- Re: :regexp to abbrev table, Stefan Monnier, 2010/04/19
- Re: :regexp to abbrev table, Leo, 2010/04/19
- Message not available
- Re: :regexp to abbrev table, Leo, 2010/04/20
- Re: :regexp to abbrev table, Stefan Monnier, 2010/04/20
- Re: :regexp to abbrev table, Leo, 2010/04/20
- Re: :regexp to abbrev table, Leo, 2010/04/20
- Re: :regexp to abbrev table, Stefan Monnier, 2010/04/21
- Re: :regexp to abbrev table, Leo, 2010/04/21
- Message not available
- Re: :regexp to abbrev table, Leo, 2010/04/21
- Message not available
- Re: :regexp to abbrev table, Leo, 2010/04/21