Function: expand-abbrev

expand-abbrev is an interactive and byte-compiled function defined in abbrev.el.gz.

Signature

(expand-abbrev)

Documentation

Expand the abbrev before point, if there is an abbrev there.

Effective when explicitly called even when abbrev-mode(var)/abbrev-mode(fun) is nil. Calls the value of abbrev-expand-function with no argument to do the work, and returns whatever it does. (That return value should be the abbrev symbol if expansion occurred, else nil.)

View in manual

Probably introduced at or before Emacs version 18.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/abbrev.el.gz
(defun expand-abbrev ()
  "Expand the abbrev before point, if there is an abbrev there.
Effective when explicitly called even when `abbrev-mode' is nil.
Calls the value of `abbrev-expand-function' with no argument to do
the work, and returns whatever it does.  (That return value should
be the abbrev symbol if expansion occurred, else nil.)"
  (interactive)
  (or (funcall abbrev-expand-function)
      (if abbrev-suggest
          (abbrev--suggest-maybe-suggest))))