[elinks-dev] Remove current_url parameter of Python goto_url_hook?
Kalle Olavi Niemitalo
kon at iki.fi
Thu Jan 4 12:03:42 PST 2007
"M. Levinson" <levinsm at users.sourceforge.net> writes:
> I don't expect this to be an issue. Instead of adding new arguments to the
> hooks, it will be simpler and more flexible to make any additional data
> available to them by extending the API of the embedded interpreter's builtin
> elinks module. In other words, rather than adding a new argument "foo" to
> any given hook, Python users should be provided with a new function
> "elinks.get_foo()" that can then be called from whichever hooks they want.
That is fine for getting information about the current status
of ELinks. However, I've been thinking of adding radio buttons
"Open in: (o) this tab, ( ) new tab, ( ) new window" to the
"Go to URL" dialog, perhaps even with a "[ ] reload" check box.
If we wanted to pass this data to the goto_url_hook, I think it
would be a bit unnatural to add an elinks.get_target function for
that purpose. What would it do if called from outside the hook?
On the other hand, perhaps there is no reason to tell the hook
how ELinks will open the result; perhaps there should even be an
elinks.set_target function for the hook; or perhaps we'll later
add a goto_url_hook2 that gets more arguments and by default just
calls goto_url_hook with the URL.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 188 bytes
Desc: not available
More information about the elinks-dev