Fix and extend header docs. Move the nnregistry feature check.
authorTed Zlatanov <tzz@lifelogs.com>
Fri, 1 Oct 2010 16:34:46 +0000 (11:34 -0500)
committerTed Zlatanov <tzz@lifelogs.com>
Fri, 1 Oct 2010 16:34:46 +0000 (11:34 -0500)
* gnus-registry.el (gnus-registry-install-nnregistry): Move the feature
check into `gnus-registry-initialize'.
(gnus-registry-initialize): Ditto.
Fix and extend header docs.

lisp/ChangeLog
lisp/gnus-registry.el

index a0e7d49..622cdf4 100644 (file)
@@ -1,3 +1,10 @@
+2010-10-01  Teodor Zlatanov  <tzz@lifelogs.com>
+
+       * gnus-registry.el (gnus-registry-install-nnregistry): Move the feature
+       check into `gnus-registry-initialize'.
+       (gnus-registry-initialize): Ditto.
+       Fix and extend header docs.
+
 2010-10-01  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
        * gnus-html.el (gnus-html-prefetch-images): Adjust regexp to avoid
index 4e6dca5..cbea1e1 100644 (file)
 
 ;; Put this in your startup file (~/.gnus.el for instance)
 
+;; (require 'nnregistry) ;; optional, or see below (automatically calls `gnus-registry-install-nnregistry' when `gnus-registry-initialize' is called)
 ;; (setq gnus-registry-max-entries 2500
 ;;       gnus-registry-use-long-group-names t)
 
 ;; (gnus-registry-initialize)
+;; (gnus-registry-install-nnregistry) ;; optional, or see above (loading nnregistry makes it unnecessary)
 
 ;; Then use this in your fancy-split:
 
@@ -1129,7 +1131,8 @@ Returns the first place where the trail finds a group name."
   (setq gnus-registry-install t)       ; in case it was 'ask or nil
   (gnus-registry-install-hooks)
   (gnus-registry-install-shortcuts)
-  (gnus-registry-install-nnregistry)
+  (when (featurep 'nnregistry)
+    (gnus-registry-install-nnregistry))
   (gnus-registry-read))
 
 ;;;###autoload
@@ -1150,14 +1153,13 @@ Returns the first place where the trail finds a group name."
 (defun gnus-registry-install-nnregistry ()
   "Install the nnregistry refer method in `gnus-refer-article-method'."
   (interactive)
-  (when (featurep 'nnregistry)
-    (setq gnus-refer-article-method
-          (delete-dups
-           (append
-            (if (listp gnus-refer-article-method)
-                gnus-refer-article-method
-              (list gnus-refer-article-method))
-            (list 'nnregistry))))))
+  (setq gnus-refer-article-method
+        (delete-dups
+         (append
+          (if (listp gnus-refer-article-method)
+              gnus-refer-article-method
+            (list gnus-refer-article-method))
+          (list 'nnregistry)))))
 
 (defun gnus-registry-unload-hook ()
   "Uninstall the registry hooks."