emacs-devel
[Top][All Lists]
Advanced

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

Re: add-hook and lambda functions


From: Richard Stallman
Subject: Re: add-hook and lambda functions
Date: Sat, 31 Mar 2007 03:20:04 -0400

    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]