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: Sun, 21 Dec 2003 14:28:52 -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=ISO-8859-1 Content-Transfer-Encoding: 8BIT X-Trace: sea.gmane.org 1072035031 8581 80.91.224.253 (21 Dec 2003 19:30:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 21 Dec 2003 19:30:31 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Dec 21 20:30:28 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 1AY9HY-0001Mu-00 for ; Sun, 21 Dec 2003 20:30:28 +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 1AYAEg-0007BK-0y for geh-help-gnu-emacs@m.gmane.org; Sun, 21 Dec 2003 15:31:34 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AYAE8-00079v-Vt for help-gnu-emacs@gnu.org; Sun, 21 Dec 2003 15:31:00 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AYADX-00073G-Kg for help-gnu-emacs@gnu.org; Sun, 21 Dec 2003 15:30:54 -0500 Original-Received: from [216.254.0.201] (helo=mail1.speakeasy.net) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.24) id 1AYADX-000731-9b for help-gnu-emacs@gnu.org; Sun, 21 Dec 2003 15:30:23 -0500 Original-Received: (qmail 28655 invoked from network); 21 Dec 2003 19:28:54 -0000 Original-Received: from dsl093-011-017.cle1.dsl.speakeasy.net (HELO heidegger.mousecar.net) ([66.93.11.17]) (envelope-sender ) by mail1.speakeasy.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 21 Dec 2003 19:28:54 -0000 Original-To: Karl =?iso-8859-1?q?Pfl=E4sterer?= 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:15491 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:15491 At 18:18 (UTC+0100) on Sun, 21 Dec 2003 Karl Pflästerer said: = An unnamed person wrote: = = > At 17:24 (UTC+0100) on Sat, 20 Dec 2003 Karl Pflästerer said: = = > = Try to wrap your code in an = > = = > = (eval-after-load "sendmail" = > = '(substitute-key-definition ... = > = )) = > = = = > Did this, but I'm still getting an error in *Messages*, albeit a = > different one: = = > Error in init file: Symbol's value as variable is void: mail-mode-map = = Post the code you wrote in your .emacs (c&p). (eval-after-load "sendmail" (add-hook 'mail-setup-hook '(substitute-key-definition '(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))))) = = > You're correct, though. sendmail.el is the place where it's defined: = = > (defvar mail-mode-map nil) = = You can find that yourself; just do: `C-h v mail-mode-map RET' (or any = other variable you're interested in). Sometimes that works with this variable, other times it doesn't. My almost educated guess is that it depends on whether or not I've first opened a mail session (M-x mail). tnx some more, ken