all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Lennart Borgman (gmail)" <lennart.borgman@gmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Emacs Devel <emacs-devel@gnu.org>
Subject: Re: Sparse key maps garbage?
Date: Sun, 31 Aug 2008 22:09:54 +0200	[thread overview]
Message-ID: <48BAFA92.5040201@gmail.com> (raw)
In-Reply-To: <jwviqth59px.fsf-monnier+emacs@gnu.org>

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	other threads:[~2008-08-31 20:09 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-30 23:44 Sparse key maps garbage? Lennart Borgman (gmail)
2008-08-31  6:18 ` Stefan Monnier
2008-08-31 12:17   ` Lennart Borgman (gmail)
2008-08-31 12:55     ` Stefan Monnier
2008-08-31 13:05       ` Lennart Borgman (gmail)
2008-08-31 18:19         ` Stefan Monnier
2008-08-31 20:09           ` Lennart Borgman (gmail) [this message]
2008-09-01  3:00             ` Stefan Monnier
2008-09-01  7:34               ` Lennart Borgman (gmail)
2008-09-01 18:25                 ` Stefan Monnier
2008-09-01 22:28                   ` Lennart Borgman (gmail)

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=48BAFA92.5040201@gmail.com \
    --to=lennart.borgman@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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.