Function: ecomplete--remove-item

ecomplete--remove-item is a byte-compiled function defined in ecomplete.el.gz.

Signature

(ecomplete--remove-item TYPE KEY)

Documentation

Remove the element of TYPE and KEY from the ecomplete database.

Source Code

;; Defined in /usr/src/emacs/lisp/ecomplete.el.gz
(defun ecomplete--remove-item (type key)
  "Remove the element of TYPE and KEY from the ecomplete database."
  (unless ecomplete-database
    (ecomplete-setup))
  (let ((elems (assq type ecomplete-database)))
    (unless elems
      (user-error "No elements of type %s" type))
    (let ((entry (assoc key elems)))
      (unless entry
        (user-error "No entry with key %s" key))
      (setcdr elems (delq entry (cdr elems))))))