From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim Johnson Newsgroups: gmane.emacs.help Subject: easy-menu: wrong-type-argument keymapp Date: Thu, 26 May 2005 15:31:05 -0800 Message-ID: <20050526233105.GQ2494@johnsons-web.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1117151267 1677 80.91.229.2 (26 May 2005 23:47:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 26 May 2005 23:47:47 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri May 27 01:47:40 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DbS3h-0000RT-NO for geh-help-gnu-emacs@m.gmane.org; Fri, 27 May 2005 01:46:38 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DbS7r-0007ab-BD for geh-help-gnu-emacs@m.gmane.org; Thu, 26 May 2005 19:50:55 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DbS66-0006zK-HT for help-gnu-emacs@gnu.org; Thu, 26 May 2005 19:49:06 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DbS5z-0006vq-Vk for help-gnu-emacs@gnu.org; Thu, 26 May 2005 19:49:01 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DbS5z-0006sX-5L for help-gnu-emacs@gnu.org; Thu, 26 May 2005 19:48:59 -0400 Original-Received: from [208.218.214.44] (helo=ns3.cniweb.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DbRn6-0001ie-QR for help-gnu-emacs@gnu.org; Thu, 26 May 2005 19:29:29 -0400 Original-Received: from linus.johnson.com (rdbck-static-445.palmer.mtaonline.net [64.4.232.191]) by ns3.cniweb.net (8.13.3/8.13.3) with ESMTP id j4QNGRvb006956 for ; Thu, 26 May 2005 19:16:29 -0400 (EDT) Original-Received: from linus.johnson.com (localhost.johnson.com [127.0.0.1]) by linus.johnson.com (8.12.8/8.12.8) with ESMTP id j4QNV6TZ012303 for ; Thu, 26 May 2005 15:31:06 -0800 Original-Received: (from tim@localhost) by linus.johnson.com (8.12.8/8.12.8/Submit) id j4QNV58U012301 for help-gnu-emacs@gnu.org; Thu, 26 May 2005 15:31:05 -0800 Original-To: help-gnu-emacs@gnu.org Mail-Followup-To: Tim Johnson , help-gnu-emacs@gnu.org Content-Disposition: inline User-Agent: Mutt/1.4.2.1i X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:27013 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:27013 :-) Since easy-menu seems to be the topic dejour here's what's teasing my brain today...... The following code works in xemacs, but generates an error message from emacs where this code is in .emacs: (easy-menu-add-item nil '("File") ["Load Desktop" desktop-read t]) ;; and the error message is: (wrong-type-argument keymapp nil) define-key(nil [menu-bar File] ("File" keymap "File")) easy-menu-add-item documentation tells me (I think) that nil defaults to global keymap. Any help would be appreciated. Furthermore, I've taken over a orphaned major mode to which I've added easy-menu code that works in xemacs but not in emacs, so this is a first step in resolving these performances between forks. Cheers tim -- Tim Johnson http://www.alaska-internet-solutions.com