emacs-wiki-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[emacs-wiki-discuss] Re: Planner trying to open links with web browser


From: Sacha Chua
Subject: [emacs-wiki-discuss] Re: Planner trying to open links with web browser
Date: Mon, 12 Apr 2004 14:12:13 +0800
User-agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux)

John Sullivan <address@hidden> writes:

> The messages do still exist actually. In the same gnus folder they
> were in when they were linked. Now, I did mark them with an * to
> keep them in the article cache. Perhaps this is the problem. It
> might explain why the more recent tasks work fine, because their
> messages are not yet past the expiry date..

Okay, I've taken a look at gnus-cache and gotten somewhat confused.
I'm not sure if there's a way to refer to cached articles by their
message ID. Please see if the following function works:

(defun planner-gnus-browse-url (url)
  "If this is a Gnus URL, jump to it."
  (when (string-match "^gnus://\\(.+\\)/\\(.+\\)" url)
    (let ((group (match-string 1 url))
          (article (match-string 2 url)))
      (unless (and (fboundp 'gnus-alive-p)
                   (gnus-alive-p))
        (gnus-unplugged))
      (switch-to-buffer "*Group*")
      (gnus-group-jump-to-group group)
      (gnus-group-select-group)
      (when (fboundp 'gnus-summary-insert-cached-articles)
        (gnus-summary-insert-cached-articles))
      (gnus-summary-goto-article article))))

but it's a wild stab in the dark as I haven't set up a proper testing
environment yet... <sheepish grin>
-- 
Sacha Chua <address@hidden> - Ateneo CS faculty geekette
interests: emacs, gnu/linux, making computer science education fun
http://sacha.free.net.ph/ - PGP Key ID: 0xE7FDF77C




reply via email to

[Prev in Thread] Current Thread [Next in Thread]