Re: Remove current_url parameter of Python goto_url_hook?

Kalle Olavi Niemitalo <[email protected]>
Newsgroups gmane.comp.web.links
Message-ID <[email protected]>
"M. Levinson" <[email protected]> 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.

_______________________________________________
elinks-dev mailing list
[email protected]
http://linuxfromscratch.org/mailman/listinfo/elinks-dev
signature.asc (application/pgp-signature, 188 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFFnV2vHm9IGt60eMgRAso1AJ9Da+SDuL6lrkJi8y4Ll82XRDV4igCgruaK
ctkQruWRrtZ5y4NbR1I6xGQ=
=PXvO
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.