From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/81609 Path: news.gmane.org!not-for-mail From: Dave Abrahams Newsgroups: gmane.emacs.gnus.general Subject: [PATCH 0/5] *** Resubmit: Warping via the registry *** Date: Thu, 15 Mar 2012 14:23:08 -0400 Message-ID: <1331835793-70228-1-git-send-email-dave@boostpro.com> NNTP-Posting-Host: plane.gmane.org X-Trace: dough.gmane.org 1331835934 18863 80.91.229.3 (15 Mar 2012 18:25:34 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 15 Mar 2012 18:25:34 +0000 (UTC) Cc: Dave Abrahams To: ding@gnus.org Original-X-From: ding-owner+M29889@lists.math.uh.edu Thu Mar 15 19:25:30 2012 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1S8FMX-0008To-SP for ding-account@gmane.org; Thu, 15 Mar 2012 19:25:22 +0100 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 1S8FLc-0003gJ-SP; Thu, 15 Mar 2012 13:24:24 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1S8FLb-0003g1-Ek for ding@lists.math.uh.edu; Thu, 15 Mar 2012 13:24:23 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1S8FLJ-0006n5-SE for ding@lists.math.uh.edu; Thu, 15 Mar 2012 13:24:23 -0500 Original-Received: from mail-yw0-f44.google.com ([209.85.213.44]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1S8FLH-0000eH-Rj for ding@gnus.org; Thu, 15 Mar 2012 19:24:04 +0100 Original-Received: by yhkk25 with SMTP id k25so886322yhk.17 for ; Thu, 15 Mar 2012 11:23:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:x-gm-message-state; bh=m0Y4T5x57w7qN0YhXPfeJAEKya0H98/eSkXEj/NhsTE=; b=Wxlxd7tdqEvAOqyp+Ju0sNz9C9AdNesO/Z3N1OPYWTIwz2DJRplpFpPCkD1zXh5gsD jDplrhdNbQqc98peKIPAvh+N10zbWVf+VR6Q6Ji7QHIN5+qTsZAEkmnR/aRyKA1WaTHX E46+LBugy8zzJzL8OPi6sEBjPT5f/RH4y5gNgKU/QHff/2uJQnjUd4uUs919N/5jegVU epaZofpCVpKaRcVcOsYdfukz5iwsrFi19qw5xCOjRBwWVM17/UtbSEHQbfOXHa4WQYDe hr8ip2A+M0t4e9Z3lKD3HaZueuzAukGvsvSVol0cPlz4T60jNK6byCiAdE9phAqwq1zn DtEQ== Original-Received: by 10.224.220.211 with SMTP id hz19mr262333qab.33.1331835837772; Thu, 15 Mar 2012 11:23:57 -0700 (PDT) Original-Received: from pluto.luannocracy.com (207-172-223-249.c3-0.smr-ubr3.sbo-smr.ma.static.cable.rcn.com. [207.172.223.249]) by mx.google.com with ESMTPS id z6sm5378736qap.17.2012.03.15.11.23.56 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 15 Mar 2012 11:23:57 -0700 (PDT) X-Mailer: git-send-email 1.7.9.2 X-Gm-Message-State: ALoCoQl7us571qQkDd6dkWCctfb29HgX81bFZw1VkCuvFPzFQkwe5wBQjpMvC3naf21gQKHkC3QW X-Spam-Score: -2.9 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:81609 Archived-At: Note: I submitted this patch series back in October (http://permalink.gmane.org/gmane.emacs.gnus.general/80250). It still applies perfectly, but I rebased just in case. I'd really appreciate it if this series could get some attention. Further explanation of the motivation for this series is in http://article.gmane.org/gmane.emacs.gnus.general/80277. Thanks! This patch series implements the ability to warp to a message via information stored in the Gnus registry. From a user's point-of-view, this means that articles brought in from other groups by gnus-*-refer-* can be used as a jumping-off-point for further references. For example, I am using this code to jump to a given message: (defun gnus-goto-article (message-id) (with-temp-buffer (erase-buffer) ;; Insert dummy article (insert (format "From nobody Tue Sep 13 22:05:34 2011\n\n")) (gnus-group-read-ephemeral-group message-id `(nndoc ,message-id (nndoc-address ,(current-buffer)) (nndoc-article-type mbox)) :activate (cons (current-buffer) gnus-current-window-configuration) (not :request-only) '(-1) ; :select-articles (not :parameters) 0 ; :number ) (gnus-summary-refer-article message-id) )) Before applying this patch series, I could not get to the whole thread with `A T' because Gnus was unable to warp to the article in its original group. How it works ------------ Each time a message is fetched from a backend, its group is noted in the registry. Warping now consults the backend of the current group, and if that fails, tries warping to the article in each group stored for it in the registry until one succeeds. Dave Abrahams (5): Allow gnus-summary-insert-subject to work in empty groups. Record information in the registry about each article retrieved Add `gnus-select-group-with-message-id' Add `gnus-try-warping-via-registry()' Enable registry-warping as a fallback if warping via the current backend fails. lisp/gnus-int.el | 101 ++++++++++++++++++++++++++++++++++++++++++++++++++++-- lisp/gnus-sum.el | 11 +++++- 2 files changed, 107 insertions(+), 5 deletions(-) -- 1.7.5.4