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

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

Re: Problem: Keymap not working...


From: Kevin Rodgers
Subject: Re: Problem: Keymap not working...
Date: Mon, 07 Feb 2005 13:37:00 -0700
User-agent: Mozilla Thunderbird 0.9 (X11/20041105)

Kevin Rodgers wrote:
> You need to return the keymap from the let form, so that it is bound to
> the variable.  Also, it's not a bug but it is a little confusing to use
> the name of the global variable as the name of the local variable:
>
> (defvar musman-mode-map
>   (let ((map (make-sparse-keymap)))
>     (define-key musman-mode-map "\C-ck" 'musman-Konzert)
> ...
>     (define-key musman-mode-map "\C-c z" 'musman-Zur?ckrufen)
>     map))

Oops, that should be:

(defvar musman-mode-map
  (let ((map (make-sparse-keymap)))
    (define-key map "\C-ck" 'musman-Konzert)
...
    (define-key map "\C-c z" 'musman-Zur?ckrufen)
    map))

--
Kevin Rodgers

reply via email to

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