2012-06-23 Chong Yidong <cyd@gnu.org>
- * info.el (Info-mouse-follow-link): Accept symbol values of the
- link-args property. Select the window (Bug#11672).
+ * info.el (Info-mouse-follow-link): Accept symbol values of
+ link-args. Select window; suggested by Gerhard Kahl (Bug#11672).
(Info-fontify-node): Use Info-link-keymap for all navigation
buttons, with link-args property to perform the desired action.
(Info-link-keymap): Doc fix.
(defun Info-mouse-follow-link (click)
"Follow a link where you click."
- (interactive "e")
+ (interactive "@e")
(let* ((position (event-start click))
(posn-string (and position (posn-string position)))
(link-args (if posn-string
(car posn-string))
(get-char-property (posn-point position)
'link-args))))
- (select-window (posn-window position))
(cond ((stringp link-args)
(Info-goto-node link-args))
;; These special values of the `link-args' property are used