* elmo.el (elmo-diff-new): Fixed (Adapted to doc-string of
authorhmurata <hmurata>
Sat, 19 Jan 2002 09:59:12 +0000 (09:59 +0000)
committerhmurata <hmurata>
Sat, 19 Jan 2002 09:59:12 +0000 (09:59 +0000)
`elmo-folder-diff').
(elmo-diff-unread): Likewise.

elmo/ChangeLog
elmo/elmo.el

index 2322e4b..9407d06 100644 (file)
@@ -1,3 +1,9 @@
+2002-01-19  Hiroya Murata  <lapis-lazuli@pop06.odn.ne.jp>
+
+       * elmo.el (elmo-diff-new): Fixed (Adapted to doc-string of
+       `elmo-folder-diff').
+       (elmo-diff-unread): Likewise.
+
 2002-01-19  Kenichi OKADA  <okada@opaopa.org>
 
        * elmo-utils.el (elmo-read-search-condition-internal): REQUIRE-MATCH
index 932c207..080a74e 100644 (file)
@@ -863,13 +863,11 @@ Return a cons cell of (NUMBER-CROSSPOSTS . NEW-MARK-ALIST).")
     (setq elmo-folder-info-hashtb hashtb)))
 
 (defsubst elmo-diff-new (diff)
-  (when (consp (cdr diff))
-    (car diff)))
+  (car diff))
 
 (defsubst elmo-diff-unread (diff)
-  (if (consp (cdr diff))
-      (nth 1 diff)
-    (car diff)))
+  (when (consp (cdr diff))
+    (nth 1 diff)))
 
 (defsubst elmo-diff-all (diff)
   (if (consp (cdr diff))