Function: gnus-registry-load
gnus-registry-load is an interactive and byte-compiled function
defined in gnus-registry.el.gz.
Signature
(gnus-registry-load)
Documentation
Load the registry from the cache file.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/gnus/gnus-registry.el.gz
(defun gnus-registry-load ()
"Load the registry from the cache file."
(interactive)
(let ((file gnus-registry-cache-file))
(gnus-message 5 "Initializing the registry")
(condition-case nil
(progn
(gnus-registry-read file)
(gnus-registry-install-hooks)
(gnus-registry-install-shortcuts))
(file-error
;; Fix previous mis-naming of the registry file.
(let ((old-file-name
(concat (file-name-sans-extension
gnus-registry-cache-file)
".eioio")))
(if (and (file-exists-p old-file-name)
(yes-or-no-p
(format "Rename registry file from %s to %s? "
old-file-name file)))
(progn
(gnus-registry-read old-file-name)
(setf (oref gnus-registry-db file) file)
(gnus-message 1 "Registry filename changed to %s" file))
(gnus-registry-remake-db t))))
(error
(gnus-message
1
"The Gnus registry could not be loaded from %s, creating a new one"
file)
(gnus-registry-remake-db t)))))