help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "variable [in .emacs] is void"


From: Tim McNamara
Subject: Re: "variable [in .emacs] is void"
Date: 20 Dec 2003 09:29:01 -0600
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

address@hidden 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?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]