From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: bind buffer-modifying keys to `undefined' in buffers where no modification should occur? Date: Mon, 18 Oct 2004 10:26:35 +0200 Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1098088058 15830 80.91.229.6 (18 Oct 2004 08:27:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 18 Oct 2004 08:27:38 +0000 (UTC) Cc: Emacs-Devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 18 10:27:27 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CJSrW-0004xI-00 for ; Mon, 18 Oct 2004 10:27:27 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CJSyo-0005id-8w for ged-emacs-devel@m.gmane.org; Mon, 18 Oct 2004 04:34:58 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CJSyR-0005iY-IZ for emacs-devel@gnu.org; Mon, 18 Oct 2004 04:34:35 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CJSyP-0005iM-Mr for emacs-devel@gnu.org; Mon, 18 Oct 2004 04:34:33 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CJSyM-0005iJ-N7 for emacs-devel@gnu.org; Mon, 18 Oct 2004 04:34:33 -0400 Original-Received: from [212.88.64.25] (helo=mail-relay.sonofon.dk) by monty-python.gnu.org with smtp (Exim 4.34) id 1CJSqh-0006fr-V7 for emacs-devel@gnu.org; Mon, 18 Oct 2004 04:26:36 -0400 Original-Received: (qmail 12388 invoked from network); 18 Oct 2004 08:26:33 -0000 Original-Received: from unknown (HELO kfs-l.imdomain.dk.cua.dk) (213.83.150.2) by 0 with SMTP; 18 Oct 2004 08:26:33 -0000 Original-To: "Drew Adams" In-Reply-To: (Drew Adams's message of "Sun, 17 Oct 2004 12:57:03 -0700") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:28549 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:28549 "Drew Adams" 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: ignore This shows three problems with C-h b: - it should list the actual bindings rather than ... - 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 http://www.cua.dk