Hi Ryan,
yes, we have some non-standard names here, but often these standards
cam after the names were used for quite some time, so I am not going
to change them.
- Carsten
On Nov 27, 2009, at 9:28 PM, Ryan C. Thompson wrote:
I believe it is the emacs convention to distinguish between hooks
that take no arguments and hooks that do. Since org-blocker-hook and
org-trigger-hook pass an argument to their functions, they should
actually be called org-blocker-functions and org-trigger-functions.
From the elisp info, 23.1 Hooks:
If the hook variable's name does not end with `-hook', that
indicates it is probably an "abnormal hook". That means the hook
functions are called with arguments, or their return values are used
in
some way. The hook's documentation says how the functions are called.
You can use `add-hook' to add a function to an abnormal hook, but you
must write the function to follow the hook's calling convention.
By convention, abnormal hook names end in `-functions' or `-hooks'.
If the variable's name ends in `-function', then its value is just a
single function, not a list of functions.
-Ryan
_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
- Carsten
_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode