;;; Dead summaries.
-(defvar gnus-dead-summary-mode-map
- (let ((map (make-keymap)))
- (suppress-keymap map)
- (substitute-key-definition 'undefined 'gnus-summary-wake-up-the-dead map)
- (dolist (key '("\C-d" "\r" "\177" [delete]))
- (define-key map key 'gnus-summary-wake-up-the-dead))
- (dolist (key '("q" "Q"))
- (define-key map key 'bury-buffer))
- map))
+(defvar-keymap gnus-dead-summary-mode-map
+ :full t :suppress t
+ "C-d" #'gnus-summary-wake-up-the-dead
+ "RET" #'gnus-summary-wake-up-the-dead
+ "DEL" #'gnus-summary-wake-up-the-dead
+ "<delete>" #'gnus-summary-wake-up-the-dead
+ "q" #'bury-buffer
+ "Q" #'bury-buffer)
+
+(keymap-substitute gnus-dead-summary-mode-map
+ 'undefined 'gnus-summary-wake-up-the-dead)
(define-minor-mode gnus-dead-summary-mode
"Minor mode for Gnus summary buffers."
;;;
(defun gnus-suppress-keymap (keymap)
+ (declare (obsolete nil "31.1"))
(suppress-keymap keymap)
(let ((keys '([delete] "\177" "\M-u"))) ;[mouse-2]
(while keys
(define-key keymap (pop keys) 'undefined))))
-(defvar gnus-article-mode-map
- (let ((keymap (make-sparse-keymap)))
- (gnus-suppress-keymap keymap)
- keymap))
-(defvar gnus-summary-mode-map
- (let ((keymap (make-keymap)))
- (gnus-suppress-keymap keymap)
- keymap))
-(defvar gnus-group-mode-map
- (let ((keymap (make-keymap)))
- (gnus-suppress-keymap keymap)
- keymap))
+(defvar-keymap gnus-article-mode-map
+ :suppress t
+ "<delete>" #'undefined
+ "DEL" #'undefined
+ "M-u" #'undefined)
+(defvar-keymap gnus-summary-mode-map
+ :full t :suppress t
+ "<delete>" #'undefined
+ "DEL" #'undefined
+ "M-u" #'undefined)
+(defvar-keymap gnus-group-mode-map
+ :full t :suppress t
+ "<delete>" #'undefined
+ "DEL" #'undefined
+ "M-u" #'undefined)
\f