[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Defining keys in derived modes
From: |
Johan Bockgård |
Subject: |
Re: Defining keys in derived modes |
Date: |
Wed, 28 Feb 2007 18:51:03 +0100 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.93 (gnu/linux) |
"Lennart Borgman (gmail)" <address@hidden> writes:
> (define-derived-mode nxhtml-part-mode nxhtml-mode "nXhtmlPart" [...]
>
> (defvar nxhtml-part-mode-map [...]
>
> I would expect it to also contain the definition of C-c t, but it
> does not. Should it behave this way?
-- Special Form: defvar symbol [value [doc-string]]
[...]
If SYMBOL is void and VALUE is specified, `defvar' evaluates it
and sets SYMBOL to the result. But if SYMBOL already has a value
(i.e., it is not void), VALUE is not even evaluated, and SYMBOL's
value remains unchanged.
--
Johan Bockgård