branch: externals/debbugs
commit 804fa90d27a269993cf6f581afbaa24c0976490d
Author: Tino Calancha <[email protected]>
Commit: Michael Albinus <[email protected]>
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)))