Function: evil-put-property

evil-put-property is a byte-compiled function defined in evil-common.el.

This function is obsolete since 1.15.0.

Signature

(evil-put-property ALIST-VAR KEY PROP VAL &rest PROPERTIES)

Documentation

Set PROP to VAL for KEY in ALIST-VAR.

ALIST-VAR points to an association list with entries of the form
(KEY . PLIST), where PLIST is a property list storing PROP and VAL.

Source Code

;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-common.el
(defun evil-put-property (alist-var key prop val &rest properties)
  "Set PROP to VAL for KEY in ALIST-VAR.
ALIST-VAR points to an association list with entries of the form
\(KEY . PLIST), where PLIST is a property list storing PROP and VAL."
  (declare (obsolete nil "1.15.0"))
  (set alist-var
       (let* ((alist (symbol-value alist-var))
              (plist (cdr (assq key alist))))
         (setq plist (plist-put plist prop val))
         (when properties
           (setq plist (evil-concat-plists plist properties)
                 val (car (last properties))))
         (setq alist (assq-delete-all key alist))
         (push (cons key plist) alist)))
  val)