Function: hui:gibut-create
hui:gibut-create is an interactive and byte-compiled function defined
in hui.el.
Signature
(hui:gibut-create NAME TEXT)
Documentation
Create a Hyperbole global implicit button with NAME and button TEXT at point.
Button is stored as the properties of the symbol, 'hbut:current.
Use hui:gbut-create to create a global explicit button.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hui.el
(defun hui:gibut-create (name text)
"Create a Hyperbole global implicit button with NAME and button TEXT at point.
Button is stored as the properties of the symbol, \\='hbut:current.
Use `hui:gbut-create' to create a global explicit button."
(interactive "sCreate global implicit button named: \nsButton text (with any delimiters): ")
(let (but-buf
opoint
delimited-name)
(save-excursion
(setq delimited-name (concat ibut:label-start name ibut:label-end)
but-buf (hpath:find-noselect (gbut:file)))
(hui:buf-writable-err but-buf "gibut-create")
;; This prevents movement of point which might be useful to user.
(set-buffer but-buf)
(save-excursion
(goto-char (point-max))
(unless (bolp)
(insert "\n"))
(setq opoint (point))
(insert delimited-name ": " text "\n")
(save-excursion
(goto-char (+ opoint (length ibut:label-start)))
;; Create button object from ibut at point
(ibut:create))
(save-buffer))
(message "`%s' global implicit button created." name))))