Function: ebut:delete
ebut:delete is a byte-compiled function defined in hbut.el.
Signature
(ebut:delete &optional BUT-SYM)
Documentation
Delete Hyperbole explicit button based on optional BUT-SYM.
Default is the symbol hbut:current. Return entry deleted (a list of attribute values) or nil.
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hbut.el
(defun ebut:delete (&optional but-sym)
"Delete Hyperbole explicit button based on optional BUT-SYM.
Default is the symbol hbut:current.
Return entry deleted (a list of attribute values) or nil."
(unless but-sym
(setq but-sym (ebut:at-p)))
(when (ebut:is-p but-sym)
(let* ((but-key (hattr:get but-sym 'lbl-key))
(loc (hattr:get but-sym 'loc))
(entry (hbdata:delete-entry but-key loc)))
(run-hooks 'ebut-delete-hook)
entry)))