|
From: | Lennart Borgman (gmail) |
Subject: | Re: Defining keys in derived modes |
Date: | Wed, 28 Feb 2007 21:58:31 +0100 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.9) Gecko/20061207 Thunderbird/1.5.0.9 Mnenhy/0.7.4.666 |
Johan Bockgård wrote:
"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.
Thanks, yes, but I am a bit confused. There is something else going on too, it works defining in that order now, after restarting Emacs. Maybe something I do not understand in the compilation order? (I do not claim to understand anything there at all, I am just referring to my vague picture of it ;-)
[Prev in Thread] | Current Thread | [Next in Thread] |