[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] Re: Bug? org.el:org-open-at-point
From: |
David Maus |
Subject: |
Re: [Orgmode] Re: Bug? org.el:org-open-at-point |
Date: |
Mon, 20 Sep 2010 22:08:58 +0200 |
User-agent: |
Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (Gojō) APEL/10.8 Emacs/23.2 (i486-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) |
Achim Gratz wrote:
>David Maus <address@hidden> writes:
>> What syntax did you try? IIRC `org-gnus-follow-link' expects a /Gnus/
>> link in path, but RFC5538 ("The 'news' and 'nntp' URI Schemes ")[1] has a
>> different definition that must be normalized to a org-gnus.link.
>I tried news:gmane.emacs.orgmode (incomplete, I know), but any other
>link with authority would produce the same result: GNUS tries to enter a
>group with the literal path as specified in the link and gets stuck.
>---------------
> 9:*nntp+news.gmane.org:gmane.emacs.orgmode
> K *: //news.gmane.org/gmane.emacs.orgmode
>---------------
>The correct path syntax suggested by GNUS to give to
>gnus-group-jump-to-group is nntp+news.gmane.org:gmane.emacs.orgmode, but
>that still doesn't open the Summary buffer and gives no further error
>message. Browsing around in org-gnus.el suggests that news: links
>should probably not go through that function in org-gnus.el since it
>registers it's own gnus: handler just for that.
1/
Okay, I've pushed a change to master that adds two functions
`org-wl-open-nntp' and `org-gnus-open-nntp' to open nntp: links with
WL or Gnus, respectively.
You have to register one of the functions as link handler, e.g.
,----
| (org-add-link-type "nntp" 'org-gnus-open-nntp)
`----
nntp: links have the form:
nntp://server/group[/article]
Where SERVER is the nntp server, GROUP is the group, and ARTICLE is
the article number.
Limitations: Dunno how to supply login information in Gnus. Thus,
opening a link like
nntp://address@hidden/group
will drop the "user" part and fall back to nntp://server/group.
2/
Support for news: links is a little bit tricky: They have the format
news:[//server/][group|message-id]
Where GROUP can contain wild-cards (meaning: List all groups that
match) and MESSAGE-ID appears without a group (meaning: search for the
message with this id on the server). And SERVER is optional.
3/
The next step would be to supersede the customization variable
`org-gnus-prefer-weblinks' by `org-gnus-prefered-usenet-link-type'
which can be one of:
'http -- create web link to gmane or google
'nntp -- create nntp: link
Best,
-- David
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber.... address@hidden
Email..... address@hidden
pgp_OCe2Sp8EJ.pgp
Description: PGP signature