Function: completion-def-wrapper
completion-def-wrapper is a byte-compiled function defined in
completion.el.gz.
Signature
(completion-def-wrapper FUNCTION-NAME TYPE)
Documentation
Add a call to update the completion database before function execution.
TYPE is the type of the wrapper to be added. Can be :before or :under.
Source Code
;; Defined in /usr/src/emacs/lisp/completion.el.gz
;;-----------------------------------------------
;; Wrapping Macro
;;-----------------------------------------------
;; Note that because of the way byte compiling works, none of
;; the functions defined with this macro get byte compiled.
(defun completion-def-wrapper (function-name type)
"Add a call to update the completion database before function execution.
TYPE is the type of the wrapper to be added. Can be :before or :under."
(put function-name 'completion-function
(cdr (assq type
'((:separator . use-completion-before-separator)
(:before . use-completion-before-point)
(:backward-under . use-completion-backward-under)
(:backward . use-completion-backward)
(:under . use-completion-under-point)
(:under-or-before . use-completion-under-or-before-point)
(:minibuffer-separator
. use-completion-minibuffer-separator))))))