From: Desmond Rivet <desmond_news@videotron.ca>
To: info-gnus-english@gnu.org
Subject: Re: Problems with nrss-url-field
Date: Sun, 07 Dec 2008 13:22:32 -0500 [thread overview]
Message-ID: <87prk3x2tz.fsf@zinc.branchcut.ath.cx> (raw)
In-Reply-To: <873ah2tt67.fsf@zinc.branchcut.ath.cx>
Desmond Rivet <desmond_news@videotron.ca> writes:
> Hi all,
>
> I have the following in my .gnus.el, cribbed from some website I've
> forgotten:
>
> (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
> (progn
> (browse-url (cdr url))
> (gnus-summary-mark-as-read-forward 1))
> (gnus-summary-scroll-up arg))))
>
> (eval-after-load "gnus"
> #'(define-key gnus-summary-mode-map
> (kbd "C-c <RET>") 'browse-nnrss-url))
> (add-to-list 'nnmail-extra-headers nnrss-url-field)
>
> The idea is that I want C-c <RET> to launch the RSS url in a browser.
>
> This actually worked fine the first couple of times I started up Gnus.
> But now when I start up Gnus, I get this in the minibuffer:
>
> Error in ~/.gnus: nnrss-url-field
>
> Commenting out the elisp code above allows Gnus to start up.
>
> My elisp is...sketchy, but I can generally follow snippets of code
> when I put in the effort. But I don't even know how to debug this...
>
> Any ideas? Even pointers on how to get more information on what's
> going wrong would be helpful...
I should probably also mention that I'm running this version of emacs:
GNU Emacs 23.0.60.1 (i486-pc-linux-gnu, GTK+ Version 2.12.11)
And Gnus version 5.13.
--
Desmond Rivet
Pain is weakness leaving the body.
prev parent reply other threads:[~2008-12-07 18:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-05 17:42 Desmond Rivet
2008-12-07 18:22 ` Desmond Rivet [this message]
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=87prk3x2tz.fsf@zinc.branchcut.ath.cx \
--to=desmond_news@videotron.ca \
--cc=info-gnus-english@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.
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).