GNU bug report logs - #11961
Why can't one open more than one gnus-read-ephemeral-bug at once?

Previous Next

Packages: gnus, emacs;

Reported by: Juri Linkov <juri <at> jurta.org>

Date: Tue, 17 Jul 2012 19:18:02 UTC

Severity: minor

Tags: fixed

Found in version 24.1.50

Fixed in version 24.3

Done: Lars 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 11961 in the body.
You can then email your comments to 11961 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 bug-gnu-emacs <at> gnu.org, bugs <at> gnus.org:
bug#11961; Package emacs,gnus. (Tue, 17 Jul 2012 19:18:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Juri Linkov <juri <at> jurta.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org, bugs <at> gnus.org. (Tue, 17 Jul 2012 19:18:02 GMT) Full text and rfc822 format available.

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

From: Juri Linkov <juri <at> jurta.org>
To: bug-gnu-emacs <at> gnu.org
Subject: Why can't one open more than one gnus-read-ephemeral-bug at once?
Date: Tue, 17 Jul 2012 22:10:20 +0300
Package: emacs,gnus
Version: 24.1.50

Currently `gnus-read-ephemeral-emacs-bug-group'
can open only one group at a time.

The following patch eliminates this limitation
by creating unique group names:

=== modified file 'lisp/gnus/gnus-group.el'
--- lisp/gnus/gnus-group.el	2012-06-27 22:52:31 +0000
+++ lisp/gnus/gnus-group.el	2012-07-17 19:03:39 +0000
@@ -2481,7 +2481,8 @@ (defun gnus-read-ephemeral-bug-group (id
 			 "/.*$" ""))))
       (write-region (point-min) (point-max) tmpfile)
       (gnus-group-read-ephemeral-group
-       "gnus-read-ephemeral-bug"
+       (format "gnus-read-ephemeral-bug:%s"
+	       (mapconcat 'number-to-string ids ","))
        `(nndoc ,tmpfile
 	       (nndoc-article-type mbox))
        nil window-conf))





Information forwarded to bug-gnu-emacs <at> gnu.org, bugs <at> gnus.org:
bug#11961; Package emacs,gnus. (Sun, 29 Jul 2012 12:10:01 GMT) Full text and rfc822 format available.

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

From: Reiner Steib <reinersteib+gmane <at> imap.cc>
To: bug-gnu-emacs <at> gnu.org
Subject: Re: bug#11961: Why can't one open more than one
	gnus-read-ephemeral-bug at once?
Date: Sun, 29 Jul 2012 13:47:47 +0200
On Tue, Jul 17 2012, Juri Linkov wrote:

> Currently `gnus-read-ephemeral-emacs-bug-group'
> can open only one group at a time.
>
> The following patch eliminates this limitation
> by creating unique group names:
[...]
>        (gnus-group-read-ephemeral-group
> -       "gnus-read-ephemeral-bug"
> +       (format "gnus-read-ephemeral-bug:%s"
> +	       (mapconcat 'number-to-string ids ","))

It handles the case when `ids' is a list as well, right?

Looks useful to me, please install.

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/





Information forwarded to bug-gnu-emacs <at> gnu.org, bugs <at> gnus.org:
bug#11961; Package emacs,gnus. (Sun, 29 Jul 2012 18:27:02 GMT) Full text and rfc822 format available.

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

From: Juri Linkov <juri <at> jurta.org>
To: 11961 <at> debbugs.gnu.org
Subject: Re: bug#11961: Why can't one open more than one
	gnus-read-ephemeral-bug at once?
