emacs-devel
[Top][All Lists]
Advanced

[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 22:09:54 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666

Stefan Monnier wrote:
>>> Depends how you define "un define a key".  Binding it to nil is such
>>> a way.  Binding it to `undefined' is another.  Removing the binding from
>>> the keymap is yet another (one that does not come with a ready-to-use
>>> function for it).
> 
>> I am thinking of the last case. Shouldn't there be one for this case?
>> Using exactly the same parameters as define-key (minus the binding)?
> 
> What do you need it for?


I have no need for it now. It just came to my mind because Xah asked how
to undow a (define-key map [remap ...] ...) binding.

You can do that of course, but having an undefine-key make the data
abstraction (is it called so?) better.




reply via email to

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