Next: Major and minor modes, Previous: Change HTML source, Up: Hooks [Contents][Index]
The hook ‘wwe-page-ready-functions’ is run when a page is ready to be displayed. The function ‘wwe-show-page-ready’ is set to the hook by default.
Some examples of what to run on ‘wwe-page-ready-functions’:
The functions should take the following two arguments:
Make sure to use ‘with-current-buffer’ if you need things done to or based on the page buffer.
Note that the point might not be at the beginning of the buffer, for example when there’s a #target (section) in the URL, so if you’re searching for something in the buffer you’ll want to use:
(save-excursion (with-current-buffer buffer (goto-char (point-min))