GNU bug report logs - #11641
[PATCH] Limit warping to virtual groups

Previous Next

Package: gnus;

Reported by: Dave Abrahams <dave <at> boostpro.com>

Date: Wed, 6 Jun 2012 23:13:02 UTC

Severity: normal

Tags: fixed, patch

Found in version 5.130006

Fixed in version 24.2

Done: Lars Magne Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 11641 in the body.
You can then email your comments to 11641 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bugs <at> gnus.org:
bug#11641; Package gnus. (Wed, 06 Jun 2012 23:13:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Dave Abrahams <dave <at> boostpro.com>:
New bug report received and forwarded. Copy sent to bugs <at> gnus.org. (Wed, 06 Jun 2012 23:13:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Dave Abrahams <dave <at> boostpro.com>
To: submit <at> debbugs.gnu.org (The Gnus Bugfixing Girls + Boys)
Subject: [PATCH] Limit warping to virtual groups
Date: Wed, 06 Jun 2012 19:09:47 -0400
[Message part 1 (text/plain, inline)]
The addition of registry warping broke the promise of
gnus-warp-to-article that it should be a no-op in real groups.  The
enclosed patch fixes that bug.

[0001-Bugfix-honor-gnus-warp-to-article-s-promise-not-to-w.patch (text/x-patch, inline)]
From 827747888a0f608c573532831fd358a80c837c0c Mon Sep 17 00:00:00 2001
From: Dave Abrahams <dave <at> boostpro.com>
Date: Wed, 6 Jun 2012 19:07:15 -0400
Subject: [PATCH] Bugfix: honor gnus-warp-to-article's promise not to warp
 from real groups

Registry warping could occur in real groups, but it shouldn't.
---
 lisp/gnus-int.el |   17 +++++++++--------
 1 file changed, 9 insertions(+), 8 deletions(-)

diff --git a/lisp/gnus-int.el b/lisp/gnus-int.el
index bc98693..18e56ed 100644
--- a/lisp/gnus-int.el
+++ b/lisp/gnus-int.el
@@ -587,14 +587,15 @@ This is the string that Gnus uses to identify the group."
   "Warps from an article in a virtual group to the article in its
 real group. Does nothing on a real group."
   (interactive)
-  (let ((gnus-command-method
-	 (gnus-find-method-for-group gnus-newsgroup-name)))
-    (or
-     (when (gnus-check-backend-function
-            'warp-to-article (car gnus-command-method))
-       (funcall (gnus-get-function gnus-command-method 'warp-to-article)))
-     (and (bound-and-true-p gnus-registry-enabled)
-	  (gnus-try-warping-via-registry)))))
+  (when (gnus-virtual-group-p gnus-newsgroup-name)
+    (let ((gnus-command-method
+           (gnus-find-method-for-group gnus-newsgroup-name)))
+      (or
+       (when (gnus-check-backend-function
+              'warp-to-article (car gnus-command-method))
+         (funcall (gnus-get-function gnus-command-method 'warp-to-article)))
+       (and (bound-and-true-p gnus-registry-enabled)
+            (gnus-try-warping-via-registry))))))
 
 (defun gnus-request-head (article group)
   "Request the head of ARTICLE in GROUP."
-- 
1.7.10.2

[Message part 3 (text/plain, inline)]

Ma Gnus v0.6
GNU Emacs 24.0.94.1 (x86_64-apple-darwin11.4.0, Carbon Version 1.6.0 AppKit 1138.47)
 of 2012-05-24 on pluto.luannocracy.com
200 news.gmane.org InterNetNews NNRP server INN 2.5.1 ready (posting ok)
101 Capability list:
VERSION 2
IMPLEMENTATION INN 2.5.1
AUTHINFO USER
HDR
LIST ACTIVE ACTIVE.TIMES DISTRIB.PATS HEADERS NEWSGROUPS OVERVIEW.FMT
OVER
POST
READER
STARTTLS
.

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com


Information forwarded to bugs <at> gnus.org:
bug#11641; Package gnus. (Sun, 10 Jun 2012 22:04:01 GMT) Full text and rfc822 format available.

Message #8 received at 11641 <at> debbugs.gnu.org (full text, mbox):

From: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
To: Dave Abrahams <dave <at> boostpro.com>
Cc: 11641 <at> debbugs.gnu.org
Subject: Re: bug#11641: [PATCH] Limit warping to virtual groups
Date: Mon, 11 Jun 2012 00:01:04 +0200
Dave Abrahams <dave <at> boostpro.com> writes:

> Subject: [PATCH] Bugfix: honor gnus-warp-to-article's promise not to warp
>  from real groups

Thanks for the patch; I've applied it to Ma Gnus v0.6.

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/




Added tag(s) fixed. Request was from Lars Magne Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sun, 10 Jun 2012 22:04:02 GMT) Full text and rfc822 format available.

bug marked as fixed in version 24.2, send any further explanations to 11641 <at> debbugs.gnu.org and Dave Abrahams <dave <at> boostpro.com> Request was from Lars Magne Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sun, 10 Jun 2012 22:04:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 09 Jul 2012 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 12 years and 342 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.