Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Memnon Anon <gegendosenfleisch@googlemail.com>
To: info-gnus-english@gnu.org
Subject: Re: Browsing to original article in gwene?
Date: Fri, 5 Oct 2012 13:25:57 +0000 (UTC)	[thread overview]
Message-ID: <87ipapt5mg.fsf@mean.albasani.net> (raw)
In-Reply-To: <87r4pdsfyh.fsf@gmail.com>

William Gardella <gardellawg@gmail.com>
writes:

> It would also be pretty trivial as a proper Lisp function.

Something like this?

#+begin_src emacs-lisp
(defun my-gnus-browse-gwene ()
"Start a browser for current gwene article"
  (interactive)
  (dolist (buf (buffer-list))
    (with-current-buffer buf
      (when (eq major-mode 'gnus-article-mode)
	(gnus-summary-show-article '(4))
	(switch-to-buffer buf)
	(goto-char (point-min))
	(re-search-forward "^Archived-at: <\\(.*\\)>$")
	(browse-url (match-string 1))
	(gnus-summary-show-article)))))
#+end_src

Memnon

  parent reply	other threads:[~2012-10-05 13:25 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-05  2:05 Haider Rizvi
2012-10-05  4:25 ` William Gardella
2012-10-05  4:32   ` William Gardella
2012-10-05 13:25   ` Memnon Anon [this message]
2012-10-05 15:06     ` Haider Rizvi
2012-10-07 21:04     ` Toke Høiland-Jørgensen
2012-10-08  6:46       ` Reiner Steib
2012-10-08 16:10         ` Haider Rizvi
2012-10-08 17:07           ` Haider Rizvi
2012-10-08 19:11             ` Reiner Steib
2012-10-08  8:13       ` Kevin Brubeck Unhammer
2012-10-08  8:39         ` Kevin Brubeck Unhammer

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=87ipapt5mg.fsf@mean.albasani.net \
    --to=gegendosenfleisch@googlemail.com \
    --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).