Function: hui:gbut-delete

hui:gbut-delete is an interactive and byte-compiled function defined in hui.el.

Signature

(hui:gbut-delete BUT-KEY)

Documentation

Delete global Hyperbole button given by BUT-KEY.

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:gbut-delete (but-key)
  "Delete global Hyperbole button given by BUT-KEY.
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 (save-excursion
		       (hui:buf-writable-err
			(find-file-noselect (gbut:file)) "gbut-delete")
		       (hbut:label-to-key
			(hargs:read-match "Global button to delete: "
					  (mapcar #'list (gbut:label-list))
					  nil t nil 'gbut)))))
  (prog1 (hui:hbut-delete but-key (gbut:file))
    (gbut:save-buffer)))