2002-02-01 Katsumi Yamaoka <yamaoka@jpl.org>
+ * mm-view.el (mm-w3m-mode-dont-bind-keys): New variable.
+ (mm-setup-w3m): Don't bind keys listed in the above.
+
+2002-02-01 Katsumi Yamaoka <yamaoka@jpl.org>
+
* mm-view.el (mm-inline-text-html-render-with-w3m): Bind
`w3m-safe-url-regexp' with nil if `mm-inline-text-html-with-images'
is non-nil; bind `w3m-force-redisplay' with nil.
(defvar mm-w3m-mode-map nil
"Local keymap for inlined text/html part rendered by emacs-w3m. It will
-be slightly different from `w3m-mode-map' to use in the article buffer.")
+be different from `w3m-mode-map' to use in the article buffer.")
(defvar mm-w3m-mode-command-alist
'((backward-char)
in `mm-w3m-mode-map'. If TO-COMMAND is nil, an article command key
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-setup nil
"Whether gnus-article-mode has been setup to use emacs-w3m.")
(dolist (def mm-w3m-mode-command-alist)
(condition-case nil
(substitute-key-definition (car def) (cdr def) mm-w3m-mode-map)
+ (error)))
+ (dolist (key mm-w3m-mode-dont-bind-keys)
+ (condition-case nil
+ (define-key mm-w3m-mode-map key nil)
(error))))
(unless (assq 'gnus-article-mode w3m-cid-retrieve-function-alist)
(push (cons 'gnus-article-mode 'mm-w3m-cid-retrieve)