]> code.delx.au - gnu-emacs-elpa/commitdiff
Fix bug face for newly arrived bugs in debbugs-gnu.el
authorTino Calancha <tino.calancha@gmail.com>
Sat, 4 Jun 2016 08:09:52 +0000 (10:09 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Sat, 4 Jun 2016 08:09:52 +0000 (10:09 +0200)
* packages/debbugs/debbugs-gnu.el (debbugs-gnu-show-reports):
For some new bugs `date' and `log_modified' may differ in 1 second.

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)))