From: Richard Stallman <rms@gnu.org>
To: "Lennart Borgman (gmail)" <lennart.borgman@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: add-hook and lambda functions
Date: Sat, 31 Mar 2007 03:20:04 -0400 [thread overview]
Message-ID: <E1HXXsa-0001FX-V1@fencepost.gnu.org> (raw)
In-Reply-To: <460D7012.6010608@gmail.com> (lennart.borgman@gmail.com)
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.
next prev parent reply other threads:[~2007-03-31 7:20 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 [this message]
2007-03-31 18:33 ` Chong Yidong
2007-04-01 0:14 ` Lennart Borgman (gmail)
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=E1HXXsa-0001FX-V1@fencepost.gnu.org \
--to=rms@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=lennart.borgman@gmail.com \
/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.