emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Idempotency of add-hook wrt lambda expressions


From: Stefan Monnier
Subject: Re: Idempotency of add-hook wrt lambda expressions
Date: Wed, 04 Mar 2009 16:23:56 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (gnu/linux)

> if the code suggested does fix this without any other problems, why not?

Because it's a hack.  So it takes care of 80% of the cases but still
doesn't fix the remaining cases.  Fixing the remaining cases requires
using a symbol, so just use a symbol and get on with your life.
I'd much rather add a patch that complains when you pass a lambda to
add-hook.


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]