From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14540 invoked from network); 21 Mar 2005 01:37:44 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 21 Mar 2005 01:37:44 -0000 Received: (qmail 72139 invoked from network); 21 Mar 2005 01:37:38 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 21 Mar 2005 01:37:38 -0000 Received: (qmail 28395 invoked by alias); 21 Mar 2005 01:37:30 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8620 Received: (qmail 28381 invoked from network); 21 Mar 2005 01:37:29 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 21 Mar 2005 01:37:29 -0000 Received: (qmail 71212 invoked from network); 21 Mar 2005 01:37:29 -0000 Received: from vms040pub.verizon.net (206.46.252.40) by a.mx.sunsite.dk with SMTP; 21 Mar 2005 01:37:24 -0000 Received: from candle.brasslantern.com ([4.11.1.68]) by vms040.mailsrvcs.net (Sun Java System Messaging Server 6.2 HotFix 0.04 (built Dec 24 2004)) with ESMTPA id <0IDO0090VHUAOF50@vms040.mailsrvcs.net> for zsh-users@sunsite.dk; Sun, 20 Mar 2005 19:37:23 -0600 (CST) Received: from candle.brasslantern.com (IDENT:schaefer@localhost [127.0.0.1]) by candle.brasslantern.com (8.12.11/8.12.11) with ESMTP id j2L1bLnn011543 for ; Sun, 20 Mar 2005 17:37:21 -0800 Received: (from schaefer@localhost) by candle.brasslantern.com (8.12.11/8.12.11/Submit) id j2L1bL1P011542 for zsh-users@sunsite.dk; Sun, 20 Mar 2005 17:37:21 -0800 Date: Mon, 21 Mar 2005 01:37:21 +0000 From: Bart Schaefer Subject: Emacs bindings, an unfinished project To: zsh-users@sunsite.dk Message-id: <1050321013721.ZM11541@candle.brasslantern.com> MIME-version: 1.0 X-Mailer: Z-Mail (5.0.0 30July97) Content-type: text/plain; charset=us-ascii X-Spam-Checker-Version: SpamAssassin 3.0.2 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, score=-2.6 required=6.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.2 X-Spam-Hits: -2.6 A few weeks ago there was a discussion of how various keybindings in zsh's "emacs" keymap don't really correspond very well to emacs itself. This is of course true for a variety of reasons, including preservation of the old BSD TTY driver behavior and the zsh authors' personal preferences. At one point some [long] while ago I fired up emacs with only its default set of bindings, dumped a list of them, and set out to emulate them all in zsh -- a task which I quickly discovered to be impossible, at the time. In fact, it's still impossible, because emacs has multiple editor buffers and a completely different approach to keymaps -- but recent additions to zsh have made it possible to get closer. I therefore cleaned up the file a bit and added some new examples using zsh 4.2.x features. It's still largely unfinished, but in the interests of getting more eyes and fingers involved I've put it up on the web: http://www.well.com/user/barts/zsh/emacs-emu See comments at the top of the file for minimalist usage instructions. One of the things that this illustrates is how fragile some widgets, like execute-named-command, are in the face of changes to bindings in the main keymap. More about this can be read on zsh-workers.