[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#62959: [PATCH] Recognize defstruct slot names in various eieio funct
From: |
Thuna |
Subject: |
bug#62959: [PATCH] Recognize defstruct slot names in various eieio functions |
Date: |
Thu, 20 Apr 2023 00:15:50 +0200 |
The function `eieio--known-slot-name-p' is used by some eieio functions
(specifically eieio-oref, eieio-oref-default, and eieio-oset-default) to
check whether a slot name is known or not, and if not signals an
"Unknown slot" warning.
Structs do not make their slots known to `eieio--known-slot-name-p', so
the warning is signaled even for valid slot names. Since eieio aims for
compatibility with defstruct, this should probably be considered a bug.
The function `eieio--known-slot-name-p' checks the variable
`eieio--known-slot-names' but also has a fallback for the name's
`slot-name' property. In the patch I opted to use the latter.
0001-Recognize-defstruct-slot-names-in-various-eieio-func.patch
Description: The patch
- bug#62959: [PATCH] Recognize defstruct slot names in various eieio functions,
Thuna <=