Next: URL retrieve, Up: Hooks [Contents][Index]
Add functions to ‘wwe-follow-link-functions’ to do something when a link button is pressed. These can be used to handle URLs that the web browser doesn’t handle. The default functions set for this hook are ‘wwe-follow-link-compose-mail’ which calls ‘compose-mail’ by default (see ‘url-mail-command’ to set the mailer for mailto URLs), ‘wwe-follow-link-ftp’ which calls ‘ange-ftp’, ‘wwe-follow-link-read-news’ which calls ‘url-news’ (see ‘url-news-server’ to set the news server to use), and ‘wwe-follow-link-javascript’ which flashes an error message.
Some other examples for this hook:
Note that this hook is called only when pressing a link button in a WwE buffer. Since the ‘wwe-follow-link-functions’ and ‘wwe-url-retrieve-functions’ hooks overlap somewhat in their functionality, you might find it better to use ‘wwe-url-retrieve-functions’ for most of your extensions.
Each function should take the following arguments:
Functions are called with ‘run-hook-with-args-until-success’, so if no
other function is supposed to run after a certain function, that
function should return t
. Otherwise return nil
. Note also the
order in which functions are called.
Next: URL retrieve, Up: Hooks [Contents][Index]