mirror of
https://github.com/rkd77/elinks.git
synced 2025-02-02 15:09:23 -05:00
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 87e27b9b3e47671484c7eb77d61b75fffc89624f 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)
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.