[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] Bug Report: org-blocker-hook and org-trigger-hook are name
Re: [Orgmode] Bug Report: org-blocker-hook and org-trigger-hook are named incorrectly
Mon, 30 Nov 2009 15:43:45 +0100
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.
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
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.
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.