Function: oref

oref is a macro defined in eieio.el.gz.

Signature

(oref OBJ SLOT)

Documentation

Retrieve the value stored in OBJ in the slot named by SLOT.

Probably introduced at or before Emacs version 28.1.

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/eieio.el.gz
;;; Get/Set slots in an object.
;;
(defmacro oref (obj slot)
  "Retrieve the value stored in OBJ in the slot named by SLOT."
  (declare (debug (form symbolp)))
  `(eieio-oref ,obj (quote ,slot)))