[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [AUCTeX-devel] Hooks for LaTeX-arg-usepackage and TeX-arg-document
From: |
Tassilo Horn |
Subject: |
Re: [AUCTeX-devel] Hooks for LaTeX-arg-usepackage and TeX-arg-document |
Date: |
Mon, 10 Jun 2013 12:38:17 +0200 |
User-agent: |
Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux) |
"Nicolas Richard" <address@hidden> writes:
>> Hook variables are usually called `*-hook' (singular) or
>> `*-functions'. I think one uses `hook' when it's meant for users to
>> be customized, and `functions' when it's more some internal
>> implementation detail.
>
> Variables ending in -hook contain functions called with no argument
> and whose return value is discarded. All other hooks end in
> -functions. See (info "(elisp) Standard Hooks")
Ah, that makes sense. But it's not completely kept up with even in
emacs itself. At least you can find quite some occurences of:
(run-hook-with-args '*-hook ...)
Bye,
Tassilo