Function: slot-missing

slot-missing is a byte-compiled function defined in eieio.el.gz.

Signature

(slot-missing OBJECT SLOT-NAME OPERATION &optional NEW-VALUE)

Documentation

Method invoked when an attempt to access a slot in OBJECT fails.

SLOT-NAME is the name of the failed slot, OPERATION is the type of access that was requested, and optional NEW-VALUE is the value that was desired to be set.

This method is called from oref, oset, and other functions which directly reference slots in EIEIO objects.

Implementations

(slot-missing (OBJECT forge-repository) SLOT-NAME OPERATION &optional NEW-VALUE) in `forge-repo.el'.

Undocumented

(slot-missing (C jsonrpc-connection) (N (eql :events-buffer-scrollback-size)) (OP (eql oset)) _) in `jsonrpc.el'.

Undocumented

(slot-missing OBJECT SLOT-NAME OPERATION &optional NEW-VALUE) in `eieio.el'.

Undocumented

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/eieio.el.gz
(cl-defgeneric slot-missing (object slot-name _operation &optional _new-value)
  "Method invoked when an attempt to access a slot in OBJECT fails.
SLOT-NAME is the name of the failed slot, OPERATION is the type of access
that was requested, and optional NEW-VALUE is the value that was desired
to be set.

This method is called from `oref', `oset', and other functions which
directly reference slots in EIEIO objects."
  (signal 'invalid-slot-name
          (list (if (eieio-object-p object) (eieio-object-name object) object)
                slot-name)))