From: Helmut Eller <eller.helmut@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Terminology change/nameing conventions?
Date: Sat, 29 May 2010 08:21:50 +0200 [thread overview]
Message-ID: <m2pr0fdy81.fsf@gmail.com> (raw)
In-Reply-To: 87pr0fledo.fsf@rapttech.com.au
* Tim X [2010-05-29 02:50+0200] writes:
> I was recently doing some work with elisp and noticed what appears to be
> differences in conventions regarding nameing.
>
> In general, I've always thought of the term 'hook' as indicating a
> special variable that you could add function names to and that all those
> functions would be executed when the hook runs. However, I've noticed
> that some modes, e.g. comint mode, uses the term -functions i.e.
> comint-output-functions. You use add-hook to add new functions to this
> variable.
>
> So, my question is why isn't this just comint-output-hook?
This is described in the Elisp manual:
http://www.gnu.org/software/emacs/manual/html_node/emacs/Hooks.html
There are "normal hooks" by convention ending with -hook and "non-normal
hooks" often ending with -hooks or -functions. "Normal hooks" don't
take arguments and the result is not used.
Helmut
prev parent reply other threads:[~2010-05-29 6:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <87pr0fledo.fsf@rapttech.com.au>
2010-05-29 3:10 ` Terminology change/nameing conventions? Barry Margolin
2010-05-29 6:21 ` Helmut Eller [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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2pr0fdy81.fsf@gmail.com \
--to=eller.helmut@gmail.com \
--cc=help-gnu-emacs@gnu.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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.