]> git.eshelyaron.com Git - emacs.git/commitdiff
(Man-mode-map): Initialize it properly.
authorLute Kamstra <lute@gnu.org>
Sun, 12 Jun 2005 10:11:00 +0000 (10:11 +0000)
committerLute Kamstra <lute@gnu.org>
Sun, 12 Jun 2005 10:11:00 +0000 (10:11 +0000)
(Man-mode): Set mode-class property to special.

lisp/ChangeLog
lisp/man.el

index 10d61e8b747ba594081933bb237b58e79d85889a..f56a50c5441aa4f7ca94ea6464e944d2c1f58f90 100644 (file)
@@ -1,5 +1,8 @@
 2005-06-12  Lute Kamstra  <lute@gnu.org>
 
+       * man.el (Man-mode-map): Initialize it properly.
+       (Man-mode): Set mode-class property to special.
+
        * calendar/calendar.el (calendar-mode): Use run-mode-hooks.
 
 2005-06-11  Luc Teirlinck  <teirllm@auburn.edu>
index d7344ed2f7a43fd3dbfaf37809d7994af8f132f8..0037d132624fb0062326f90b5b67269fa4d4ce4d 100644 (file)
@@ -391,10 +391,11 @@ Otherwise, the value is whatever the function
     table)
   "Syntax table used in Man mode buffers.")
 
-(if Man-mode-map
-    nil
-  (setq Man-mode-map (copy-keymap button-buffer-map))
+(unless Man-mode-map
+  (setq Man-mode-map (make-sparse-keymap))
   (suppress-keymap Man-mode-map)
+  (set-keymap-parent Man-mode-map button-buffer-map)
+
   (define-key Man-mode-map " "    'scroll-up)
   (define-key Man-mode-map "\177" 'scroll-down)
   (define-key Man-mode-map "n"    'Man-next-section)
@@ -410,8 +411,7 @@ Otherwise, the value is whatever the function
   (define-key Man-mode-map "k"    'Man-kill)
   (define-key Man-mode-map "q"    'Man-quit)
   (define-key Man-mode-map "m"    'man)
-  (define-key Man-mode-map "?"    'describe-mode)
-  )
+  (define-key Man-mode-map "?"    'describe-mode))
 
 ;; buttons
 (define-button-type 'Man-xref-man-page
@@ -1023,6 +1023,8 @@ manpage command."
 ;; ======================================================================
 ;; set up manual mode in buffer and build alists
 
+(put 'Man-mode 'mode-class 'special)
+
 (defun Man-mode ()
   "A mode for browsing Un*x manual pages.