Function: tramp-widget-info-link-action

tramp-widget-info-link-action is a byte-compiled function defined in tramp-integration.el.gz.

Signature

(tramp-widget-info-link-action WIDGET &optional EVENT)

Documentation

Open the info node specified by WIDGET.

It's value must be a Tramp user option, indexed in the Tramp manual via
@vindex.

Source Code

;; Defined in /usr/src/emacs/lisp/net/tramp-integration.el.gz
(defun tramp-widget-info-link-action (widget &optional _event)
  "Open the info node specified by WIDGET.
It's value must be a Tramp user option, indexed in the Tramp manual via
`@vindex'."
  (let* ((topic (widget-value widget))
	 (pattern
	  (rx "\n*" (1+ " ") (0+ nonl)
	      (literal (if (stringp topic) topic (symbol-name topic)))
	      (0+ nonl) ":" (1+ (any "\t "))
	      (group (0+ nonl))
	      "." (0+ (any "\t\n ")) "(line" (1+ " ")
	      (group (1+ digit))
	      ")")))
    (info "(tramp) Variable Index")
    (goto-char (point-min))
    (when (re-search-forward pattern nil t)
      (let ((nodename (concat "(tramp) " (match-string-no-properties 1)))
	    (line (string-to-number (match-string 2))))
	(info nodename)
	(forward-line (- line 2))))))