X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=mixi-utils.el;h=d2646d06c47928b75f386ba0a564bcf2dd2a7b83;hb=05e05dfae73f5fdcfb1e6b198d1028176c1df3b3;hp=6c1b441a9635e9de43af39f6ce5b2123551b688e;hpb=b82a0bbe68fbeb583a8043d1f11130da2487e98e;p=elisp%2Fmixi.git diff --git a/mixi-utils.el b/mixi-utils.el index 6c1b441..d2646d0 100644 --- a/mixi-utils.el +++ b/mixi-utils.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: @@ -78,14 +78,20 @@ ")")))) (concat prefix subject suffix)))))) -(defun mixi-make-author (object) +(defun mixi-make-author (object &optional add-comment-count) (with-mixi-class object - (if (eq class 'mixi-news) - (mixi-news-media object) - (let ((owner (if (eq class 'mixi-log) - (mixi-log-friend object) - (mixi-object-owner object)))) - (mixi-friend-nick owner))))) + (cond ((eq class 'mixi-news) + (mixi-news-media object)) + ((and add-comment-count + (eq class 'mixi-comment) + (mixi-bbs-p (mixi-comment-parent object))) + (concat (mixi-comment-count object) " " + (mixi-friend-nick (mixi-comment-owner object)))) + (t + (let ((owner (if (eq class 'mixi-log) + (mixi-log-friend object) + (mixi-object-owner object)))) + (mixi-friend-nick owner)))))) (defun mixi-make-date (object) (let* ((time (mixi-object-time object)) @@ -149,22 +155,18 @@ (defun mixi-make-content (object) (with-mixi-class object (cond ((eq class 'mixi-event) - (let ((limit (mixi-event-limit object))) - (setq limit (if limit - (format-time-string "%Yǯ%m·î%dÆü" limit) - "»ØÄê¤Ê¤·")) - (concat "
" - "
³«ºÅÆü»þ¡§
" - "
" (mixi-event-date object) "
\n" - "
³«ºÅ¾ì½ê¡§
" - "
" (mixi-event-place object) "
\n" - "
¾ÜºÙ¡§
" - "
" (mixi-event-detail object) "
\n" - "
Ê罸´ü¸Â¡§
" - "
" limit "
\n" - "
»²²Ã¼Ô¡§
" - "
" (mixi-event-members object) "
\n" - "
"))) + (concat "
" + "
³«ºÅÆü»þ¡§
" + "
" (mixi-event-date object) "
\n" + "
³«ºÅ¾ì½ê¡§
" + "
" (mixi-event-place object) "
\n" + "
¾ÜºÙ¡§
" + "
" (mixi-event-detail object) "
\n" + "
Ê罸´ü¸Â¡§
" + "
" (mixi-event-limit object) "
\n" + "
»²²Ã¼Ô¡§
" + "
" (mixi-event-members object) "
\n" + "
")) ((eq class 'mixi-friend) (if (mixi-object-realized-p object) (let ((sex (if (eq (mixi-friend-sex object) 'male) "ÃË" "½÷"))