From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: bind commands that change buffer contents to `undefined' when read-only? Date: Sun, 23 Sep 2007 19:02:40 -0700 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1190599362 28096 80.91.229.12 (24 Sep 2007 02:02:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 24 Sep 2007 02:02:42 +0000 (UTC) Cc: emacs-devel@gnu.org To: "Stefan Monnier" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 24 04:02:38 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IZdHQ-0003Sm-Qg for ged-emacs-devel@m.gmane.org; Mon, 24 Sep 2007 04:02:37 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IZdHO-0006zV-CB for ged-emacs-devel@m.gmane.org; Sun, 23 Sep 2007 22:02:34 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IZdHM-0006zE-4k for emacs-devel@gnu.org; Sun, 23 Sep 2007 22:02:32 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IZdHK-0006yu-JE for emacs-devel@gnu.org; Sun, 23 Sep 2007 22:02:31 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IZdHK-0006yr-FI for emacs-devel@gnu.org; Sun, 23 Sep 2007 22:02:30 -0400 Original-Received: from agminet01.oracle.com ([141.146.126.228]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IZdHK-0000sb-5C for emacs-devel@gnu.org; Sun, 23 Sep 2007 22:02:30 -0400 Original-Received: from rgmgw2.us.oracle.com (rgmgw2.us.oracle.com [138.1.186.111]) by agminet01.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id l8O22Roa029411; Sun, 23 Sep 2007 21:02:27 -0500 Original-Received: from acsmt351.oracle.com (acsmt351.oracle.com [141.146.40.151]) by rgmgw2.us.oracle.com (Switch-3.2.4/Switch-3.2.4) with ESMTP id l8O22Qec020078; Sun, 23 Sep 2007 20:02:26 -0600 Original-Received: from dhcp-amer-whq-csvpn-gw3-141-144-80-220.vpn.oracle.com by acsmt350.oracle.com with ESMTP id 3236806901190599335; Sun, 23 Sep 2007 19:02:15 -0700 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138 X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-Detected-Kernel: Linux 2.4-2.6 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: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:79657 Archived-At: > > 2. It doesn't really help users see that such keys are, in > > effect, available for binding in such read-only contexts. > > That was a main motivation behind my > > *All* keys are available for binding. The only thing that really > matters in this respect is whether the user uses the predefined > binding or not. If not, then the key is available, regardless of > whether the associated command is useless or not. Of course. I, for one, am more likely to choose a key binding as "available" if it is undefined - that's what I meant. But yes, you are strictly correct: all keys are available for rebinding. And yes, being bound to command `undefined' is not strictly being undefined either... But it indicates that the current mode/buffer/map has declared no a priori use for that key. That's a good indication to a user that s?he will miss nothing by binding that key. I'd say it's practically an invitation.