diff options
| -rw-r--r-- | lisp/info.el | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/lisp/info.el b/lisp/info.el index 6f9b1863ee4..4bf83c265b0 100644 --- a/lisp/info.el +++ b/lisp/info.el | |||
| @@ -1400,8 +1400,8 @@ any double quotes or backslashes must be escaped (\\\",\\\\)." | |||
| 1400 | 1400 | ||
| 1401 | (defvar Info-mode-line-node-keymap | 1401 | (defvar Info-mode-line-node-keymap |
| 1402 | (let ((map (make-sparse-keymap))) | 1402 | (let ((map (make-sparse-keymap))) |
| 1403 | (define-key map [mode-line mouse-1] 'Info-scroll-up) | 1403 | (define-key map [mode-line mouse-1] 'Info-mouse-scroll-up) |
| 1404 | (define-key map [mode-line mouse-3] 'Info-scroll-down) | 1404 | (define-key map [mode-line mouse-3] 'Info-mouse-scroll-down) |
| 1405 | map) | 1405 | map) |
| 1406 | "Keymap to put on the Info node name in the mode line.") | 1406 | "Keymap to put on the Info node name in the mode line.") |
| 1407 | 1407 | ||
| @@ -2620,6 +2620,15 @@ in other ways.)" | |||
| 2620 | (t (Info-next-preorder))) | 2620 | (t (Info-next-preorder))) |
| 2621 | (scroll-up)))) | 2621 | (scroll-up)))) |
| 2622 | 2622 | ||
| 2623 | (defun Info-mouse-scroll-up (e) | ||
| 2624 | "Scroll one screenful forward in Info, using the mouse. | ||
| 2625 | See `Info-scroll-up'." | ||
| 2626 | (interactive "e") | ||
| 2627 | (save-selected-window | ||
| 2628 | (if (eventp e) | ||
| 2629 | (select-window (posn-window (event-start e)))) | ||
| 2630 | (Info-scroll-up))) | ||
| 2631 | |||
| 2623 | (defun Info-scroll-down () | 2632 | (defun Info-scroll-down () |
| 2624 | "Scroll one screenful back in Info, considering all nodes as one sequence. | 2633 | "Scroll one screenful back in Info, considering all nodes as one sequence. |
| 2625 | If point is within the menu of a node, and `Info-scroll-prefer-subnodes' | 2634 | If point is within the menu of a node, and `Info-scroll-prefer-subnodes' |
| @@ -2646,6 +2655,15 @@ parent node." | |||
| 2646 | (Info-last-preorder) | 2655 | (Info-last-preorder) |
| 2647 | (scroll-down)))) | 2656 | (scroll-down)))) |
| 2648 | 2657 | ||
| 2658 | (defun Info-mouse-scroll-down (e) | ||
| 2659 | "Scroll one screenful backward in Info, using the mouse. | ||
| 2660 | See `Info-scroll-down'." | ||
| 2661 | (interactive "e") | ||
| 2662 | (save-selected-window | ||
| 2663 | (if (eventp e) | ||
| 2664 | (select-window (posn-window (event-start e)))) | ||
| 2665 | (Info-scroll-down))) | ||
| 2666 | |||
| 2649 | (defun Info-next-reference (&optional recur) | 2667 | (defun Info-next-reference (&optional recur) |
| 2650 | "Move cursor to the next cross-reference or menu item in the node." | 2668 | "Move cursor to the next cross-reference or menu item in the node." |
| 2651 | (interactive) | 2669 | (interactive) |