+2006-11-06 OHASHI Akira <bg66@koka-in.org>
+
+ * mixi.el (mixi-expand-url): New macro.
+ (mixi-w3-retrieve): Use it.
+ (mixi-w3m-retrieve): Ditto.
+ (mixi-curl-retrieve): Ditto.
+
2006-11-01 OHASHI Akira <bg66@koka-in.org>
* mixi.el (mixi-diary-comment-list-regexp): Fix regexp.
(sit-for mixi-continuously-access-interval)
(funcall mixi-retrieve-function url post-data)))
+(defmacro mixi-expand-url (url)
+ `(concat mixi-url ,url))
+
(defun mixi-w3-retrieve (url &optional post-data)
"Retrieve the URL and return gotten strings."
(if post-data
(setq url-request-data post-data))
(setq url-request-method "GET")
(setq url-request-data nil))
- (let* ((url (url-expand-file-name url mixi-url))
+ (let* ((url (mixi-expand-url url))
(buffer (url-retrieve-synchronously url))
ret)
(unless (bufferp buffer)
(defun mixi-w3m-retrieve (url &optional post-data)
"Retrieve the URL and return gotten strings."
- (let ((url (w3m-expand-url url mixi-url)))
+ (let ((url (mixi-expand-url url)))
(with-temp-buffer
(if (not (string= (w3m-retrieve url nil nil post-data) "text/html"))
(error (mixi-message "Cannot retrieve"))
(list "-i" "-L" "-s"
"-b" mixi-curl-cookie-file
"-c" mixi-curl-cookie-file
- (concat mixi-url url)))))
+ (mixi-expand-url url)))))
(set-process-sentinel process #'ignore))
(set-default-file-modes orig-mode))
(when post-data