From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/13932 Path: main.gmane.org!not-for-mail From: fdc@cliwe.ping.de (Frank D. Cringle) Newsgroups: gmane.emacs.gnus.general Subject: Re: agent off-line and URLs Date: 12 Feb 1998 01:44:33 +0100 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 1035153208 11932 80.91.224.250 (20 Oct 2002 22:33:28 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 22:33:28 +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 RAA12626 for ; Wed, 11 Feb 1998 17:00:28 -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 SAA21312 for ; Wed, 11 Feb 1998 18:57:30 -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 TAN15410; Wed, 11 Feb 1998 19:33:49 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Wed, 11 Feb 1998 18:56:11 -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 SAA22233 for ; Wed, 11 Feb 1998 18:56:03 -0600 (CST) Original-Received: (qmail 7365 invoked by uid 504); 12 Feb 1998 00:55:57 -0000 Original-Received: (qmail 7361 invoked from network); 12 Feb 1998 00:55:55 -0000 Original-Received: from lilly.ping.de (qmailr@193.100.14.2) by claymore.vcinet.com with SMTP; 12 Feb 1998 00:55:53 -0000 Original-Received: (qmail 1079 invoked by uid 10); 12 Feb 1998 00:55:33 -0000 Original-Received: from cliwe.ping.de by lilly.ping.de with UUCP (rmail-0.1-fdc); 12 Feb 1998 00:55:32 -0000 Original-Received: (qmail 5258 invoked by uid 150); 12 Feb 1998 00:44:33 -0000 Original-To: ding@gnus.org In-Reply-To: Dave Love's message of "11 Feb 1998 22:27:18 +0000" Original-Lines: 47 X-Mailer: Gnus v5.5/XEmacs 20.3 - "Vatican City" Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:13932 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:13932 Dave Love writes: > As browse-url muggins if it's useful, I'll implement a browse-url > function to allow you to snarf URLs offline to a file (presumably). > You could then set browse-url-browser-function to it as appropriate. > That's easy. Is there a good suggestion for a _simple_ way to use the > results online afterwards? For instance, just invoking browse-url N > times in succession (asynchronously) and emptying the file isn't > right, I think. [I don't know anything about existing implementations > of that sort of thing.] I just drop them into an HTML file and browse that file later when I am online. Here is what I have been using since the days when browse-url-browser-function was called gnus-button-url. I have been meaning to clean it up - particularly by inserting new URLs at the front rather than the end. ;; Should delete whitespace at end of subject line and ;; translate & to & (defun fdc-note-url (url) "Deposit a URL in the user's note.html file. Bind this function to gnus-button-url if you prefer not to lookup URLs while reading news." (interactive "sURL: ") (set-buffer gnus-summary-buffer) (let ((group (or (car gnus-article-current) "???")) (article (or (cdr gnus-article-current) "???")) (subject (or (gnus-summary-article-subject) "???")) (buffer (find-file-noselect gnus-note-file))) (set-buffer buffer) (bury-buffer buffer) (if (<= (point-max) 1) ; empty or new file (progn (insert "Noted URLs\n") (insert (format "

Extracted from news by %s

\n" (getenv "USER"))))) (goto-char (point-min)) (if (search-forward url nil t) (message "%s is already in %s." url gnus-note-file) (goto-char (point-max)) (insert (format "%s[%s] %s

\n" url group article subject)) (save-buffer) (message "%s inserted in %s." url gnus-note-file)))) -- Frank Cringle, fdc@cliwe.ping.de voice: (+49 2304) 467101; fax: 943357