Function: pcomplete-find-completion-function

pcomplete-find-completion-function is a byte-compiled function defined in pcomplete.el.gz.

Signature

(pcomplete-find-completion-function COMMAND)

Documentation

Find the completion function to call for the given COMMAND.

Source Code

;; Defined in /usr/src/emacs/lisp/pcomplete.el.gz
;; generation of completion lists

(defun pcomplete-find-completion-function (command)
  "Find the completion function to call for the given COMMAND."
  (let ((sym (intern-soft
	      (concat "pcomplete/" (symbol-name major-mode) "/" command))))
    (unless sym
      (setq sym (intern-soft (concat "pcomplete/" command))))
    (and sym (fboundp sym) sym)))