[Top][All Lists]

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

Re: add-hook and lambda functions

From: Chong Yidong
Subject: Re: add-hook and lambda functions
Date: Sat, 31 Mar 2007 14:33:17 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.96 (gnu/linux)

Richard Stallman <address@hidden> writes:

>     In hs-minor-mode a lambda function is added to the hook:
>        (add-hook 'change-major-mode-hook
>            (lambda () (hs-minor-mode -1))
>            nil t)
>     Using a lambda function makes it a bit cumbersome to remove this hook if 
>     you want to. I would therefor prefer if named functions where used 
>     instead. Could this please be changed?
> I agree.
> There is no need to systematically change all such places,
> at least not now; but if any of them actually gets in someone's way,
> let's change it.  Apparently this one did.


reply via email to

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