From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Tim McNamara Newsgroups: gmane.emacs.help Subject: Re: "variable [in .emacs] is void" Date: 20 Dec 2003 09:29:01 -0600 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1071935127 5768 80.91.224.253 (20 Dec 2003 15:45:27 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 20 Dec 2003 15:45:27 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Dec 20 16:45:23 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 1AXjIA-0006ZE-00 for ; Sat, 20 Dec 2003 16:45:23 +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 1AXkEa-0003rG-Ib for geh-help-gnu-emacs@m.gmane.org; Sat, 20 Dec 2003 11:45:44 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!newspeer.monmouth.com!news-out.visi.com!petbe.visi.com!gemini.bitstream.net.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 Original-Lines: 26 Original-NNTP-Posting-Host: 5e57a098.news.bitstream.net Original-X-Trace: 1071934148 gemini.bitstream.net 1100 216.243.177.155 Original-X-Complaints-To: abuse@bitstream.net Original-Xref: shelby.stanford.edu gnu.emacs.help:119533 Original-To: help-gnu-emacs@gnu.org 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:15473 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:15473 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?