* gnus-bbdb.el (toplevel): Define `bbdb-pop-up-elided-display' for avoiding
authoryamaoka <yamaoka>
Tue, 22 Dec 1998 07:55:25 +0000 (07:55 +0000)
committeryamaoka <yamaoka>
Tue, 22 Dec 1998 07:55:25 +0000 (07:55 +0000)
byte-compile warning.

* gnus-art.el (gnus-article-mode-map): Define almost undefined keys to
`gnus-article-read-summary-keys'.

lisp/gnus-art.el
lisp/gnus-bbdb.el

index 07442cf..703b17c 100644 (file)
@@ -2064,8 +2064,28 @@ If variable `gnus-use-long-file-name' is non-nil, it is
   "\M-^" gnus-article-read-summary-keys
   "\M-g" gnus-article-read-summary-keys)
 
-(substitute-key-definition
- 'undefined 'gnus-article-read-summary-keys gnus-article-mode-map)
+;; Define almost undefined keys to `gnus-article-read-summary-keys'.
+(mapcar
+ (lambda (key)
+   (unless (lookup-key gnus-article-mode-map key)
+     (define-key gnus-article-mode-map key
+       'gnus-article-read-summary-keys)))
+ (delq nil
+       (append
+       (mapcar
+        (lambda (elt)
+          (let ((key (car elt)))
+            (and (> (length key) 0)
+                 (not (eq 'menu-bar (aref key 0)))
+                 (symbolp (lookup-key gnus-summary-mode-map key))
+                 key)))
+        (accessible-keymaps gnus-summary-mode-map))
+       (let ((c 127)
+             keys)
+         (while (>= c 32)
+           (push (char-to-string c) keys)
+           (decf c))
+         keys))))
 
 (defun gnus-article-make-menu-bar ()
   (gnus-turn-off-edit-menu 'article)
index e095ae8..6caef29 100644 (file)
@@ -110,6 +110,8 @@ This buffer will be in bbdb-mode, with associated keybindings."
        (bbdb-display-records (list record))
        (error "unperson"))))
 
+;; Avoid byte-compile warning.
+(defvar bbdb-pop-up-elided-display)
 
 (defun gnus-bbdb/pop-up-bbdb-buffer (&optional offer-to-create)
   "Make the *BBDB* buffer be displayed along with the GNUS windows,