From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: bind buffer-modifying keys to `undefined' in buffers where no modification should occur? Date: Mon, 18 Oct 2004 09:58:11 -0700 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" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1098124556 25686 80.91.229.6 (18 Oct 2004 18:35:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 18 Oct 2004 18:35:56 +0000 (UTC) Cc: Emacs-Devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 18 20:35:40 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 1CJcM7-0003B0-00 for ; Mon, 18 Oct 2004 20:35:39 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CJcTQ-0002DP-2w for ged-emacs-devel@m.gmane.org; Mon, 18 Oct 2004 14:43:12 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CJcTG-0002CJ-LG for emacs-devel@gnu.org; Mon, 18 Oct 2004 14:43:02 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CJcTF-0002Bx-Vv for emacs-devel@gnu.org; Mon, 18 Oct 2004 14:43:02 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CJcTF-0002Ba-Od for emacs-devel@gnu.org; Mon, 18 Oct 2004 14:43:01 -0400 Original-Received: from [141.146.126.228] (helo=agminet01.oracle.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CJcL8-00079v-Rj for emacs-devel@gnu.org; Mon, 18 Oct 2004 14:34:39 -0400 Original-Received: from rgmgw1.us.oracle.com (rgmgw1.us.oracle.com [138.1.191.10]) by agminet01.oracle.com (Switch-3.1.4/Switch-3.1.0) with ESMTP id i9IIKZk6004770; Mon, 18 Oct 2004 11:34:24 -0700 Original-Received: from rgmgw1.us.oracle.com (localhost [127.0.0.1]) by rgmgw1.us.oracle.com (Switch-3.1.4/Switch-3.1.0) with ESMTP id i9IGwC1M006784; Mon, 18 Oct 2004 10:58:12 -0600 Original-Received: from dradamslap (dradams-lap.us.oracle.com [130.35.177.126]) by rgmgw1.us.oracle.com (Switch-3.1.4/Switch-3.1.0) with SMTP id i9IGwBMG006772; Mon, 18 Oct 2004 10:58:12 -0600 Original-To: "Kim F. Storm" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 In-Reply-To: Importance: Normal 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:28574 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:28574 That's just what I was suggesting (though I used `undefined' instead of `ignore') - for all keys bound to buffer-modifying commands. I don't think that's really the same as unbinding those keys, though. (But it's OK by me.) -----Original Message-----From: Kim F. Storm "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).