gnus-registry.el (gnus-registry-install-nnregistry): Rewrite so as not to use `delete...
authorKatsumi Yamaoka <yamaoka@jpl.org>
Tue, 5 Oct 2010 04:06:49 +0000 (04:06 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Tue, 5 Oct 2010 04:06:49 +0000 (04:06 +0000)
lisp/ChangeLog
lisp/gnus-registry.el

index 372fe9f..5fca37d 100644 (file)
@@ -1,5 +1,8 @@
 2010-10-05  Katsumi Yamaoka  <yamaoka@jpl.org>
 
 2010-10-05  Katsumi Yamaoka  <yamaoka@jpl.org>
 
+       * gnus-registry.el (gnus-registry-install-nnregistry): Rewrite so as
+       not to use `delete-dups' that is unavailable in XEmacs 21.4.
+
        * lpath.el: Fbind libxml-parse-html-region and shr-insert-document for
        Emacs 22 and XEmacs; fbind help-function-arglist for XEmacs 21.4 and
        SXEmacs.
        * lpath.el: Fbind libxml-parse-html-region and shr-insert-document for
        Emacs 22 and XEmacs; fbind help-function-arglist for XEmacs 21.4 and
        SXEmacs.
index cbea1e1..45fa956 100644 (file)
@@ -1153,13 +1153,16 @@ 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)
 (defun gnus-registry-install-nnregistry ()
   "Install the nnregistry refer method in `gnus-refer-article-method'."
   (interactive)
-  (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)))))
+  (cond ((eq 'nnregistry gnus-refer-article-method))
+       ((null gnus-refer-article-method)
+        (setq gnus-refer-article-method 'nnregistry))
+       ((consp gnus-refer-article-method)
+        (unless (memq 'nnregistry gnus-refer-article-method)
+          (setq gnus-refer-article-method
+                (append gnus-refer-article-method '(nnregistry)))))
+       (t
+        (setq gnus-refer-article-method
+              (list gnus-refer-article-method 'nnregistry)))))
 
 (defun gnus-registry-unload-hook ()
   "Uninstall the registry hooks."
 
 (defun gnus-registry-unload-hook ()
   "Uninstall the registry hooks."