X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=sb-mixi.el;h=56375edafc078516aae2368c60c05f3460e31f49;hb=29738be226ea8350c050b5d21cf52e68a47b5968;hp=1c2873b9acf62616f27cbc3c7b8885e490aef783;hpb=0ea61acdff37c78fe684d17d9ac517b055ed535e;p=elisp%2Fmixi.git diff --git a/sb-mixi.el b/sb-mixi.el index 1c2873b..56375ed 100644 --- a/sb-mixi.el +++ b/sb-mixi.el @@ -18,9 +18,9 @@ ;; GNU General Public License for more details. ;; You should have received a copy of the GNU General Public License -;; along with this program; if not, you can either send email to this -;; program's maintainer or write to: The Free Software Foundation, -;; Inc.; 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +;; along with GNU Emacs; see the file COPYING. If not, write to the +;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, +;; Boston, MA 02110-1301, USA. ;;; Commentary: @@ -33,6 +33,8 @@ (require 'mixi-utils) (require 'shimbun) +(defconst shimbun-mixi-revision "$Revision: 1.59 $") + (eval-and-compile (luna-define-class shimbun-mixi (shimbun) (comment-cache)) (luna-define-internal-accessors 'shimbun-mixi)) @@ -41,6 +43,7 @@ '(("new-diaries" . mixi-get-new-diaries) ("new-comments" . mixi-get-new-comments) ("new-bbses" . mixi-get-new-bbses) + ("new-bbs-comments" . mixi-get-new-bbs-comments) ("messages" . mixi-get-messages) ("messages.sent" . (lambda (range) @@ -111,12 +114,12 @@ of mixi object." :type '(repeat (cons :fromat "%v" (string :tag "Group name") (radio (string :tag "URL") - (const :tag "New diaries" mixi-get-new-diaries) - (const :tag "New comments" mixi-get-new-comments) - (const :tag "New BBSes" mixi-get-new-bbses) - (const :tag "Messages" mixi-get-messages) - (const :tag "Logs" mixi-get-logs) - (function :tag "Other function"))))) + (function :tag "Function"))))) + +(defcustom shimbun-mixi-get-profile-with-diary t + "*If non-nil, get his/her profile together with diaries." + :group 'shimbun + :type 'boolean) ;; FIXME: Don't use this user option. (defcustom shimbun-mixi-page-articles 10 @@ -154,6 +157,11 @@ of mixi object." (catch 'stop (while objects (let ((object (car objects))) + (when (and shimbun-mixi-get-profile-with-diary + (mixi-diary-p object)) + (let ((owner (mixi-diary-owner object))) + (unless (mixi-object-realized-p owner) + (mixi-realize-friend owner)))) (when (mixi-parent-p object) (let* ((comments (mixi-get-comments object range)) (comment-headers (shimbun-mixi-get-headers shimbun