Function: gv-define-expander
gv-define-expander is an autoloaded macro defined in gv.el.gz.
Signature
(gv-define-expander NAME HANDLER)
Documentation
Use HANDLER to handle NAME as a generalized var.
NAME is a symbol: the name of a function, macro, or special form.
HANDLER is a function which takes an argument DO followed by the same
arguments as NAME. DO is a function as defined in gv-get.
Probably introduced at or before Emacs version 24.3.
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/gv.el.gz
;; Different ways to declare a generalized variable.
;;;###autoload
(defmacro gv-define-expander (name handler)
"Use HANDLER to handle NAME as a generalized var.
NAME is a symbol: the name of a function, macro, or special form.
HANDLER is a function which takes an argument DO followed by the same
arguments as NAME. DO is a function as defined in `gv-get'."
(declare (indent 1) (debug (sexp form)))
`(function-put ',name 'gv-expander ,handler))