Date: Sun, 29 Jul 2012 21:17:22 +0300
>>        (gnus-group-read-ephemeral-group
>> -       "gnus-read-ephemeral-bug"
>> +       (format "gnus-read-ephemeral-bug:%s"
>> +	       (mapconcat 'number-to-string ids ","))
>
> It handles the case when `ids' is a list as well, right?

Yes, it also handles a list of `ids'.

BTW, could you please recommend a command that reads a Gmane thread?
I can't find it.  There is a command `gnus-read-ephemeral-gmane-group'
that asks for two arguments: `start' ("Start article number:")
and `range' ("How many articles:").

But what is needed is a command that asks for URL and displays its thread.
I see there is a command `gnus-read-ephemeral-gmane-group-url'
so I tried the following test case:

  M-x gnus-read-ephemeral-gmane-group-url RET
  http://thread.gmane.org/gmane.emacs.devel/142449/focus=142484 RET

But its output is broken, it displays some irrelevant posts
from other threads.  Do you think this is a bug in Gnus?
I expected that its output will be the same as on the web page
http://thread.gmane.org/gmane.emacs.devel/142449/focus=142484

Also I noticed that `gnus-read-ephemeral-gmane-group-url'
creates very ugly buffer names such as e.g.

  *Article nndoc+/tmp/gmane.emacs.devel.start-142449.range-36.2905c8Z-ephemeral:gmane.emacs.devel.start-142449.range-36*

I don't know what is the standard group naming convention in Gnus,
but at least the following patch provides more consistent buffer names
such as for Gmane groups and articles:

  *Summary nndoc+ephemeral:gmane.emacs.devel.start-142449.range-36*
  *Article nndoc+ephemeral:gmane.emacs.devel.start-142449.range-36*

and for bug groups and articles:

  *Summary nndoc+ephemeral:bug#9201*
  *Article nndoc+ephemeral:bug#9201*

=== modified file 'lisp/gnus/gnus-group.el'
--- lisp/gnus/gnus-group.el	2012-07-24 22:17:17 +0000
+++ lisp/gnus/gnus-group.el	2012-07-29 18:15:42 +0000
@@ -2388,7 +2388,7 @@ (defun gnus-read-ephemeral-gmane-group (
 	       group start (+ start range)))
       (write-region (point-min) (point-max) tmpfile)
       (gnus-group-read-ephemeral-group
-       (format "%s.start-%s.range-%s" group start range)
+       (format "nndoc+ephemeral:%s.start-%s.range-%s" group start range)
        `(nndoc ,tmpfile
 	       (nndoc-article-type mbox))))
     (delete-file tmpfile)))
@@ -2481,7 +2481,8 @@ (defun gnus-read-ephemeral-bug-group (id
 			 "/.*$" ""))))
       (write-region (point-min) (point-max) tmpfile)
       (gnus-group-read-ephemeral-group
-       "gnus-read-ephemeral-bug"
+       (format "nndoc+ephemeral:bug#%s"
+	       (mapconcat 'number-to-string ids ","))
        `(nndoc ,tmpfile
 	       (nndoc-article-type mbox))
        nil window-conf))





Information forwarded to bug-gnu-emacs <at> gnu.org, bugs <at> gnus.org:
bug#11961; Package emacs,gnus. (Wed, 05 Sep 2012 19:37:02 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Juri Linkov <juri <at> jurta.org>
Cc: 11961 <at> debbugs.gnu.org
Subject: Re: bug#11961: Why can't one open more than one
	gnus-read-ephemeral-bug at once?
Date: Wed, 05 Sep 2012 21:36:16 +0200
Juri Linkov <juri <at> jurta.org> writes:

> Currently `gnus-read-ephemeral-emacs-bug-group'
> can open only one group at a time.
>
> The following patch eliminates this limitation
> by creating unique group names:

Thanks; applied to Ma Gnus.

-- 
(domestic pets only, the antidote for overdose, milk.)
  http://lars.ingebrigtsen.no  *  Lars Magne Ingebrigtsen




Information forwarded to bug-gnu-emacs <at> gnu.org, bugs <at> gnus.org:
bug#11961; Package emacs,gnus. (Wed, 05 Sep 2012 19:38:02 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Juri Linkov <juri <at> jurta.org>
Cc: 11961 <at> debbugs.gnu.org
Subject: Re: bug#11961: Why can't one open more than one
	gnus-read-ephemeral-bug at once?
Date: Wed, 05 Sep 2012 21:36:49 +0200
Juri Linkov <juri <at> jurta.org> writes:

> BTW, could you please recommend a command that reads a Gmane thread?

I don't think any such thing exists. 

-- 
(domestic pets only, the antidote for overdose, milk.)
  http://lars.ingebrigtsen.no  *  Lars Magne Ingebrigtsen




Added tag(s) fixed. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Wed, 05 Sep 2012 19:41:02 GMT) Full text and rfc822 format available.

bug marked as fixed in version 24.3, send any further explanations to 11961 <at> debbugs.gnu.org and Juri Linkov <juri <at> jurta.org> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Wed, 05 Sep 2012 19:41:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org, bugs <at> gnus.org:
bug#11961; Package emacs,gnus. (Thu, 06 Sep 2012 09:08:01 GMT) Full text and rfc822 format available.

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

From: Juri Linkov <juri <at> jurta.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 11961 <at> debbugs.gnu.org
Subject: Re: bug#11961: Why can't one open more than one
	gnus-read-ephemeral-bug at once?
Date: Thu, 06 Sep 2012 12:03:43 +0300
>> The following patch eliminates this limitation
>> by creating unique group names:
>
> Thanks; applied to Ma Gnus.

I see that you installed an old version of the patch.  I sent a newer
version at the end of the message 11 in http://debbugs.gnu.org/11961#11
I'm copying it here for your convenience:

=== modified file 'lisp/gnus/gnus-group.el'
--- lisp/gnus/gnus-group.el	2012-07-24 22:17:17 +0000
+++ lisp/gnus/gnus-group.el	2012-07-29 18:15:42 +0000
@@ -2388,7 +2388,7 @@ (defun gnus-read-ephemeral-gmane-group (
 	       group start (+ start range)))
       (write-region (point-min) (point-max) tmpfile)
       (gnus-group-read-ephemeral-group
-       (format "%s.start-%s.range-%s" group start range)
+       (format "nndoc+ephemeral:%s.start-%s.range-%s" group start range)
        `(nndoc ,tmpfile
 	       (nndoc-article-type mbox))))
     (delete-file tmpfile)))
