From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.devel Subject: Re: Will default key bindings spell the death of Emacs? Date: Fri, 30 May 2003 11:29:42 -0600 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <3ED79506.5050604@yahoo.com> References: <3ED67422.7060305@math.ku.dk> <20030529214728.GA24984@gnu.org> <200305300010.h4U0AiNY018227@rum.cs.yale.edu> <84r86hggd8.fsf@lucy.is.informatik.uni-duisburg.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1054316049 13673 80.91.224.249 (30 May 2003 17:34:09 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 30 May 2003 17:34:09 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Fri May 30 19:34:05 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19Lnjh-0003Qr-00 for ; Fri, 30 May 2003 19:32:13 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19Lnyw-0008Ik-00 for ; Fri, 30 May 2003 19:47:58 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19LnkM-0005CT-IV for emacs-devel@quimby.gnus.org; Fri, 30 May 2003 13:32:54 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19Lnjy-0005AF-Tz for emacs-devel@gnu.org; Fri, 30 May 2003 13:32:30 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19Lnjv-00056y-75 for emacs-devel@gnu.org; Fri, 30 May 2003 13:32:29 -0400 Original-Received: from main.gmane.org ([80.91.224.249]) by monty-python.gnu.org with esmtp (Exim 4.20) id 19Lnh6-0004iM-Ps for emacs-devel@gnu.org; Fri, 30 May 2003 13:29:32 -0400 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 19Lney-000347-00 for ; Fri, 30 May 2003 19:27:20 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Received: from news by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 19Lnex-00033x-00 for ; Fri, 30 May 2003 19:27:19 +0200 Original-Lines: 33 Original-X-Complaints-To: usenet@main.gmane.org User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2 X-Accept-Language: en-us X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:14502 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:14502 Kai Großjohann wrote: > "Stefan Monnier" writes: > >>>I do not argue that we should implement MS Windows-like keybindings. I just >>>argue that it should be easyer to change key bindings. >>> >>What exactly are you suggesting to make it easier ? >> > > Remapping the whole keyboard doesn't make sense, but some interface > that reads a key sequence and a function name, and perhaps a map > name, and then does the right thing would be good. (defun read-keymap (prompt &optional default-map) "Read the name of a keymap and return as a symbol. Prompts with PROMPT. By default, return DEFAULT-MAP." (intern (completing-read prompt obarray 'keymapp t nil nil default-map))) (defadvice define-key (before interactive activate) "Read KEY and DEF interactively, plus KEYMAP if a prefix arg is specified \(otherwise default to `global-map'\)." (interactive (list (if current-prefix-arg (read-keymap "Keymap: " 'global-map) global-map) (read-key-sequence "Key: " nil t) (read-command "Command: " 'ignore)))) -- Kevin Rodgers