emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/debbugs 804fa90 189/311: Fix bug face for newly arrived


From: Stefan Monnier
Subject: [elpa] externals/debbugs 804fa90 189/311: Fix bug face for newly arrived bugs in debbugs-gnu.el
Date: Sun, 29 Nov 2020 18:42:09 -0500 (EST)

branch: externals/debbugs
commit 804fa90d27a269993cf6f581afbaa24c0976490d
Author: Tino Calancha <tino.calancha@gmail.com>
Commit: Michael Albinus <michael.albinus@gmx.de>

    Fix bug face for newly arrived bugs in debbugs-gnu.el
    
    * packages/debbugs/debbugs-gnu.el (debbugs-gnu-show-reports):
    For some new bugs `date' and `log_modified' may differ in 1 second.
---
 debbugs-gnu.el | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/debbugs-gnu.el b/debbugs-gnu.el
index 4c108cc..dd1fe33 100644
--- a/debbugs-gnu.el
+++ b/debbugs-gnu.el
@@ -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)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]