Introduce gnus-registry-enabled and use it consistently.
authorTed Zlatanov <tzz@lifelogs.com>
Mon, 17 Oct 2011 17:24:16 +0000 (13:24 -0400)
committerTed Zlatanov <tzz@lifelogs.com>
Mon, 17 Oct 2011 17:24:16 +0000 (13:24 -0400)
commit2960194fb4cc6ad0af5b9a64c350110cd2509c54
tree30e39c01ebb89c8496ea26d1b9523217da092a23
parentad0f048aaf5f8cac4312c55117171719d511ca13
Introduce gnus-registry-enabled and use it consistently.

* gnus-registry.el (gnus-registry-enabled): Add new variable.
(gnus-registry-install-shortcuts): Set `gnus-registry-install' to 'ask
only while we need to find out if it should be t or nil.
(gnus-registry-initialize): Don't set `gnus-registry-install' to t.
(gnus-registry-install-hooks): Set `gnus-registry-enabled' to t when
the registry is installed.  Set it to nil when it's unloaded.
(gnus-registry-install-p): Provide user guidance for the initial value
of `gnus-registry-install' when it's 'ask, otherwise return its value.
* nnregistry.el (nnregistry-open-server, nnregistry-server-opened): Use
`gnus-registry-enabled' instead of `gnus-registry-install'.
* nnmairix.el (nnmairix-determine-original-group-from-registry): Use
`gnus-registry-enabled' instead of `gnus-registry-install'.
* nnir.el (nnir-mode): Use `gnus-registry-enabled' instead of
`gnus-registry-install'.
From Dave Abrahams <dave@boostpro.com>.
lisp/ChangeLog
lisp/gnus-registry.el
lisp/nnir.el
lisp/nnmairix.el
lisp/nnregistry.el