unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* add-hook and lambda functions
@ 2007-03-30 20:16 Lennart Borgman (gmail)
  2007-03-30 20:33 ` Thien-Thi Nguyen
  2007-03-31  7:20 ` Richard Stallman
  0 siblings, 2 replies; 7+ messages in thread
From: Lennart Borgman (gmail) @ 2007-03-30 20:16 UTC (permalink / raw)
  To: Emacs Devel

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?

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-04-01 18:35 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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)
2007-04-01  7:45       ` David Kastrup
2007-04-01 18:35         ` Stefan Monnier

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).