Function: Info-goto-node-web
Info-goto-node-web is an interactive and byte-compiled function
defined in info.el.gz.
Signature
(Info-goto-node-web NODE)
Documentation
Use browse-url to go to the gnu.org web server's version of NODE.
By default, go to the current Info node.
Probably introduced at or before Emacs version 29.1.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/info.el.gz
(defun Info-goto-node-web (node)
"Use `browse-url' to go to the gnu.org web server's version of NODE.
By default, go to the current Info node."
(interactive (list (Info-read-node-name
"Go to node (default current page): " Info-current-node))
Info-mode)
(let (filename)
(string-match "\\s *\\((\\s *\\([^\t)]*\\)\\s *)\\s *\\|\\)\\(.*\\)"
node)
(setq filename (if (= (match-beginning 1) (match-end 1))
""
(match-string 2 node))
node (match-string 3 node))
(let ((trim (string-match "\\s +\\'" filename)))
(if trim (setq filename (substring filename 0 trim))))
(let ((trim (string-match "\\s +\\'" node)))
(if trim (setq node (substring node 0 trim))))
(if (equal filename "")
(setq filename (file-name-sans-extension (file-name-nondirectory
Info-current-file))))
(if (equal node "")
(setq node "Top"))
(browse-url-button-open-url
(Info-url-for-node (format "(%s)%s" filename node)))))