Function: expand-add-abbrevs

expand-add-abbrevs is an autoloaded and byte-compiled function defined in expand.el.gz.

Signature

(expand-add-abbrevs TABLE ABBREVS)

Documentation

Add a list of abbreviations to abbrev table TABLE.

ABBREVS is a list of abbrev definitions; each abbrev description entry has the form (ABBREV EXPANSION ARG).

ABBREV is the abbreviation to replace.

EXPANSION is the replacement string or a function which will make the expansion. For example, you could use the DMacros or skeleton packages to generate such functions.

ARG is an optional argument which can be a number or a list of numbers. If ARG is a number, point is placed ARG chars from the beginning of the expanded text.

If ARG is a list of numbers, point is placed according to the first member of the list, but you can visit the other specified positions cyclically with the functions expand-jump-to-previous-slot and expand-jump-to-next-slot.

If ARG is omitted, point is placed at the end of the expanded text.

Probably introduced at or before Emacs version 20.1.

Source Code

;; Defined in /usr/src/emacs/lisp/expand.el.gz
;;; Code:

;;;###autoload
(defun expand-add-abbrevs (table abbrevs)
  "Add a list of abbreviations to abbrev table TABLE.
ABBREVS is a list of abbrev definitions; each abbrev description entry
has the form (ABBREV EXPANSION ARG).

ABBREV is the abbreviation to replace.

EXPANSION is the replacement string or a function which will make the
expansion.  For example, you could use the DMacros or skeleton packages
to generate such functions.

ARG is an optional argument which can be a number or a list of
numbers.  If ARG is a number, point is placed ARG chars from the
beginning of the expanded text.

If ARG is a list of numbers, point is placed according to the first
member of the list, but you can visit the other specified positions
cyclically with the functions `expand-jump-to-previous-slot' and
`expand-jump-to-next-slot'.

If ARG is omitted, point is placed at the end of the expanded text."
  (mapc (lambda (x) (apply #'expand-add-abbrev table x)) abbrevs)
  table)