From: "Lennart Borgman (gmail)" <lennart.borgman@gmail.com>
To: emacs-devel@gnu.org
Subject: Re: Defining keys in derived modes
Date: Wed, 28 Feb 2007 21:58:31 +0100 [thread overview]
Message-ID: <45E5ECF7.1050404@gmail.com> (raw)
In-Reply-To: <yoij649m5fy0.fsf@gamma02.me.chalmers.se>
Johan Bockgård wrote:
> "Lennart Borgman (gmail)" <lennart.borgman@gmail.com> 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 parent reply other threads:[~2007-02-28 20:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-28 9:37 Defining keys in derived modes Lennart Borgman (gmail)
2007-02-28 17:51 ` Johan Bockgård
2007-02-28 20:58 ` Lennart Borgman (gmail) [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=45E5ECF7.1050404@gmail.com \
--to=lennart.borgman@gmail.com \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.