]> code.delx.au - gnu-emacs-elpa/blobdiff - packages/debbugs/debbugs-gnu.el
Fix bug face for newly arrived bugs in debbugs-gnu.el
[gnu-emacs-elpa] / packages / debbugs / debbugs-gnu.el
index 4c108cc46a6ab35d465b1ab007c6043f14bea53c..dd1fe3346f28529534649ccb4abf68b5c868c6a2 100644 (file)
@@ -678,8 +678,11 @@ are taken from the cache instead."
                'debbugs-gnu-done)
               ((member "pending" (cdr (assq 'keywords status)))
                'debbugs-gnu-pending)
-              ((= (cdr (assq 'date status))
-                  (cdr (assq 'log_modified status)))
+              ;; For some new bugs `date' and `log_modified' may
+              ;; differ in 1 second.
+              ((< (abs (- (cdr (assq 'date status))
+                          (cdr (assq 'log_modified status))))
+                  3)
                'debbugs-gnu-new)
               ((< (- (float-time)
                      (cdr (assq 'log_modified status)))