]> git.eshelyaron.com Git - emacs.git/commitdiff
gnus-registry.el (gnus-registry-save): Provide class name when calling `eieio-persist...
authorDavid Engster <deng@randomsample.de>
Fri, 22 Feb 2013 22:54:37 +0000 (22:54 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Fri, 22 Feb 2013 22:54:37 +0000 (22:54 +0000)
lisp/gnus/ChangeLog
lisp/gnus/gnus-registry.el

index 8de9e89a23dc572c23a04c7083e391f5282c97c1..6642a2082c7e46923fe5437cf5f0559b230a7bba 100644 (file)
@@ -1,3 +1,10 @@
+2013-02-22  David Engster  <deng@randomsample.de>
+
+       * gnus-registry.el (gnus-registry-save): Provide class name when
+       calling `eieio-persistent-read' to avoid "unsafe call" warning.  Use
+       `condition-case' to stay compatible with older EIEIO versions which
+       only accept one argument.
+
 2013-02-17  Daiki Ueno  <ueno@gnu.org>
 
        * mml2015.el (epg-key-user-id-list, epg-user-id-string)
index e808b1975b4087d82f0cbac437641f24b4c62408..d4764c08fde110e7cafe8f87d21c01884d22d385 100644 (file)
@@ -296,8 +296,14 @@ This is not required after changing `gnus-registry-cache-file'."
     (condition-case nil
         (progn
           (gnus-message 5 "Reading Gnus registry from %s..." file)
-          (setq gnus-registry-db (gnus-registry-fixup-registry
-                                  (eieio-persistent-read file)))
+          (setq gnus-registry-db
+               (gnus-registry-fixup-registry
+                (condition-case nil
+                    (with-no-warnings
+                      (eieio-persistent-read file 'registry-db))
+                  ;; Older EIEIO versions do not check the class name.
+                  ('wrong-number-of-arguments
+                   (eieio-persistent-read file)))))
           (gnus-message 5 "Reading Gnus registry from %s...done" file))
       (error
        (gnus-message