diff options
| author | David Engster | 2013-02-22 22:54:37 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2013-02-22 22:54:37 +0000 |
| commit | 800d26890ae8c76f031a80b8fbad383e1f4cf19a (patch) | |
| tree | 360acb2eaedbc9f86ce6bf6201318653d8ee3ab9 | |
| parent | fcee50281201215b76621d91885c26cd9936b3f3 (diff) | |
| download | emacs-800d26890ae8c76f031a80b8fbad383e1f4cf19a.tar.gz emacs-800d26890ae8c76f031a80b8fbad383e1f4cf19a.zip | |
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
| -rw-r--r-- | lisp/gnus/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/gnus/gnus-registry.el | 10 |
2 files changed, 15 insertions, 2 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 8de9e89a23d..6642a2082c7 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2013-02-22 David Engster <deng@randomsample.de> | ||
| 2 | |||
| 3 | * gnus-registry.el (gnus-registry-save): Provide class name when | ||
| 4 | calling `eieio-persistent-read' to avoid "unsafe call" warning. Use | ||
| 5 | `condition-case' to stay compatible with older EIEIO versions which | ||
| 6 | only accept one argument. | ||
| 7 | |||
| 1 | 2013-02-17 Daiki Ueno <ueno@gnu.org> | 8 | 2013-02-17 Daiki Ueno <ueno@gnu.org> |
| 2 | 9 | ||
| 3 | * mml2015.el (epg-key-user-id-list, epg-user-id-string) | 10 | * mml2015.el (epg-key-user-id-list, epg-user-id-string) |
diff --git a/lisp/gnus/gnus-registry.el b/lisp/gnus/gnus-registry.el index e808b1975b4..d4764c08fde 100644 --- a/lisp/gnus/gnus-registry.el +++ b/lisp/gnus/gnus-registry.el | |||
| @@ -296,8 +296,14 @@ This is not required after changing `gnus-registry-cache-file'." | |||
| 296 | (condition-case nil | 296 | (condition-case nil |
| 297 | (progn | 297 | (progn |
| 298 | (gnus-message 5 "Reading Gnus registry from %s..." file) | 298 | (gnus-message 5 "Reading Gnus registry from %s..." file) |
| 299 | (setq gnus-registry-db (gnus-registry-fixup-registry | 299 | (setq gnus-registry-db |
| 300 | (eieio-persistent-read file))) | 300 | (gnus-registry-fixup-registry |
| 301 | (condition-case nil | ||
| 302 | (with-no-warnings | ||
| 303 | (eieio-persistent-read file 'registry-db)) | ||
| 304 | ;; Older EIEIO versions do not check the class name. | ||
| 305 | ('wrong-number-of-arguments | ||
| 306 | (eieio-persistent-read file))))) | ||
| 301 | (gnus-message 5 "Reading Gnus registry from %s...done" file)) | 307 | (gnus-message 5 "Reading Gnus registry from %s...done" file)) |
| 302 | (error | 308 | (error |
| 303 | (gnus-message | 309 | (gnus-message |