GNU Info

Info Node: (librep.info)Functions As Hooks

(librep.info)Functions As Hooks


Next: Normal Hooks Up: Hooks
Enter node , (file) or (file)node

Functions As Hooks
------------------

   Some hooks only allow a single piece of code to be hooked in.
Usually a normally-undefined function is used; to install your hook
defined a function with the name of the hook. When the hook is to be
evaluated the function is called.

   Generally the name of the hook's function will end in `-function'.

   An alternative scheme is to use a variable to store the hook, its
value should be the function to call.


automatically generated by info2www version 1.2.2.9