おぉ、emacs-w3m から GMail が読めた。しかし、問題点が二つほど。
cookie の方はどうしてなのかわからん。w3m-compile-options から "cookie" を delete して、cookie の制御を w3m 側に渡すとなぜだか OK になる。
;; GMail で all-check してみる
(add-hook 'w3m-mode-hook
(lambda ()
(define-key w3m-mode-map "\M-o" 'w3m-gmail-allcheck-on)
(define-key w3m-mode-map "\M-O" 'w3m-gmail-allcheck-off)))
(defun w3m-gmail-allcheck-on ()
(interactive)
(if (and (eq major-mode 'w3m-mode)
w3m-current-url
(string-match "http://gmail\\.google\\.com/gmail/" w3m-current-url))
(save-excursion
(let (pos prop)
(goto-char (point-min))
(setq pos (point))
(while (setq pos
(next-single-property-change pos 'w3m-form-field-id))
(when pos
(setq prop (get-text-property pos 'w3m-form-field-id))
(when (and prop (stringp prop)
(string-match "^fid=1/type=checkbox/name=t/id=[0-9]+$" prop))
(goto-char pos)
(when (eq (char-after) ? )
(w3m-view-this-url)))))))
(message "No execute here")))
(defun w3m-gmail-allcheck-off ()
(interactive)
(if (and (eq major-mode 'w3m-mode)
w3m-current-url
(string-match "http://gmail\\.google\\.com/gmail/" w3m-current-url))
(save-excursion
(let (pos prop)
(goto-char (point-min))
(setq pos (point))
(while (setq pos
(next-single-property-change pos 'w3m-form-field-id))
(when pos
(setq prop (get-text-property pos 'w3m-form-field-id))
(when (and prop (stringp prop)
(string-match "^fid=1/type=checkbox/name=t/id=[0-9]+$" prop))
(goto-char pos)
(when (eq (char-after) ?*)
(w3m-view-this-url)))))))
(message "No execute here")))
はずかしいところが微妙に変わっています > 丸山さん
うちだと、素の w3m だと文字コードが変になるときがあります。うーむ。<br>全部の機能は使えないよ、ごめんねーとアナウンスされてました。(^^; < Select 関係