Function: hypb:do-remove-from-plist

hypb:do-remove-from-plist is an autoloaded and byte-compiled function defined in hypb.el.

Signature

(hypb:do-remove-from-plist PLIST NAME)

Documentation

Remove from property list PLIST a NAME string.

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hypb.el
;; Adapted from cl--do-remf in "cl-extra.el" but uses 'equal' for comparisons.
;;;###autoload
(defun hypb:do-remove-from-plist (plist name)
  "Remove from property list PLIST a NAME string."
  (let ((p (cdr plist)))
    ;; Can't use `plist-member' here because it goes to the cons-cell
    ;; of NAME and we need the one before.
    (while (and (cdr p) (not (equal (cadr p) name)))
      (setq p (cddr p)))
    (and (cdr p) (progn (setcdr p (cdddr p)) t))))