From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/13863 Path: main.gmane.org!not-for-mail From: Wes Hardaker Newsgroups: gmane.emacs.gnus.general Subject: Re: agent off-line and URLs Date: 09 Feb 1998 08:09:09 -0800 Organization: U.C.Davis, Information Technology - D.C.A.S. Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 (generated by tm-edit 7.108) Content-Type: text/plain; charset=US-ASCII X-Trace: main.gmane.org 1035153153 11577 80.91.224.250 (20 Oct 2002 22:32:33 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 22:32:33 +0000 (UTC) Return-Path: Original-Received: from xemacs.org (xemacs.cs.uiuc.edu [128.174.252.16]) by altair.xemacs.org (8.8.8/8.8.8) with ESMTP id IAA27712 for ; Mon, 9 Feb 1998 08:53:02 -0800 Original-Received: from gizmo.hpc.uh.edu (gizmo.hpc.uh.edu [129.7.102.31]) by xemacs.org (8.8.5/8.8.5) with ESMTP id KAA27108 for ; Mon, 9 Feb 1998 10:50:00 -0600 (CST) Original-Received: from sina.hpc.uh.edu (sina.hpc.uh.edu [129.7.3.5]) by gizmo.hpc.uh.edu (8.7.6/8.7.3) with ESMTP id LAN05955; Mon, 9 Feb 1998 11:26:23 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Mon, 09 Feb 1998 10:48:15 -0600 (CST) Original-Received: from claymore.vcinet.com (claymore.vcinet.com [208.205.12.23]) by sina.hpc.uh.edu (8.7.3/8.7.3) with SMTP id KAA25803 for ; Mon, 9 Feb 1998 10:48:05 -0600 (CST) Original-Received: (qmail 12812 invoked by uid 504); 9 Feb 1998 16:47:54 -0000 Original-Received: (qmail 12809 invoked from network); 9 Feb 1998 16:47:54 -0000 Original-Received: from des.castles.com (hardaker@208.214.166.35) by claymore.vcinet.com with SMTP; 9 Feb 1998 16:47:53 -0000 Original-Received: (from hardaker@localhost) by des.castles.com (8.8.6/8.8.6) id IAA12709; Mon, 9 Feb 1998 08:43:14 -0800 Original-To: ding@gnus.org X-Face: #qW^}a%m*T^{A:Cp}$R\"38+d}41-Z}uU8,r%F#c#s:~Nzp0G9](s?,K49KJ]s"*7gvRgA SrAvQc4@/}L7Qc=w{)]ACO\R{LF@S{pXfojjjGg6c;q6{~C}CxC^^&~(F]`1W)%9j/iS/ IM",B1M.?{w8ckLTYD'`|kTr\i\cgY)P4 X-url: http://dcas.ucdavis.edu/~hardaker In-Reply-To: Lars Magne Ingebrigtsen's message of "08 Feb 1998 16:54:01 +0100" X-Mailer: Quassia Gnus v0.21/XEmacs 20.3 - "Vatican City" Original-Xref: des.castles.com queue:4 Original-Lines: 34 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:13863 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:13863 >>>>> On 08 Feb 1998 16:54:01 +0100, Lars Magne Ingebrigtsen 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."