Function: hui:gbut-link-directly
hui:gbut-link-directly is an interactive and byte-compiled function
defined in hui.el.
Signature
(hui:gbut-link-directly &optional ARG)
Documentation
Prompt for a new global link button name and add it.
Open a blank line at the end of the global/personal button file and insert a new global button. By default, add an explicit button. With optional prefix ARG non-nil, insert a named implicit button. See also documentation for hui:link-possible-types.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hui.el
(defun hui:gbut-link-directly (&optional arg)
"Prompt for a new global link button name and add it.
Open a blank line at the end of the global/personal button file
and insert a new global button. By default, add an explicit
button. With optional prefix ARG non-nil, insert a named
implicit button. See also documentation for
`hui:link-possible-types'."
(interactive "P")
(hattr:clear 'hbut:current)
(save-window-excursion
(when (or (= (count-windows) 1)
(= (hypb:count-visible-windows) 1))
(split-window-vertically))
(find-file (gbut:file))
(hui:buf-writable-err (current-buffer) "gbut-link-directly")
(cl-multiple-value-bind (link-but-window referent-window)
(hmouse-choose-link-and-referent-windows)
(goto-char (point-max))
(beginning-of-line)
(unless (looking-at-p "[ \t]*$")
(end-of-line)
(newline))
(let ((standard-output (current-buffer))
edit-flag)
(if arg
(progn (setq edit-flag (hui:ibut-link-directly link-but-window referent-window t))
(when (called-interactively-p 'interactive)
(hui:ibut-message edit-flag)))
(setq edit-flag (hui:ebut-link-directly link-but-window referent-window))
(gbut:save-buffer)
(when (called-interactively-p 'interactive)
(hui:ebut-message edit-flag)))))))