[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: abbrev-expand-functions
From: |
Johan Bockgård |
Subject: |
Re: abbrev-expand-functions |
Date: |
Sun, 15 Mar 2009 17:34:18 +0100 |
User-agent: |
Gnus/5.110009 (No Gnus v0.9) Emacs/23.0.90 (gnu/linux) |
Leo <sdl.web@gmail.com> writes:
> Is the following understanding correct?
>
> Internally, each abbrev symbol is like an uninterned variable with a
> structure like this:
The abbrev symbol is interned in the abbrev TABLE.
> (ABBREVNAME EXPANSION [HOOK] [PROPS...])
>
> the symbol's each property maps to a slot in that structure, for
> example, symbol-function maps to [HOOK] etc.
More or less.
"An abbrev table is represented as an obarray containing a symbol for
each abbreviation. The symbol's name is the abbreviation; its value
is the expansion; its function definition is the hook function to do
the expansion; its property list cell typically contains various
additional properties such as the use count, the number of times the
abbreviation has been expanded, or whether the abbrev is a so-called
"system" abbrev defined by a major mode rather than by the user."
(info "(elisp) Abbrevs")