Re: Hook vs. list of procedures

2017-01-09 Thread Mikael Djurfeldt
Can I just add this: First, as Andy already hinted, it's not how a data type is implemented but the operations in its API which defines it. A list does not map directly to a hook. A hook can be implemented as a list, but that is not important. An example of a hook is before-print-hook which is us

Re: Hook vs. list of procedures

2017-01-08 Thread Andy Wingo
On Thu 15 Dec 2016 11:48, Jan Synáček 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

Hook vs. list of procedures

2016-12-15 Thread Jan Synáček
Hi, 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? Cheers, -- Jan Synáček