[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: "variable [in .emacs] is void"
From: |
gebser |
Subject: |
Re: "variable [in .emacs] is void" |
Date: |
Sat, 20 Dec 2003 17:42:20 -0500 (EST) |
At 17:24 (UTC+0100) on Sat, 20 Dec 2003 Karl Pflästerer said:
= An unnamed person wrote:
=
= > When starting emacs, an error is reported in *Messages*:
=
= > Error in init file: Symbol's value as variable is void: mail-mode-map
=
= `mail-mode-map' is defined in sendmail.el.
=
= > The first place in .emacs where that variable occurs is:
=
= [...]
= > 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?
=
= 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
You're correct, though. sendmail.el is the place where it's defined:
(defvar mail-mode-map nil)
Anything else I could try?
- "variable [in .emacs] is void", gebser, 2003/12/20
- Re: "variable [in .emacs] is void", Tim McNamara, 2003/12/20
- Re: "variable [in .emacs] is void", Karl Pflästerer, 2003/12/20
- Re: "variable [in .emacs] is void",
gebser <=
- Re: "variable [in .emacs] is void", Karl Pflästerer, 2003/12/21
- Re: "variable [in .emacs] is void", Karl Pflästerer, 2003/12/21
- Re: "variable [in .emacs] is void", Karl Pflästerer, 2003/12/22
- Re: "variable [in .emacs] is void", Kevin Rodgers, 2003/12/22
- Re: "variable [in .emacs] is void", Kevin Rodgers, 2003/12/23