Function: cfengine3-completion-function

cfengine3-completion-function is a byte-compiled function defined in cfengine.el.gz.

Signature

(cfengine3-completion-function)

Documentation

Return completions for function name around or before point.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/cfengine.el.gz
(defun cfengine3-completion-function ()
  "Return completions for function name around or before point."
  (let* ((bounds (save-excursion
                   (let ((p (point)))
                     (skip-syntax-backward "w_" (point-at-bol))
                     (list (point) p))))
         (syntax (cfengine3-make-syntax-cache))
         (flist (assq 'functions syntax)))
    (when bounds
      (append bounds (list (cdr flist))))))