X-Git-Url: http://cgit.sxemacs.org/?a=blobdiff_plain;f=lisp%2Fnnregistry.el;h=2a6e3f046c6f83be57441186b16a68dc782b3b6e;hb=6910044663bc77081e08faabd6385cd34a9c8f5d;hp=b2d80503479484f2d58455d95b2b62f88ffa8dca;hpb=852ee0e62e2434c4603e53a7b50d5547a5d5e062;p=gnus diff --git a/lisp/nnregistry.el b/lisp/nnregistry.el index b2d805034..2a6e3f046 100644 --- a/lisp/nnregistry.el +++ b/lisp/nnregistry.el @@ -1,7 +1,7 @@ ;;; nnregistry.el --- access to articles via Gnus' message-id registry ;;; -*- coding: utf-8 -*- -;; Copyright (C) 2010 Free Software Foundation, Inc. +;; Copyright (C) 2010-2012 Free Software Foundation, Inc. ;; Authors: Ludovic Courtès ;; Keywords: news, mail @@ -25,7 +25,8 @@ ;; This file provides the `nnregistry' Gnus back-end. It can be used ;; in `gnus-refer-article-method' to quickly search for a message by -;; id, regardless of the back-end that stores it. +;; id, regardless of the back-end that stores it. See the Gnus manual +;; for usage examples and more information. ;;; Code: @@ -36,7 +37,7 @@ (nnoo-declare nnregistry) (deffoo nnregistry-server-opened (server) - (eq gnus-registry-install t)) + gnus-registry-enabled) (deffoo nnregistry-close-server (server) t) @@ -45,14 +46,14 @@ nil) (deffoo nnregistry-open-server (server &optional defs) - (eq gnus-registry-install t)) + gnus-registry-enabled) (defvar nnregistry-within-nnregistry nil) (deffoo nnregistry-request-article (id &optional group server buffer) (and (not nnregistry-within-nnregistry) (let* ((nnregistry-within-nnregistry t) - (group (gnus-registry-fetch-group id)) + (group (nth 0 (gnus-registry-get-id-key id 'group))) (gnus-override-method nil)) (message "nnregistry: requesting article `%s' in group `%s'" id group)