Function: ibtypes::hyp-source

ibtypes::hyp-source is a byte-compiled function defined in hibtypes.el.

Signature

(ibtypes::hyp-source)

Documentation

Turn source location entries in Hyperbole reports into buttons.

The buttons jump to the associated location.

For example, {C-h h d d C-h h e h o} summarizes the properties of the explicit buttons in the DEMO file and each button in that report buffer behaves the same as the corresponding button in the original DEMO file.

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hibtypes.el
;;; ========================================================================
;;; Makes source entries in Hyperbole reports selectable.
;;; ========================================================================

(defib hyp-source ()
  "Turn source location entries in Hyperbole reports into buttons.
The buttons jump to the associated location.

For example, {C-h h d d C-h h e h o} summarizes the properties of
the explicit buttons in the DEMO file and each button in that
report buffer behaves the same as the corresponding button in the
original DEMO file."
  (save-excursion
    (beginning-of-line)
    (when (looking-at hbut:source-prefix)
      (let ((src (hbut:source)))
        (when src
          (unless (stringp src)
            (setq src (prin1-to-string src)))
          (ibut:label-set src (point) (line-end-position))
          (hact 'hyp-source src))))))