Previous: Object Plists, Up: Symbol Properties [Contents][Index]
These functions are useful for manipulating property lists that are stored in places other than symbols:
This returns the value of the property property stored in the property list plist. For example,
(getf '(foo 4) 'foo) ⇒ 4
This stores value as the value of the property property in the property list plist. It may modify plist destructively, or it may construct a new list structure without altering the old. The function returns the modified property list, so you can store that back in the place where you got plist. For example,
(setq my-plist '(bar t foo 4)) ⇒ (bar t foo 4) (setq my-plist (putf my-plist 'foo 69)) ⇒ (bar t foo 69) (setq my-plist (putf my-plist 'quux '(a))) ⇒ (quux (a) bar t foo 5)
This function returns non-nil
if property lists a and b
are eq
. This means that the property lists have the same values
for all the same properties, where comparison between values is done using
eq
.
This function returns non-nil
if property lists a and b
are equal
.
Both of the above functions do order-insensitive comparisons.
(plists-eq '(a 1 b 2 c nil) '(b 2 a 1)) ⇒ t (plists-eq '(foo "hello" bar "goodbye") '(bar "goodbye" foo "hello")) ⇒ nil (plists-equal '(foo "hello" bar "goodbye") '(bar "goodbye" foo "hello")) ⇒ t
Previous: Object Plists, Up: Symbol Properties [Contents][Index]