help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

set-slot-value confusion


From: Eric Abrahamsen
Subject: set-slot-value confusion
Date: Fri, 05 Feb 2016 23:33:20 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

Here's the *Help* page for `set-slot-value':

--8<---------------cut here---------------start------------->8---
set-slot-value is an alias for ‘eieio-oset’.

(set-slot-value OBJ SLOT VALUE)

This function is obsolete since 25.1;
use (setf (slot-value ..) ..) instead

Do the work for the macro ‘oset’.
Fills in OBJ’s SLOT with VALUE.

[back]  [forward]
--8<---------------cut here---------------end--------------->8---

It's an alias for `eieio-oset', but it also tells me to use (setf
(slot-value ..) ..) instead. If I look at the docstring for
`eieio-oset', it doesn't tell me to use the `setf/slot-value' combo.

So what should we be using instead of `set-slot-value'?

E





reply via email to

[Prev in Thread] Current Thread [Next in Thread]