Function: add-permanent-completion

add-permanent-completion is an interactive and byte-compiled function defined in completion.el.gz.

Signature

(add-permanent-completion STRING)

Documentation

Add STRING if it isn't already listed, and mark it permanent.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/completion.el.gz
(defun add-permanent-completion (string)
  "Add STRING if it isn't already listed, and mark it permanent."
  (interactive
    (interactive-completion-string-reader "Completion to add permanently"))
  (let ((current-completion-source (if (called-interactively-p 'interactive)
				       cmpl-source-interactive
				       current-completion-source)))
    (add-completion string nil t)))