diff options
| -rw-r--r-- | lisp/info.el | 28 |
1 files changed, 12 insertions, 16 deletions
diff --git a/lisp/info.el b/lisp/info.el index 9025fd13363..e590a2b7e87 100644 --- a/lisp/info.el +++ b/lisp/info.el | |||
| @@ -1817,12 +1817,10 @@ escaped (\\\",\\\\)." | |||
| 1817 | (Info-hide-cookies-node) | 1817 | (Info-hide-cookies-node) |
| 1818 | (run-hooks 'Info-selection-hook))))) | 1818 | (run-hooks 'Info-selection-hook))))) |
| 1819 | 1819 | ||
| 1820 | (defvar Info-mode-line-node-keymap | 1820 | (defvar-keymap Info-mode-line-node-keymap |
| 1821 | (let ((map (make-sparse-keymap))) | 1821 | :doc "Keymap to put on the Info node name in the mode line." |
| 1822 | (define-key map [mode-line mouse-1] 'Info-mouse-scroll-up) | 1822 | "<mode-line> <mouse-1>" #'Info-mouse-scroll-up |
| 1823 | (define-key map [mode-line mouse-3] 'Info-mouse-scroll-down) | 1823 | "<mode-line> <mouse-3>" #'Info-mouse-scroll-down) |
| 1824 | map) | ||
| 1825 | "Keymap to put on the Info node name in the mode line.") | ||
| 1826 | 1824 | ||
| 1827 | (defun Info-set-mode-line () | 1825 | (defun Info-set-mode-line () |
| 1828 | (setq mode-line-buffer-identification | 1826 | (setq mode-line-buffer-identification |
| @@ -4833,17 +4831,15 @@ the variable `Info-file-list-for-emacs'." | |||
| 4833 | "\\`%s' invokes an anonymous command defined with `lambda'" | 4831 | "\\`%s' invokes an anonymous command defined with `lambda'" |
| 4834 | (key-description key)))))))) | 4832 | (key-description key)))))))) |
| 4835 | 4833 | ||
| 4836 | (defvar Info-link-keymap | 4834 | (defvar-keymap Info-link-keymap |
| 4837 | (let ((keymap (make-sparse-keymap))) | 4835 | :doc "Keymap to put on Info links. |
| 4838 | (define-key keymap [header-line down-mouse-1] 'mouse-drag-header-line) | ||
| 4839 | (define-key keymap [header-line mouse-1] 'Info-mouse-follow-link) | ||
| 4840 | (define-key keymap [header-line mouse-2] 'Info-mouse-follow-link) | ||
| 4841 | (define-key keymap [mouse-2] 'Info-mouse-follow-link) | ||
| 4842 | (define-key keymap [follow-link] 'mouse-face) | ||
| 4843 | keymap) | ||
| 4844 | "Keymap to put on Info links. | ||
| 4845 | This is used for the \"Next\", \"Prev\", and \"Up\" links in the | 4836 | This is used for the \"Next\", \"Prev\", and \"Up\" links in the |
| 4846 | first line or header line, and for breadcrumb links.") | 4837 | first line or header line, and for breadcrumb links." |
| 4838 | "<header-line> <down-mouse-1>" #'mouse-drag-header-line | ||
| 4839 | "<header-line> <mouse-1>" #'Info-mouse-follow-link | ||
| 4840 | "<header-line> <mouse-2>" #'Info-mouse-follow-link | ||
| 4841 | "<mouse-2>" #'Info-mouse-follow-link | ||
| 4842 | "<follow-link>" 'mouse-face) | ||
| 4847 | 4843 | ||
| 4848 | (defun Info-breadcrumbs () | 4844 | (defun Info-breadcrumbs () |
| 4849 | (let ((nodes (Info-toc-nodes Info-current-file)) | 4845 | (let ((nodes (Info-toc-nodes Info-current-file)) |