Gnus development mailing list
 help / color / mirror / Atom feed
From: Wes Hardaker <wjhardaker@ucdavis.edu>
Subject: Re: agent off-line and URLs
Date: 09 Feb 1998 08:09:09 -0800	[thread overview]
Message-ID: <x790rkdal6.fsf@des.castles.com> (raw)
In-Reply-To: Lars Magne Ingebrigtsen's message of "08 Feb 1998 16:54:01 +0100"

>>>>> On 08 Feb 1998 16:54:01 +0100, Lars Magne Ingebrigtsen <larsi@gnus.org> said:

Lars> Yes, that would be nice, but I think this should be handled from
Lars> outside Gnus.  Gnus could call, like,
Lars> `browse-url-fetch-deferred' (or something), but keeping track of
Lars> URLs and stuff is something that doesn't belong in Gnus proper.

1)  Someone suggested wwwoffle, which would work, and essentially just 
    a proxie.  More than I really wanted.

2)  You're right, it should probably be external, but its too small
    really to distribute by itself (I wrote it yesterday):

(defun my-browse-and-cache (URL) 
  "browser the URL using netscape if online, else store it in *WWW-cache*"
  (interactive)
  (if (string-equal (second gnus-agent-mode-status) " Plugged")
      (browse-url-netscape URL)
    (save-excursion
	(set-buffer "*WWW-cache*")
	(end-of-buffer)
	(let ((p (point)))
	  (insert (format "(browse-url-netscape \"%s\")\n" URL))
	  (gnus-article-add-button p (point-max) 'browse-url-netscape URL)
	))))


Granted, I made one mistake I haven't fixed where I assume set-buffer
creates the buffer (it doesn't, I just noticed this morning) and I
call netscape's function call rather than doing a, um, (funcall)
directly...

-- 
"Ninjas aren't dangerous.  They're more afraid of you than you are of them."


  reply	other threads:[~1998-02-09 16:09 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-02-02 18:10 Wes Hardaker
1998-02-08 15:54 ` Lars Magne Ingebrigtsen
1998-02-09 16:09   ` Wes Hardaker [this message]
1998-02-11 22:27     ` Dave Love
1998-02-11 22:41       ` Hrvoje Niksic
1998-02-12  0:44       ` Frank D. Cringle
1998-02-12 15:55       ` jari.aalto

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=x790rkdal6.fsf@des.castles.com \
    --to=wjhardaker@ucdavis.edu \
    /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).