From: Christoph Conrad <cc@cli.de>
Cc: ding@gnus.org, christoph.conrad@gmx.de
Subject: Re: Getting the URL from a nnrss-Message
Date: Fri, 13 Jul 2001 19:40:39 +0200 [thread overview]
Message-ID: <u4rsgd8x4.fsf@cli.de> (raw)
In-Reply-To: <2nn16ajcjw.fsf@piglet.jia.vnet> (ShengHuo ZHU's message of "Thu, 12 Jul 2001 10:13:23 -0700")
Hello ShengHuo,
you wrote:
ZSH> I've added nnrss-url-field for the url.
For those who want to use it for opening an nnrss url directly from
the summary buffer i supply some code here. Is there a better way to
define the key locally to the group? Maybe with group parameters?
======================================================================
CUT HERE - CUT HERE - CUT HERE - CUT HERE - CUT HERE - CUT HERE - CUT
======================================================================
(require 'browse-url)
(defun 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
(browse-url (cdr url))
(gnus-summary-scroll-up arg))))
(eval-after-load "gnus"
#'(define-key gnus-summary-mode-map
(kbd "<RET>") 'browse-nnrss-url))
(add-to-list 'nnmail-extra-headers nnrss-url-field)
======================================================================
CUT HERE - CUT HERE - CUT HERE - CUT HERE - CUT HERE - CUT HERE - CUT
======================================================================
Best regards,
Christoph Conrad
--
TTi Entwicklungszentrum GmbH, Elisabethstr. 16, D-52062 Aachen
Fon: +49 241 47051-0 Fax: +49 241 47051-89 Web: http://www.cli.de
Look Ma, this man can twist his fingers as if they were made of rubber,
isn't that amazing? -- Not really, he's been using emacs for years...!
next prev parent reply other threads:[~2001-07-13 17:40 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-06-27 10:50 Christoph Conrad
2001-07-12 17:13 ` ShengHuo ZHU
2001-07-13 17:40 ` Christoph Conrad [this message]
2001-07-13 19:33 ` ShengHuo ZHU
2001-07-13 21:17 ` Christoph Conrad
2001-07-13 22:09 ` ShengHuo ZHU
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=u4rsgd8x4.fsf@cli.de \
--to=cc@cli.de \
--cc=christoph.conrad@gmx.de \
--cc=ding@gnus.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).