1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-07-06 13:25:10 -04:00
elinks/contrib
M. Levinson 26473f72f5 Python: Give goto_url_hook only one argument, like follow_url_hook.
On Dec 31, 2006, at 11:30am, Kalle Olavi Niemitalo writes:
>src/scripting/python/hooks.c (script_hook_url) calls hooks as
>goto_url_hook(new-url, current-url) and follow_url_hook(new-url).
>It has a comment saying that the current-url parameter exists
>only for compatibility and that the script can instead use
>elinks.current_url().  However, the current-url parameter was
>added in commit 87e27b9b3e and is
>not in ELinks 0.11.2, so any compatibility problems would only
>hit people who have been using 0.12.GIT snapshots.  Can we remove
>the second parameter now before releasing ELinks 0.12pre1?

The decision isn't up to me, but I think this is a good idea. Here's a
patch that would update the documentation and hooks.py, as well as hooks.c.

FYI, if this patch is applied then anyone who's still trying to use a
goto_url_hook that expects a second argument will get a "Browser scripting
error" dialog box that says:

	An error occurred while running a Python script:

	TypeError: goto_url_hook() takes exactly 2 arguments (1 given)
2007-01-01 17:45:36 +02:00
..
conv Remove now obsolete .cvsignore files. 2005-09-15 18:33:20 +02:00
guile Remove now obsolete .cvsignore files. 2005-09-15 18:33:20 +02:00
lua Drop .or from elinks.or.cz. 2005-12-29 04:43:25 +00:00
perl Fix pod2html errors in contrib/perl/hooks.pl 2006-01-10 22:40:13 +01:00
python Python: Give goto_url_hook only one argument, like follow_url_hook. 2007-01-01 17:45:36 +02:00
ruby Lots of updates to hooks.rb 2006-12-04 23:23:12 +01:00
smjs SMJS (user): Add documentation on the available interfaces 2006-11-14 16:13:11 +00:00
vim CONTRIB: Add ftplugin for setting Vim to the ELinks coding style 2006-01-28 05:21:45 +01:00
.gitignore Convert more bits from the .cvsignore files. Now cg-status doesn't list 2005-09-15 18:25:37 +02:00
colws.diff Initial commit of the HEAD branch of the ELinks CVS repository, as of 2005-09-15 15:58:31 +02:00
elinks-vim.diff Initial commit of the HEAD branch of the ELinks CVS repository, as of 2005-09-15 15:58:31 +02:00
elinks.conf Initial commit of the HEAD branch of the ELinks CVS repository, as of 2005-09-15 15:58:31 +02:00
elinks.fortune 6 GB funny 2006-11-28 21:49:35 +01:00
elinks.spec.in I didn't know that the tarball has generated html docs :) 2006-04-29 18:09:23 +02:00
elinks.vim Remove now useless $Id: lines. 2005-10-21 09:14:07 +02:00
grafthistory.sh Drop .or from elinks.or.cz. 2005-12-29 04:43:25 +00:00
js-1.5-rc6a+elinks.patch Initial commit of the HEAD branch of the ELinks CVS repository, as of 2005-09-15 15:58:31 +02:00
keybind-full.conf Initial commit of the HEAD branch of the ELinks CVS repository, as of 2005-09-15 15:58:31 +02:00
keybind.conf Update vi keybindings to match the new action names 2006-05-26 23:48:39 +02:00
links_wps.zip Initial commit of the HEAD branch of the ELinks CVS repository, as of 2005-09-15 15:58:31 +02:00
LinksOS2Icon.zip Initial commit of the HEAD branch of the ELinks CVS repository, as of 2005-09-15 15:58:31 +02:00
README Remove now useless $Id: lines. 2005-10-21 09:14:07 +02:00
TIPS-AND-TRICKS Initial commit of the HEAD branch of the ELinks CVS repository, as of 2005-09-15 15:58:31 +02:00
user.css Render content of CDATA sections with orange2 (in lack of something better) 2005-12-26 19:56:07 +01:00
wipe-out-ssl Initial commit of the HEAD branch of the ELinks CVS repository, as of 2005-09-15 15:58:31 +02:00
wipe-out-ssl.awk Initial commit of the HEAD branch of the ELinks CVS repository, as of 2005-09-15 15:58:31 +02:00

This directory contains unsorted stuff contributed by other people, which is
not incorporated to main ELinks distribution, however may be still interesting
for someone. You will find here i.e. example configuration files or patches,
which weren't (possibly yet) for some reason applied. Note that this stuff is
mostly unmaintained and is not guaranteed to work, apply, compile etc. However,
if you feel like fixing that, no problem.

Files not listed here have description included in their header.

* links_wps.zip - David Mediavilla <davidme@idecnet.com>
	Scripts for OS/2 to create Links icon and assign Links as viewer of
	URLs.

* LinksOS2Icon.zip - Alex Taylor <alex@eddie.cis.uoguelph.ca>
	Links icons for OS/2 in various sizes and color depths

* colws.diff - <ard@waikato.ac.nz>
	Show two spaces after full stops/periods, especially when HTML It
	shouldn't adversely affect web pages.  Two spaces will only appear
	where the HTML contains them.

* elinks[.-]vim* - Jonas Fonseca <fonseca@diku.dk>
	Syntax file for vim so that elinks.conf is highlighted nicely, and
	patch for $VIMRUNTIME/filetype.vim so that elinks.conf is properly
	detected and the elinks syntax is associated to it.