Function: Info-mouse-follow-link

Info-mouse-follow-link is an interactive and byte-compiled function defined in info.el.gz.

Signature

(Info-mouse-follow-link CLICK)

Documentation

Follow a link where you click.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/info.el.gz
(defun Info-mouse-follow-link (click)
  "Follow a link where you click."
  (interactive "@e" Info-mode)
  (let* ((position (event-start click))
	 (posn-string (and position (posn-string position)))
	 (link-args (if posn-string
			(get-text-property (cdr posn-string)
					   'link-args
					   (car posn-string))
		      (get-char-property (posn-point position)
					 'link-args))))
    (cond ((stringp link-args)
	   (Info-goto-node link-args))
	  ;; These special values of the `link-args' property are used
	  ;; for navigation; see `Info-fontify-node'.
	  ((eq link-args 'prev) (Info-prev))
	  ((eq link-args 'next) (Info-next))
	  ((eq link-args 'up)   (Info-up)))))