* mixi.el (mixi-login): Return a error when `w3m-use-cookies' is nil.
authorbg66 <bg66>
Fri, 20 Oct 2006 06:15:37 +0000 (06:15 +0000)
committerbg66 <bg66>
Fri, 20 Oct 2006 06:15:37 +0000 (06:15 +0000)
ChangeLog [new file with mode: 0644]
mixi.el

diff --git a/ChangeLog b/ChangeLog
new file mode 100644 (file)
index 0000000..6b7dbe1
--- /dev/null
+++ b/ChangeLog
@@ -0,0 +1,7 @@
+2006-10-20  OHASHI Akira  <bg66@koka-in.org>
+
+       * mixi.el (mixi-login): Return a error when `w3m-use-cookies' is nil.
+
+2006-10-20  OHASHI Akira  <bg66@koka-in.org>
+
+       * mixi.el: Importing mixi.el.
diff --git a/mixi.el b/mixi.el
index 14d3650..6a60607 100644 (file)
--- a/mixi.el
+++ b/mixi.el
@@ -262,6 +262,10 @@ while `mixi' is waiting for a server's response."
 
 (defun mixi-login (&optional email password)
   "Login to Mixi."
+  (unless w3m-use-cookies
+    (error
+     (mixi-message
+      "Require to accept cookies.  Please set `w3m-use-cookies' to t.")))
   (let ((email (or email mixi-default-email
                   (read-from-minibuffer (mixi-message "Login Email: "))))
        (password (or password mixi-default-password