[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Hook vs. list of procedures
From: |
Andy Wingo |
Subject: |
Re: Hook vs. list of procedures |
Date: |
Mon, 09 Jan 2017 00:03:10 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) |
On Thu 15 Dec 2016 11:48, Jan Synáček <address@hidden> writes:
> I've read about hooks in the manual recently and I don't understand
> why they are special. What is the difference between a hook and a
> plain list of procedures? Why do hooks have their own API?
Historical reasons I think. Early Emacs inspired a number of Guile
extension points, and hooks are a thing there. (Hooks are not just a
list of procedures -- they're a settable place as well and a way of
running all of the procedures.) Anyway I agree, nothing to shout about,
and probably something the manual should mention less prominently.
Andy
- Re: Hook vs. list of procedures,
Andy Wingo <=