all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Lennart Borgman (gmail)" <lennart.borgman@gmail.com>
To: Chong Yidong <cyd@stupidchicken.com>
Cc: rms@gnu.org, emacs-devel@gnu.org
Subject: Re: add-hook and lambda functions
Date: Sun, 01 Apr 2007 02:14:43 +0200	[thread overview]
Message-ID: <460EF973.50406@gmail.com> (raw)
In-Reply-To: <87ps6pgt5e.fsf@stupidchicken.com>

Chong Yidong wrote:
> Richard Stallman <rms@gnu.org> 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.

  reply	other threads:[~2007-04-01  0:14 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-30 20:16 add-hook and lambda functions Lennart Borgman (gmail)
2007-03-30 20:33 ` Thien-Thi Nguyen
2007-03-31  7:20 ` Richard Stallman
2007-03-31 18:33   ` Chong Yidong
2007-04-01  0:14     ` Lennart Borgman (gmail) [this message]
2007-04-01  7:45       ` David Kastrup
2007-04-01 18:35         ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=460EF973.50406@gmail.com \
    --to=lennart.borgman@gmail.com \
    --cc=cyd@stupidchicken.com \
    --cc=emacs-devel@gnu.org \
    --cc=rms@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.