From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/72068 Path: news.gmane.org!not-for-mail From: ludo@gnu.org (Ludovic =?iso-8859-1?Q?Court=E8s?=) Newsgroups: gmane.emacs.gnus.general Subject: Re: [PATCH] Add `nnregistry', for use in `gnus-refer-article-method' Date: Mon, 27 Sep 2010 23:01:15 +0200 Message-ID: <877hi6lx44.fsf@gnu.org> References: <8763d8opn4.fsf@gnu.org> <87iqgmqxmg.fsf@gnu.org> <874odb893n.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: dough.gmane.org 1285621514 2948 80.91.229.12 (27 Sep 2010 21:05:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 27 Sep 2010 21:05:14 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M20441@lists.math.uh.edu Mon Sep 27 23:05:13 2010 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1P0Ksq-0006wO-Qk for ding-account@gmane.org; Mon, 27 Sep 2010 23:05:13 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1P0Kso-0005WY-Vo; Mon, 27 Sep 2010 16:05:11 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1P0Ksm-0005W5-GS for ding@lists.math.uh.edu; Mon, 27 Sep 2010 16:05:08 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1P0Ksi-0004e3-AM for ding@lists.math.uh.edu; Mon, 27 Sep 2010 16:05:08 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1P0Ksh-0001ba-00 for ; Mon, 27 Sep 2010 23:05:03 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1P0Ksh-0006uL-Cx for ding@gnus.org; Mon, 27 Sep 2010 23:05:03 +0200 Original-Received: from yoda.fdn.fr ([80.67.169.18]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 27 Sep 2010 23:05:03 +0200 Original-Received: from ludo by yoda.fdn.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 27 Sep 2010 23:05:03 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 116 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: yoda.fdn.fr X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 6 =?iso-8859-1?Q?Vend=E9miaire?= an 219 de la =?iso-8859-1?Q?R=E9volution?= X-PGP-Key-ID: 0xEA52ECF4 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA D15D 77DD 95E2 EA52 ECF4 X-OS: x86_64-unknown-linux-gnu User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) Cancel-Lock: sha1:EQTjBNYuohj4Qeu/yx0PnrzPqV8= X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:72068 Archived-At: --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Lars, Lars Magne Ingebrigtsen writes: > ludo@gnu.org (Ludovic Court=C3=A8s) writes: > >> My copyright assignment is now on file (at last), and I=E2=80=99d like >> =E2=80=98nnregistry=E2=80=99 to =E2=80=9Cget in=E2=80=9D (see the referr= ed message). Can somebody look >> into it? I still have to update the manual. > > Was this really sent in July? It popped up on Gmane today... Yes, I resent it today (it had been swallowed by Gmane or something last time.) > Could you post the patch here? Find =E2=80=98nnregistry.el=E2=80=99 attached. Thanks, Ludo=E2=80=99. --=-=-= Content-Type: application/emacs-lisp Content-Disposition: inline; filename=nnregistry.el Content-Transfer-Encoding: quoted-printable Content-Description: the new file ;;; nnregistry.el --- access to articles via Gnus' message-id registry ;;; -*- coding: utf-8 -*- ;; Copyright (C) 2010 Free Software Foundation, Inc. ;; Authors: Ludovic Court=C3=A8s ;; Keywords: news, mail ;; This file is part of GNU Emacs. ;; GNU Emacs is free software: you can redistribute it and/or modify ;; it under the terms of the GNU General Public License as published by ;; the Free Software Foundation, either version 3 of the License, or ;; (at your option) any later version. ;; GNU Emacs is distributed in the hope that it will be useful, ;; but WITHOUT ANY WARRANTY; without even the implied warranty of ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;; GNU General Public License for more details. ;; You should have received a copy of the GNU General Public License ;; along with GNU Emacs. If not, see . ;;; Commentary: ;; 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. ;;; Code: (require 'nnoo) (require 'gnus-registry) (require 'gnus-int) (nnoo-declare nnregistry) (deffoo nnregistry-server-opened (server) (eq gnus-registry-install t)) (deffoo nnregistry-close-server (server) t) (deffoo nnregistry-status-message (server) nil) (deffoo nnregistry-open-server (server &optional defs) (eq gnus-registry-install t)) (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)) (gnus-override-method nil)) (message "nnregistry: requesting article `%s' in group `%s'" id group) (and group (gnus-check-group group) (gnus-request-article id group buffer))))) (provide 'nnregistry) ;;; nnregistry.el ends here --=-=-=-- --==-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (GNU/Linux) iEYEARECAAYFAkyhBiAACgkQd92V4upS7PQiLwCcDFR0ooBdxm+Bam7jjqkpgwAF ilEAniLJ1Rt0h+G8SDSRVHKKSZiv0xQU =1x4G -----END PGP SIGNATURE----- --==-=-=--