[Top][All Lists]

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

add-hook and lambda functions

From: Lennart Borgman (gmail)
Subject: add-hook and lambda functions
Date: Fri, 30 Mar 2007 22:16:18 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20070221 Thunderbird/ Mnenhy/

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?

reply via email to

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