+2006-10-24 OHASHI Akira <bg66@koka-in.org>
+
+ * mixi.el (mixi-diary-comment-list-page): Use `%d' instead of `all'
+ for page parameter.
+ (mixi-topic-comment-list-page): Ditto.
+ (mixi-get-comments): Use `max-numbers' instead of 1.
+ (mixi-get-matched-items): Exit when the same items got already.
+
2006-10-23 OHASHI Akira <bg66@koka-in.org>
* mixi.el (toplevel): Don't use the FILENAME argument of `require'.
;; (setq buffer-read-only t)
;; (goto-char (point-min)))
;;
-;; Display newest 3 diaries including one comment like a mail format.
+;; Display newest 3 diaries including newest 3 comments like a mail format.
;; Comments are displayed like a reply mail.
;;
;; (let ((max-numbers 3)
;; "Subject: " subject "\n"
;; "Date: " date "\n\n"
;; body "\n\n")))
-;; (mixi-get-comments diary))))
+;; (mixi-get-comments diary max-numbers))))
;; (mixi-get-new-diaries max-numbers))
;; (set-buffer-modified-p nil)
;; (setq buffer-read-only t)
(while (match-string num buffer)
(setq list (cons (match-string num buffer) list))
(incf num))
+ (when (member (reverse list) ids)
+ (throw 'end ids))
(setq ids (cons (reverse list) ids))
(setq pos (match-end (1- num)))))
(when (eq pos 0)
(aref (cdr comment) 3))
(defun mixi-diary-comment-list-page (diary)
- (concat "/view_diary.pl?page=all"
+ (concat "/view_diary.pl?page=%d"
"&id=" (mixi-diary-id diary)
"&owner_id=" (mixi-friend-id (mixi-diary-owner diary))))
</td></tr></table>")
(defun mixi-topic-comment-list-page (topic)
- (concat "/view_bbs.pl?page=all"
+ (concat "/view_bbs.pl?page=%d"
"&id=" (mixi-topic-id topic)
"&comm_id=" (mixi-community-id (mixi-topic-community topic))))
(regexp (eval (intern (concat mixi-object-prefix name
"-comment-list-regexp")))))
(let ((items (mixi-get-matched-items
- (funcall list-page parent)
- ;; FIXME: Use `max-numbers' instead of 1.
- 1
- regexp)))
+ (funcall list-page parent) max-numbers regexp)))
(mapcar (lambda (item)
(mixi-make-comment parent (mixi-make-friend
(nth 6 item) (nth 7 item))