From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Alex Schroeder Newsgroups: gmane.emacs.devel Subject: Re: Customizing key bindings Date: Sat, 07 Sep 2002 15:48:27 +0200 Sender: emacs-devel-admin@gnu.org Message-ID: <87heh1kj10.fsf_-_@emacswiki.org> References: <200208271621.g7RGLNm30516@rum.cs.yale.edu> <5xhehfe3aj.fsf@kfs2.cua.dk> <874rdfaytt.fsf@pot.cnuce.cnr.it> <5xvg5sh06u.fsf@kfs2.cua.dk> <20020830235528.GA13207@gnu.org> <87ofbji88u.fsf@emacswiki.org> <87sn0scb0b.fsf@emacswiki.org> <87bs7ama8g.fsf@emacswiki.org> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1031406487 16033 127.0.0.1 (7 Sep 2002 13:48:07 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 7 Sep 2002 13:48:07 +0000 (UTC) Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17nfwT-0004AQ-00 for ; Sat, 07 Sep 2002 15:48:05 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17ngVS-0001C1-00 for ; Sat, 07 Sep 2002 16:24:14 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17nfwR-0005Wr-00; Sat, 07 Sep 2002 09:48:03 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17nfud-0005Io-00 for emacs-devel@gnu.org; Sat, 07 Sep 2002 09:46:11 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17nfub-0005IW-00 for emacs-devel@gnu.org; Sat, 07 Sep 2002 09:46:10 -0400 Original-Received: from relay01.cablecom.net ([62.2.33.101]) by monty-python.gnu.org with esmtp (Exim 4.10) id 17nfua-0005IS-00 for emacs-devel@gnu.org; Sat, 07 Sep 2002 09:46:08 -0400 Original-Received: from smtp.swissonline.ch (mail-4.swissonline.ch [62.2.32.85]) by relay01.cablecom.net (8.12.5/8.12.5/SOL/AWF/MXRELAY/20020820) with ESMTP id g87Dk720037143 for ; Sat, 7 Sep 2002 15:46:07 +0200 (CEST) (envelope-from alex@emacswiki.org) Original-Received: from confusibombus (dclient217-162-239-98.hispeed.ch [217.162.239.98]) by smtp.swissonline.ch (8.11.6/8.11.6/SMTPSOL/AWF/2002040101) with ESMTP id g87Dk7F20886 for ; Sat, 7 Sep 2002 15:46:07 +0200 (MEST) Original-Received: from alex by confusibombus with local (Exim 3.35 #1 (Debian)) id 17nfwp-00007U-00 for ; Sat, 07 Sep 2002 15:48:27 +0200 Original-To: emacs-devel@gnu.org X-Face: ^BC$`[IcggstLPyen&dqF+b2'zyK#r.mU*'Nms}@&4zw%SJ#5!/7SMVjBS7'lb;QK)|IPU5U'o1'522W4TyzB3Ab*IBo^iw]l4|kUbdZuUDO6=Um-.4IzhNiV'B"@K#jy_(wW|Zbk[34flKY^|PrQ?$u2\fKg^]AY>wOX#H32i In-Reply-To: (Per Abrahamsen's message of "Sat, 07 Sep 2002 14:28:28 +0200") Original-Lines: 32 User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2.90 (i686-pc-linux-gnu) Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:7689 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:7689 Per Abrahamsen writes: > Alex Schroeder writes: > >> I think this does the right thing, now -- it modifies the keymap >> directly. It can restore bindings because it keeps a list of settings >> it shadows. Currently the documentation shown in the customize buffer >> is from the global map, this still needs fixing. See the FIXME >> tags... :) > > Well, this is the 90% solution, where removing a custom bindings will > work in the common case that it hasn't been changed through Lisp since > it was added. Right. Now we can change define-key to also do the necessary book-keeping, updating the shadowed bindings... Or something like that, if somebody wants to really fix this. > >> :type '(repeat (group key-sequence command)) > > I think you should use the key-binding widget, as we might want to > allow key-sequence and command to talk to each other later. > E.g. implement the feature RMS suggested, that entering a key-sequence > should initialize the command field, if not already set. key-binding widget? I must have missed that. Will look at the old mails. Unfortunately I already have 17 messages in this thread marked as important, so it gets more difficult to put it all into context, hehe. Alex.