* mm-view.el (mm-w3m-mode-ignored-keys): New variable.
authorShengHuo ZHU <zsh@cs.rochester.edu>
Fri, 27 Sep 2002 02:36:55 +0000 (02:36 +0000)
committerShengHuo ZHU <zsh@cs.rochester.edu>
Fri, 27 Sep 2002 02:36:55 +0000 (02:36 +0000)
(mm-setup-w3m): Use it.

lisp/ChangeLog
lisp/mm-view.el

index c798492..4e53b76 100644 (file)
@@ -1,3 +1,8 @@
+2002-09-26  ShengHuo ZHU  <zsh@cs.rochester.edu>
+
+       * mm-view.el (mm-w3m-mode-ignored-keys): New variable.
+       (mm-setup-w3m): Use it.
+
 2002-09-27  Simon Josefsson  <jas@extundo.com>
 
        * gnus-art.el (gnus-article-mode-syntax-table): Make M-. work in
index 6a04a8f..659b30d 100644 (file)
@@ -230,6 +230,9 @@ will not be substituted.")
 (defvar mm-w3m-mode-dont-bind-keys (list [up] [right] [left] [down])
   "List of keys which should not be bound for the emacs-w3m commands.")
 
+(defvar mm-w3m-mode-ignored-keys (list [down-mouse-2])
+  "List of keys which should ignore.")
+
 (defvar mm-w3m-setup nil
   "Whether gnus-article-mode has been setup to use emacs-w3m.")
 
@@ -246,6 +249,10 @@ will not be substituted.")
       (dolist (key mm-w3m-mode-dont-bind-keys)
        (condition-case nil
            (define-key mm-w3m-mode-map key nil)
+         (error)))
+      (dolist (key mm-w3m-mode-ignored-keys)
+       (condition-case nil
+           (define-key mm-w3m-mode-map key 'ignore)
          (error))))
     (unless (assq 'gnus-article-mode w3m-cid-retrieve-function-alist)
       (push (cons 'gnus-article-mode 'mm-w3m-cid-retrieve)