From: Carsten Dominik <carsten.dominik@gmail.com>
To: "Ryan C. Thompson" <rct@thompsonclan.org>
Cc: org-mode Mailinglist <emacs-orgmode@gnu.org>
Subject: Re: Bug Report: org-blocker-hook and org-trigger-hook are named incorrectly
Date: Mon, 30 Nov 2009 15:43:45 +0100 [thread overview]
Message-ID: <F4A9BA35-7CC5-4A41-89C9-3616DBFC0DBD@gmail.com> (raw)
In-Reply-To: <4B10365F.4050404@thompsonclan.org>
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
prev parent reply other threads:[~2009-11-30 14:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-27 20:28 Bug Report: org-blocker-hook and org-trigger-hook are named incorrectly Ryan C. Thompson
2009-11-30 14:43 ` Carsten Dominik [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=F4A9BA35-7CC5-4A41-89C9-3616DBFC0DBD@gmail.com \
--to=carsten.dominik@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=rct@thompsonclan.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).