🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.help
Article #2179

keymap defs -- using lambda expressions

#2179
From: Thien-Thi Nguyen
Date: Sun, 24 Jan 1993 20:28
7 lines
643 bytes
(define-key some-mode-map '(lambda () (kill-buffer (current-buffer))))

doesn't work.  could someone explain why not and also suggest the
correct way to do this (w/o having to use a defun)?

thanks,
Thi
Technical Details
Message-ID: <hyk1H?8o3c@atlantis.psu.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!europa.asd.contel.com!howland.reston.ans.net!wupost!psuvax1!atlantis.psu.edu!news

Show Full Headers
Complete Article Headers
Newsgroups: gnu.emacs.help
Path: arc1-ca.pugleaf.net!sparky!uunet!europa.asd.contel.com!howland.reston.ans.net!wupost!psuvax1!atlantis.psu.edu!news
From: TTN@ECL.PSU.EDU (Thien-Thi Nguyen)
Subject: keymap defs -- using lambda expressions
Message-ID: <hyk1H?8o3c@atlantis.psu.edu>
Sender: news@atlantis.psu.edu (Usenet)
Organization: Penn State Engineering Computer Lab
Date: Sun, 24 Jan 93 20:28:49 GMT
X-News-Reader: VMS NEWS 1.24
Lines: 7