From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: gebser@speakeasy.net Newsgroups: gmane.emacs.help Subject: Re: "variable [in .emacs] is void" Date: Sat, 20 Dec 2003 18:58:31 -0500 (EST) Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: Reply-To: gebser@speakeasy.net NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: sea.gmane.org 1071964920 11885 80.91.224.253 (21 Dec 2003 00:02:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 21 Dec 2003 00:02:00 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Dec 21 01:01:56 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AXr2i-0007aK-00 for ; Sun, 21 Dec 2003 01:01:56 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AXrxz-00013U-96 for geh-help-gnu-emacs@m.gmane.org; Sat, 20 Dec 2003 20:01:07 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AXrxe-00012O-6B for help-gnu-emacs@gnu.org; Sat, 20 Dec 2003 20:00:46 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AXrwu-0000qW-0O for help-gnu-emacs@gnu.org; Sat, 20 Dec 2003 20:00:31 -0500 Original-Received: from [216.254.0.203] (helo=mail3.speakeasy.net) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.24) id 1AXrwt-0000qT-M8 for help-gnu-emacs@gnu.org; Sat, 20 Dec 2003 19:59:59 -0500 Original-Received: (qmail 7503 invoked from network); 20 Dec 2003 23:58:31 -0000 Original-Received: from dsl093-011-017.cle1.dsl.speakeasy.net (HELO heidegger.mousecar.net) ([66.93.11.17]) (envelope-sender ) by mail3.speakeasy.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 20 Dec 2003 23:58:31 -0000 Original-To: help-gnu-emacs@gnu.org In-Reply-To: X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:15481 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:15481 At 09:29 (UTC-0600) on 20 Dec 2003 Tim McNamara said: = gebser@speakeasy.net writes: = = > When starting emacs, an error is reported in *Messages*: = > = > Error in init file: Symbol's value as variable is void: = > mail-mode-map = > = > The first place in .emacs where that variable occurs is: = > = > (add-hook 'mail-setup-hook = > '(lambda () = > (substitute-key-definition = > 'next-line 'mail-abbrev-next-line = > mail-mode-map global-map) = > (substitute-key-definition = > 'end-of-buffer 'mail-abbrev-end-of-buffer = > mail-mode-map global-map))) = > = > My guess is that some other code is required prior to this. After = > emacs is loaded and I do "M-x mail", I can evaluate it fine (in = > .emacs). = > = > Any ideas? = = Does that need to be (... mail-mode-map global-map t) or (... nil) as = the case may be? The notes I made in my .emacs for this item tell me that I cut-n-pasted it from the emacs manual.... Yep, just found it in the section "Mail Aliases". That's a naughty manual.