Function: actypes::link-to-Info-node

actypes::link-to-Info-node is an interactive and byte-compiled function defined in hactypes.el.

Signature

(actypes::link-to-Info-node STRING)

Documentation

Display an Info node given by STRING.

If not found, try to display it as an Info index item. STRING must be a string of the form "(filename)name" or
"filename.info#name". During button creation, completion for both
filename and node names is available. Filename may be given without the .info suffix in the format with parentheses.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hactypes.el
(defact link-to-Info-node (string)
  "Display an Info node given by STRING.
If not found, try to display it as an Info index item.
STRING must be a string of the form \"(filename)name\" or
\"filename.info#name\".  During button creation, completion for both
filename and node names is available.  Filename may be given without
the .info suffix in the format with parentheses."
  (interactive "+IInfo (file)nodename to link to: ")
  (require 'info)
  (if (and (stringp string)
	   ;; Remove any tabs or newlines that might be in string.
	   (setq string (replace-regexp-in-string "[ \t\n\r\f]+" " " string t t)
		 string (hpath:to-Info-ref string))
	   (string-match "\\`(\\([^\)]+\\))\\(.*\\)" string))
      (id-info string)
    (hypb:error "(link-to-Info-node): Invalid Info node: `%s'" string)))