Function: htype:delete

htype:delete is a byte-compiled function defined in hact.el.

Signature

(htype:delete TYPE TYPE-CATEGORY)

Documentation

Delete a Hyperbole TYPE derived from TYPE-CATEGORY (both symbols).

Return the Hyperbole symbol for the TYPE if it existed, else nil.

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hact.el
(defun    htype:delete (type type-category)
  "Delete a Hyperbole TYPE derived from TYPE-CATEGORY (both symbols).
Return the Hyperbole symbol for the TYPE if it existed, else nil."
  (let* ((sym (htype:symbol type type-category))
	 (exists (fboundp sym)))
    (setplist sym nil)
    (symtable:delete type (symtable:select type-category))
    (symset:delete type type-category 'symbols)
    (fmakunbound sym)
    (run-hooks 'htype-delete-hook)
    (and exists sym)))