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: Emacs Devel <emacs-devel@gnu.org>
Subject: add-hook and lambda functions
Date: Fri, 30 Mar 2007 22:16:18 +0200	[thread overview]
Message-ID: <460D7012.6010608@gmail.com> (raw)

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	other threads:[~2007-03-30 20:16 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-30 20:16 Lennart Borgman (gmail) [this message]
2007-03-30 20:33 ` add-hook and lambda functions 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)
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=460D7012.6010608@gmail.com \
    --to=lennart.borgman@gmail.com \
    --cc=emacs-devel@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.