Next: URL callback, Previous: Follow links, Up: Hooks [Contents][Index]
Add functions to ‘wwe-url-retrieve-functions’ to do something based on the requested URL such as call ‘wwe-url-retrieve’ with an altered URL or use a different browser with the requested URL.
Some examples of what to run on ‘wwe-url-retrieve-functions’:
You can use a combination of retrieve and callback hooks to make powerful plugins.
Each function should take the following arguments:
t
or a file name/path, the page is to be saved without displaying; if 'wait
, the page isn’t to be saved (no file prompt comes) until a hook in ‘wwe-url-callback-functions’ changes the value of SAVE.
Functions are called with ‘run-hook-with-args-until-success’, so if no
other function is supposed to run after a certain function did its
job, that function should return t
. Otherwise return nil
. Note
also the order in which functions are called.