Article View: news.software.readers
Article #39205Re: URLs in slrn
From: Heikki Kantola
Date: Fri, 27 Feb 1998 00:00
Date: Fri, 27 Feb 1998 00:00
43 lines
2030 bytes
2030 bytes
Dominic Davidson <dom+usenet@djd.ftech.co.uk> informed
news.software.readers with the following:
>With the current versions of slrn, if I go to an article which has no
>URLs in it and press U I get a message
>
>"No URLs found"
>
>however. this relies on slrn's URL detection. A lot of people miss out
>the http:// or ftp:// which is significant for detection of URLs.
>
>Does anyone have a patch or some SLang to allow entry of arbitrary
>URLs when U is pressed but no URLs have been found?
This is not patch, but a S-Lang macro, I found from this very same
newsgroup once upon a time:
define call_browser () {
variable Null_String = "";
variable cmd = Null_String;
variable browser = "lynx";
variable url = read_mini ("give an URL", Null_String, Null_String);
if (strlen (url)) {
cmd = Sprintf ("%s %s", browser, url, 2);
() = system (cmd);
}
}
define browse () {
ERROR_BLOCK {
_clear_error ();
call_browser ();
}
call ("browse_url");
}
definekey ("browse", "U", "article");
--
Heikki "Hezu" Kantola, <Heikki.Kantola@IKI.FI>
L�hett�m�ll� mainoksia tai muuta asiatonta s�hk�postia yll� olevaan
osoitteeseen sitoudut maksamaan oikolukupalvelusta FIM500 alkavalta
tunnilta.
Technical Details
Message-ID:
<slrn6fdc1m.bn1.hezu@tuuri.ling.helsinki.fi>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mailReferences:
<slrn6fd30d.9e.dom+usenet@djd.ftech.co.uk>Show Full Headers
Complete Article Headers
Message-ID: <slrn6fdc1m.bn1.hezu@tuuri.ling.helsinki.fi> Subject: Re: URLs in slrn Date: Fri, 27 Feb 1998 00:00:00 +0000 From: hezu@iki.fi (Heikki Kantola) References: <slrn6fd30d.9e.dom+usenet@djd.ftech.co.uk> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail X-Deja-AN: 329366159 Content-Transfer-Encoding: 8bit Mime-Version: 1.0 Mail-Copies-To: never Content-Type: text/plain; charset=iso-8859-1 Organization: Department of General Wizardry, Unseen University, Ankh-Morpork Newsgroups: news.software.readers