[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#11961: Why can't one open more than one gnus-read-ephemeral-bug at o

From: Juri Linkov
Subject: 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
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (x86_64-pc-linux-gnu)

>>        (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

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


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)
-       (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-read-ephemeral-bug"
+       (format "nndoc+ephemeral:bug#%s"
+              (mapconcat 'number-to-string ids ","))
        `(nndoc ,tmpfile
               (nndoc-article-type mbox))
        nil window-conf))

reply via email to

[Prev in Thread] Current Thread [Next in Thread]