This is the mail archive of the guile@cygnus.com mailing list for the guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: add-hook!


Mikael Djurfeldt <mdj@nada.kth.se> writes:

>   (define foo (lambda (win) (display win)))
>   (add-hook! window-close-hook foo)
> 
>   (remove-hook! foo)

Sorry, should of course be

  (remove-hook! window-close-hook foo)

/mdj