Function: object-remove-from-list

object-remove-from-list is a byte-compiled function defined in eieio.el.gz.

Signature

(object-remove-from-list OBJECT SLOT ITEM)

Documentation

In OBJECT's SLOT, remove occurrences of ITEM.

Deletion is done with delete, which deletes by side effect, and comparisons are done with equal. If SLOT is unbound, do nothing.

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/eieio.el.gz
(defun object-remove-from-list (object slot item)
  "In OBJECT's SLOT, remove occurrences of ITEM.
Deletion is done with `delete', which deletes by side effect,
and comparisons are done with `equal'.
If SLOT is unbound, do nothing."
  (if (not (slot-boundp object slot))
      nil
    (eieio-oset object slot (delete item (eieio-oref object slot)))))