Function: hui:ebut-delete
hui:ebut-delete is an interactive and byte-compiled function defined
in hui.el.
Signature
(hui:ebut-delete BUT-KEY &optional KEY-SRC)
Documentation
Delete explicit Hyperbole button given by BUT-KEY in optional KEY-SRC.
KEY-SRC may be a buffer or a pathname, when nil the current buffer is used. Return t if button is deleted, nil if user chooses not to delete or signal an error otherwise. If called interactively, prompt user whether to delete and derive BUT-KEY from the button that point is within. Signal an error if point is not within a button.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hui.el
(defun hui:ebut-delete (but-key &optional key-src)
"Delete explicit Hyperbole button given by BUT-KEY in optional KEY-SRC.
KEY-SRC may be a buffer or a pathname, when nil the current buffer is used.
Return t if button is deleted, nil if user chooses not to delete or signal
an error otherwise. If called interactively, prompt user whether to delete
and derive BUT-KEY from the button that point is within.
Signal an error if point is not within a button."
(interactive (list (when (ebut:at-p)
(hattr:get 'hbut:current 'lbl-key))))
(cond ((null but-key)
(hypb:error
"(ebut-delete): Point is not over the label of an existing button"))
((not (stringp but-key))
(hypb:error
"(ebut-delete): Invalid label key argument: '%s'" but-key)))
(let ((interactive (called-interactively-p 'interactive)))
(if (and hui:hbut-delete-confirm-flag interactive)
(if (y-or-n-p (format "Delete button %s%s%s? "
ebut:label-start
(hbut:key-to-label but-key) ebut:label-end))
(hui:ebut-delete-op interactive but-key key-src)
(message "")
nil)
(hui:ebut-delete-op interactive but-key key-src))))