[Top][All Lists]

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

Re: add-hook and lambda functions

From: Lennart Borgman (gmail)
Subject: Re: add-hook and lambda functions
Date: Sun, 01 Apr 2007 02:14:43 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20070221 Thunderbird/ Mnenhy/

Chong Yidong wrote:
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.


Thanks. It was very good to get this one done before the release.

reply via email to

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