🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.help
Article #189337

key mapping and commandp error

#189337
From: Erik Hennum
Date: Wed, 20 Feb 1991 00:11
20 lines
1266 bytes
I am a writer (not a Lisp programmer) trying to take greater 
advantage of the glory that is emacs.  I'm trying to bind 
keys to commands.  For example:

    (global-set-key "\M-p" '(move-to-window-line 0))

Emacs reads the previous line in my .emacs without complaint.
When I press Meta-p, however, I get:

    Wrong type argument: commandp, (move-to-window-line 0)

I'm getting the same problem with shell-command.

Where am I going amiss?


Thanks, 
-- 
Erik Hennum                       at Informix, which has thoughts all its own
{uunet,pyramid}!infmx!erik                                       415/926-6463
Technical Details
Message-ID: <1991Feb20.001156.21101@informix.com>
Path: arc1-ca.pugleaf.net!gmdzi!unido!fauern!ira.uka.de!sol.ctr.columbia.edu!zaphod.mps.ohio-state.edu!sdd.hp.com!hplabs!nsc!pyramid!infmx!erik

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 103b8b,38da68d138288cbd,start
X-Google-Attributes: gid103b8b,public
X-Google-ArrivalTime: 1991-02-27 17:37:53 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!fauern!ira.uka.de!sol.ctr.columbia.edu!zaphod.mps.ohio-state.edu!sdd.hp.com!hplabs!nsc!pyramid!infmx!erik
From: erik@infmx.informix.com (Erik Hennum)
Newsgroups: gnu.emacs.help
Subject: key mapping and commandp error
Message-ID: <1991Feb20.001156.21101@informix.com>
Date: 20 Feb 91 00:11:56 GMT
Sender: news@informix.com (Usenet News)
Distribution: gnu
Organization: Informix Software, Inc.
Lines: 20
Originator: erik@godzilla