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

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

[elpa] externals/gnorb b632038 332/449: gnorb-registry.el: Check for old


From: Stefan Monnier
Subject: [elpa] externals/gnorb b632038 332/449: gnorb-registry.el: Check for old version of registry
Date: Fri, 27 Nov 2020 23:16:06 -0500 (EST)

branch: externals/gnorb
commit b632038f983e69bec8b44c90c7b05a8d4828b8b7
Author: Eric Abrahamsen <eric@ericabrahamsen.net>
Commit: Eric Abrahamsen <eric@ericabrahamsen.net>

    gnorb-registry.el: Check for old version of registry
    
    * gnorb-registry.el (gnorb-refresh-usage-status): Make sure this works
      for older versions of the registry, where the max-hard slot hasn't
      been replaced by max-size.
---
 gnorb-registry.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/gnorb-registry.el b/gnorb-registry.el
index bcd5adc..9220565 100644
--- a/gnorb-registry.el
+++ b/gnorb-registry.el
@@ -235,7 +235,9 @@ number of tracked messages, the number of tracked headings, 
and how much of the
   (let ((messages (length (gnorb-registry-tracked-messages)))
        (headings (length (gnorb-registry-tracked-headings)))
        (reg-size (registry-size gnus-registry-db))
-       (reg-max-size (oref gnus-registry-db max-size)))
+       (reg-max-size (if (slot-exists-p gnus-registry-db 'max-size)
+                         (oref gnus-registry-db max-size)
+                       (oref gnus-registry-db max-hard))))
     (with-current-buffer "*Gnorb Usage*"
       (let ((inhibit-read-only t))
        (erase-buffer)



reply via email to

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