diff options
Diffstat (limited to 'lisp/man.el')
| -rw-r--r-- | lisp/man.el | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/lisp/man.el b/lisp/man.el index d7344ed2f7a..0037d132624 100644 --- a/lisp/man.el +++ b/lisp/man.el | |||
| @@ -391,10 +391,11 @@ Otherwise, the value is whatever the function | |||
| 391 | table) | 391 | table) |
| 392 | "Syntax table used in Man mode buffers.") | 392 | "Syntax table used in Man mode buffers.") |
| 393 | 393 | ||
| 394 | (if Man-mode-map | 394 | (unless Man-mode-map |
| 395 | nil | 395 | (setq Man-mode-map (make-sparse-keymap)) |
| 396 | (setq Man-mode-map (copy-keymap button-buffer-map)) | ||
| 397 | (suppress-keymap Man-mode-map) | 396 | (suppress-keymap Man-mode-map) |
| 397 | (set-keymap-parent Man-mode-map button-buffer-map) | ||
| 398 | |||
| 398 | (define-key Man-mode-map " " 'scroll-up) | 399 | (define-key Man-mode-map " " 'scroll-up) |
| 399 | (define-key Man-mode-map "\177" 'scroll-down) | 400 | (define-key Man-mode-map "\177" 'scroll-down) |
| 400 | (define-key Man-mode-map "n" 'Man-next-section) | 401 | (define-key Man-mode-map "n" 'Man-next-section) |
| @@ -410,8 +411,7 @@ Otherwise, the value is whatever the function | |||
| 410 | (define-key Man-mode-map "k" 'Man-kill) | 411 | (define-key Man-mode-map "k" 'Man-kill) |
| 411 | (define-key Man-mode-map "q" 'Man-quit) | 412 | (define-key Man-mode-map "q" 'Man-quit) |
| 412 | (define-key Man-mode-map "m" 'man) | 413 | (define-key Man-mode-map "m" 'man) |
| 413 | (define-key Man-mode-map "?" 'describe-mode) | 414 | (define-key Man-mode-map "?" 'describe-mode)) |
| 414 | ) | ||
| 415 | 415 | ||
| 416 | ;; buttons | 416 | ;; buttons |
| 417 | (define-button-type 'Man-xref-man-page | 417 | (define-button-type 'Man-xref-man-page |
| @@ -1023,6 +1023,8 @@ manpage command." | |||
| 1023 | ;; ====================================================================== | 1023 | ;; ====================================================================== |
| 1024 | ;; set up manual mode in buffer and build alists | 1024 | ;; set up manual mode in buffer and build alists |
| 1025 | 1025 | ||
| 1026 | (put 'Man-mode 'mode-class 'special) | ||
| 1027 | |||
| 1026 | (defun Man-mode () | 1028 | (defun Man-mode () |
| 1027 | "A mode for browsing Un*x manual pages. | 1029 | "A mode for browsing Un*x manual pages. |
| 1028 | 1030 | ||