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

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

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


From: John Sullivan
Subject: Re: [emacs-wiki-discuss] Re: Planner trying to open links with web browser
Date: Mon, 12 Apr 2004 08:18:07 -0400
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)

Sacha Chua <address@hidden> writes:

> 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>


Using the above function, the links to the cached articles now work,
but the links to the uncached articls do not :) The problem is now the
reverse of what it was. 

-John


Attachment: pgpMn3HejLfix.pgp
Description: PGP signature


reply via email to

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