From: Juri Linkov <juri@jurta.org>
To: 11961@debbugs.gnu.org
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 [thread overview]
Message-ID: <877gtmsa8d.fsf@mail.jurta.org> (raw)
In-Reply-To: <874noqeql8.fsf@marauder.physik.uni-ulm.de> (Reiner Steib's message of "Sun, 29 Jul 2012 13:47:47 +0200")
>> (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))
next prev parent reply other threads:[~2012-07-29 18:17 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-17 19:10 bug#11961: Why can't one open more than one gnus-read-ephemeral-bug at once? Juri Linkov
2012-07-29 11:47 ` Reiner Steib
2012-07-29 18:17 ` Juri Linkov [this message]
2012-09-05 19:36 ` Lars Ingebrigtsen
2012-09-05 19:36 ` Lars Ingebrigtsen
2012-09-06 9:03 ` Juri Linkov
2012-09-06 14:10 ` Lars Ingebrigtsen
2012-09-06 16:35 ` Juri Linkov
2012-09-06 16:47 ` Lars Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877gtmsa8d.fsf@mail.jurta.org \
--to=juri@jurta.org \
--cc=11961@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).