all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: storm@cua.dk (Kim F. Storm)
Cc: Emacs-Devel <emacs-devel@gnu.org>
Subject: Re: bind buffer-modifying keys to `undefined' in buffers where no modification should occur?
Date: Mon, 18 Oct 2004 10:26:35 +0200	[thread overview]
Message-ID: <m3brf0ig90.fsf@kfs-l.imdomain.dk> (raw)
In-Reply-To: <MEEKKIABFKKDFJMPIOEBGEPLCGAA.drew.adams@oracle.com> (Drew Adams's message of "Sun, 17 Oct 2004 12:57:03 -0700")

"Drew Adams" <drew.adams@oracle.com> writes:

> can you effectively
> unbind a (global) key sequence for a given mode?]

(define-key local-map [remap self-insert-command] 'ignore)


However C-h b doesn't show the effect of this in a very sensible
manner:

<remap> <self-insert-command>   ignore


This shows three problems with C-h b:

- it should list the actual bindings rather than <remap> ...

- it should not list the unmapped bindings

- it should skip bindings to 'ignore' (effectively omitting
  all bindings that don't have any effect).

-- 
Kim F. Storm <storm@cua.dk> http://www.cua.dk

  reply	other threads:[~2004-10-18  8:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-17 19:57 bind buffer-modifying keys to `undefined' in buffers where no modification should occur? Drew Adams
2004-10-18  8:26 ` Kim F. Storm [this message]
2004-10-18 16:58   ` Drew Adams
2004-10-18 13:59 ` Richard Stallman

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=m3brf0ig90.fsf@kfs-l.imdomain.dk \
    --to=storm@cua.dk \
    --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.