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: David Kastrup
Subject: Re: add-hook and lambda functions
Date: Sun, 01 Apr 2007 09:45:53 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.96 (gnu/linux)

"Lennart Borgman (gmail)" <address@hidden> writes:

> 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.
>>
>> Done.
>
> Thanks. It was very good to get this one done before the release.

I find it surprising to have turn-off-hideshow without a corresponding
turn-on-hideshow.  Is the latter not expected to be used?  I don't
know hideshow enough to give an educated guess.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum




reply via email to

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