Correctly return passed value from widget-put

* lisp/wid-edit.el (widget-get-indirect): Return passed value to stay
consistent with old C implementation.  (Bug#76664)
This commit is contained in:
David Ponce 2025-03-02 02:17:12 +01:00 committed by Stefan Kangas
parent 10f11d730e
commit 5b13541858

View file

@ -625,7 +625,8 @@ and saves that overlay under the :inactive property for WIDGET."
(defun widget-put (widget property value)
"In WIDGET, set PROPERTY to VALUE.
The value can later be retrieved with `widget-get'."
(setcdr widget (plist-put (cdr widget) property value)))
(setcdr widget (plist-put (cdr widget) property value))
value)
;;;###autoload
(defun widget-get (widget property)