From: fdc@cliwe.ping.de (Frank D. Cringle)
Subject: Re: agent off-line and URLs
Date: 12 Feb 1998 01:44:33 +0100 [thread overview]
Message-ID: <vtd8gtirda.fsf@cliwe.ping.de> (raw)
In-Reply-To: Dave Love's message of "11 Feb 1998 22:27:18 +0000"
Dave Love <d.love@dl.ac.uk> 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 "<TITLE>Noted URLs</TITLE>\n")
(insert (format "<H1>Extracted from news by %s</H1>\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 "<A HREF=\"%s\">%s[%s] %s</A><P>\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
next prev parent reply other threads:[~1998-02-12 0:44 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
1998-02-11 22:27 ` Dave Love
1998-02-11 22:41 ` Hrvoje Niksic
1998-02-12 0:44 ` Frank D. Cringle [this message]
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=vtd8gtirda.fsf@cliwe.ping.de \
--to=fdc@cliwe.ping.de \
/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).