[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: possible w3m-form bug
- From: Katsumi Yamaoka <yamaoka@xxxxxxx>
- Date: Wed, 24 Sep 2003 16:54:32 +0900
- X-ml-name: emacs-w3m
- X-mail-count: 05790
- References: <863cen0vz2.wl%yvonne@thewatch.net>
とりあえず日本語のみです。
>>>>> In [emacs-w3m : No.05787]
>>>>> Yvonne Thomson <yvonne@thewatch.net> wrote:
> I originally discovered the problem on the following site
> http://www.drupal.org
> If I try to view this site, I get the following error
> error in process sentinel: w3m-form-parse-and-fontify: Wrong type argument: listp, "0"
単なる対症療法なのですが、これはやはり違いますか? ^^;;
--- w3m-form.el~ 2003-09-21 21:50:59 +0000
+++ w3m-form.el 2003-09-24 07:54:05 +0000
@@ -245,6 +245,8 @@
((string= type "checkbox")
(let ((value (w3m-form-get form name)))
(when value
+ (unless (listp value)
+ (setq value (list value)))
(w3m-form-replace
(if (member (nth 3 (w3m-action (point))) value)
"*" " ")))
@@ -779,6 +781,8 @@
(defun w3m-form-input-checkbox (form name value)
(let ((fvalue (w3m-form-get form name)))
+ (unless (listp fvalue)
+ (setq fvalue (list fvalue)))
(if (member value fvalue) ; already checked
(progn
(w3m-form-put form name (delete value fvalue))