[Top][All Lists]

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

Re: Sparse key maps garbage?

From: Lennart Borgman (gmail)
Subject: Re: Sparse key maps garbage?
Date: Sun, 31 Aug 2008 14:17:37 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20071031 Thunderbird/ Mnenhy/

Stefan Monnier wrote:
>> If you do
>>  (defvar my-sparse-map (make-sparse-keymap))
>>  (define-key my-sparse-map [f4] nil)
>> then there will be an entry with f4 in my-sparse-keymap. I do not think
>> that is used for anything. Is it? Should it be there?
> Actually, IIRC it's (been) used at some places to create a place holder
> in the keymap which is later on replaced with the actual binding.
> But I do wonder why you care,

I was looking a bit at how to undefine a key, for example at
local-unset-key. So what I really wondered was how do you undefine a
key? Is there a standard way to do that?

> PS: Some other issues have to do with the delicate treatment of nil
> bindings w.r.t inheritance: a nil binding will hide any other binding in
> the parent(s).

reply via email to

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