Function: ebut:edit

ebut:edit is a byte-compiled function defined in hbut.el.

Signature

(ebut:edit &optional LBL-KEY BUT-SYM NEW-LBL-KEY)

Documentation

Edit explicit Hyperbole button from optional LBL-KEY and BUT-SYM.

Defaults are the key for any button label at point and hbut:current. If successful, return button's instance number, except when instance number is 1, then return t. On failure, as when button does not exist, return nil.

Do not save button data buffer.

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hbut.el
(defun    ebut:edit (&optional lbl-key but-sym new-lbl-key)
  "Edit explicit Hyperbole button from optional LBL-KEY and BUT-SYM.
Defaults are the key for any button label at point and `hbut:current'.
If successful, return button's instance number, except when instance
number is 1, then return t.  On failure, as when button does not exist,
return nil.

Do not save button data buffer."
  (save-excursion
    (let ((lbl-instance (hbdata:write lbl-key but-sym new-lbl-key)))
      (run-hooks 'ebut-edit-hook)
      lbl-instance)))