@@ -2481,7 +2481,8 @@ (defun gnus-read-ephemeral-bug-group (id
 			 "/.*$" ""))))
       (write-region (point-min) (point-max) tmpfile)
       (gnus-group-read-ephemeral-group
-       "gnus-read-ephemeral-bug"
+       (format "nndoc+ephemeral:bug#%s"
+	       (mapconcat 'number-to-string ids ","))
        `(nndoc ,tmpfile
 	       (nndoc-article-type mbox))
        nil window-conf))





Information forwarded to bug-gnu-emacs <at> gnu.org, bugs <at> gnus.org:
bug#11961; Package emacs,gnus. (Thu, 06 Sep 2012 14:12:01 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Juri Linkov <juri <at> jurta.org>
Cc: 11961 <at> debbugs.gnu.org
Subject: Re: bug#11961: Why can't one open more than one
	gnus-read-ephemeral-bug at once?
Date: Thu, 06 Sep 2012 16:10:38 +0200
Juri Linkov <juri <at> jurta.org> writes:

> I see that you installed an old version of the patch.  I sent a newer
> version at the end of the message 11 in http://debbugs.gnu.org/11961#11
> I'm copying it here for your convenience:

Could you send a new patch against the current trunk?

-- 
(domestic pets only, the antidote for overdose, milk.)
  http://lars.ingebrigtsen.no  *  Lars Magne Ingebrigtsen




Information forwarded to bug-gnu-emacs <at> gnu.org, bugs <at> gnus.org:
bug#11961; Package emacs,gnus. (Thu, 06 Sep 2012 16:40:02 GMT) Full text and rfc822 format available.

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

From: Juri Linkov <juri <at> jurta.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 11961 <at> debbugs.gnu.org
Subject: Re: bug#11961: Why can't one open more than one
	gnus-read-ephemeral-bug at once?
Date: Thu, 06 Sep 2012 19:35:33 +0300
>> I see that you installed an old version of the patch.  I sent a newer
>> version at the end of the message 11 in http://debbugs.gnu.org/11961#11
>> I'm copying it here for your convenience:
>
> Could you send a new patch against the current trunk?

Below is a patch for the current trunk.

It changes the naming scheme for buffer names to be more consistent with
other group and article buffer names in Gnus.

Instead of currently ugly buffer names like:

  *Article nndoc+/tmp/gmane.emacs.devel.start-142449.range-36.2905c8Z-ephemeral:gmane.emacs.devel.start-142449.range-36*

this patch will create buffer names for Gmane groups and articles like:

  *Summary nndoc+ephemeral:gmane.emacs.devel.start-142449.range-36*
  *Article nndoc+ephemeral:gmane.emacs.devel.start-142449.range-36*

and bug groups and articles will be like:

  *Summary nndoc+ephemeral:bug#9201*
  *Article nndoc+ephemeral:bug#9201*

=== modified file 'lisp/gnus/gnus-group.el'
--- lisp/gnus/gnus-group.el	2012-09-05 22:45:43 +0000
+++ lisp/gnus/gnus-group.el	2012-09-06 16:32:17 +0000
@@ -2388,7 +2388,7 @@ (defun gnus-read-ephemeral-gmane-group (
 	       group start (+ start range)))
       (write-region (point-min) (point-max) tmpfile)
       (gnus-group-read-ephemeral-group
-       (format "%s.start-%s.range-%s" group start range)
+       (format "nndoc+ephemeral:%s.start-%s.range-%s" group start range)
        `(nndoc ,tmpfile
 	       (nndoc-article-type mbox))))
     (delete-file tmpfile)))
@@ -2481,7 +2481,7 @@ (defun gnus-read-ephemeral-bug-group (id
 			 "/.*$" ""))))
       (write-region (point-min) (point-max) tmpfile)
       (gnus-group-read-ephemeral-group
-       (format "gnus-read-ephemeral-bug:%s"
+       (format "nndoc+ephemeral:bug#%s"
 	       (mapconcat 'number-to-string ids ","))
        `(nndoc ,tmpfile
 	       (nndoc-article-type mbox))






Information forwarded to bug-gnu-emacs <at> gnu.org, bugs <at> gnus.org:
bug#11961; Package emacs,gnus. (Thu, 06 Sep 2012 16:48:02 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Juri Linkov <juri <at> jurta.org>
Cc: 11961 <at> debbugs.gnu.org
Subject: Re: bug#11961: Why can't one open more than one
	gnus-read-ephemeral-bug at once?
Date: Thu, 06 Sep 2012 18:47:06 +0200
Juri Linkov <juri <at> jurta.org> writes:

> Below is a patch for the current trunk.

Thanks; applied.

-- 
(domestic pets only, the antidote for overdose, milk.)
  http://lars.ingebrigtsen.no  *  Lars Magne Ingebrigtsen




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

This bug report was last modified 11 years and 207 days ago.

Previous Next


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