From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kai Grossjohann Newsgroups: gmane.emacs.devel Subject: Re: Customize key bindings? Date: Fri, 02 Jan 2004 17:11:07 +0100 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <87vfnu1gbo.fsf@emptyhost.emptydomain.de> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1073060671 20136 80.91.224.253 (2 Jan 2004 16:24:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 2 Jan 2004 16:24:31 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Fri Jan 02 17:24:28 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AcS68-00077g-00 for ; Fri, 02 Jan 2004 17:24:28 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1AcS5z-0003t0-00 for ; Fri, 02 Jan 2004 17:24:28 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AcT2V-0006jt-5A for emacs-devel@quimby.gnus.org; Fri, 02 Jan 2004 12:24:47 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AcSzo-0005oI-5L for emacs-devel@gnu.org; Fri, 02 Jan 2004 12:22:00 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AcSqh-00034I-9B for emacs-devel@gnu.org; Fri, 02 Jan 2004 12:13:06 -0500 Original-Received: from [80.91.224.249] (helo=main.gmane.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AcSqW-0002x9-Oh for emacs-devel@gnu.org; Fri, 02 Jan 2004 12:12:24 -0500 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AcRt3-0001jh-00 for ; Fri, 02 Jan 2004 17:10:57 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Received: from sea.gmane.org ([80.91.224.252]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AcRt1-0001jY-00 for ; Fri, 02 Jan 2004 17:10:55 +0100 Original-Received: from news by sea.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AcRt1-0004qH-00 for ; Fri, 02 Jan 2004 17:10:55 +0100 Original-Lines: 29 Original-X-Complaints-To: usenet@sea.gmane.org User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.2 (gnu/linux) Cancel-Lock: sha1:frL6TZRN5o2jy9Y4OTl9vtLWvC8= X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:18959 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:18959 Simon Josefsson writes: > The custom buffer could look like: > > [INS] [DEL] Key: ... [READ KEY] > Function: compile... > > Where the '...' and 'compile...' are the current string input > fields, [INS]/[DEL] are the alist buttons, and [READ KEY] is a new > button users can press that read a key interactively, much like C-h k > or similar. Advanced users can still enter the key binding using the > string input field. > > There is one complication though -- imagine if the user wants to bind > 'C-c x y z' to something, effectively creating sub-keymaps. Should > this be possible? How? I'm leaning towards not supporting it. The > problem is to find out when the key pressed by the user "ends". It is > easier to only allow the user to only add simple key bindings to > existing keymaps. When I read your description of the interface, I thought users were supposed to hit [READ KEY], then type C-c, then [READ KEY], then x, then [READ KEY], then y, and [READ KEY] and z, in order to bind the key (sequence) C-c x y z. So I was surprised that you thought that there is a problem with multi-key sequences ;-) Kai