From: "Jochen Küpper" <jochen-+It19tn3Rl9sbm7dSapR3bNAH6kLmebB@public.gmane.org>
Subject: Re: nnrss links
Date: Sat, 06 May 2006 13:38:33 +0200 [thread overview]
Message-ID: <9ehd43z8li.fsf@doze.jochen-kuepper.de> (raw)
In-Reply-To: <87veslmfn3.fsf-5BmGIU6vVXU6GL+IUqp+Xg@public.gmane.org> (Eythan Weg's message of "Thu, 04 May 2006 21:20:16 -0400")
weg-5BmGIU6vVXU6GL+IUqp+Xg@public.gmane.org (Eythan Weg) writes:
> Is it possible to make the subject in a summary buffer a link to the
> url? The subject text is often sufficient to determine the interest
> in reading the article pointed to by the link and in this way one
> saves some keyboarding.
From my .gnus, collected here on ding, I guess:
,----
| (defun jk/browse-nnrss-url(arg)
| (interactive "p")
| (let ((url (assq nnrss-url-field
| (mail-header-extra
| (gnus-data-header
| (assq (gnus-summary-article-number)
| gnus-newsgroup-data))))))
| (if url
| (progn
| (browse-url (cdr url))
| (gnus-summary-mark-as-read-forward 1))
| (gnus-summary-scroll-up arg))))
| (add-to-list 'nnmail-extra-headers nnrss-url-field)
| (add-hook 'gnus-summary-mode-hook
| (lambda ()
| (if (string-match "nnrss" gnus-newsgroup-name)
| (define-key gnus-summary-mode-map (kbd "<RET>") 'jk/browse-nnrss-url))))
`----
Greetings,
Jochen
--
Einigkeit und Recht und Freiheit http://www.Jochen-Kuepper.de
Liberté, Égalité, Fraternité GnuPG key: CC1B0B4D
(Part 3 you find in my messages before fall 2003.)
next prev parent reply other threads:[~2006-05-06 11:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-05 1:20 Eythan Weg
[not found] ` <87veslmfn3.fsf-5BmGIU6vVXU6GL+IUqp+Xg@public.gmane.org>
2006-05-06 11:38 ` Jochen Küpper [this message]
2006-05-08 12:11 ` Eythan Weg
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9ehd43z8li.fsf@doze.jochen-kuepper.de \
--to=jochen-+it19tn3rl9sbm7dsapr3bnah6klmebb@public.gmane.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.
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 NNTP newsgroup(s).