From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Noah Lavine Newsgroups: gmane.emacs.devel Subject: Re: Key bindings proposal [Was: Emacs learning curve] Date: Wed, 28 Jul 2010 20:08:10 -0400 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1081) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1280362108 24725 80.91.229.12 (29 Jul 2010 00:08:28 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 29 Jul 2010 00:08:28 +0000 (UTC) Cc: emacs-devel@gnu.org To: u.s.reddy@cs.bham.ac.uk Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 29 02:08:27 2010 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.69) (envelope-from ) id 1OeGfj-0003zg-6F for ged-emacs-devel@m.gmane.org; Thu, 29 Jul 2010 02:08:27 +0200 Original-Received: from localhost ([127.0.0.1]:58669 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OeGfi-0003iG-Gw for ged-emacs-devel@m.gmane.org; Wed, 28 Jul 2010 20:08:26 -0400 Original-Received: from [140.186.70.92] (port=55706 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OeGfb-0003i6-6n for emacs-devel@gnu.org; Wed, 28 Jul 2010 20:08:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OeGfZ-0005fo-6c for emacs-devel@gnu.org; Wed, 28 Jul 2010 20:08:18 -0400 Original-Received: from mail-iw0-f169.google.com ([209.85.214.169]:60029) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OeGfZ-0005fi-3i for emacs-devel@gnu.org; Wed, 28 Jul 2010 20:08:17 -0400 Original-Received: by iwn2 with SMTP id 2so6411855iwn.0 for ; Wed, 28 Jul 2010 17:08:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:content-type :content-transfer-encoding:subject:date:message-id:cc:to :mime-version:x-mailer; bh=F3DE5lFA+yPGNLZheFl5S4DFPqL2KIEUUnmSP6br1lY=; b=IEQDcItdZDjC9DWF5BIP3k33fRDw6Z2PTs9OwsA84jgk4gS+/EbSBoPJHIWEuyiqKB SDAVfV84XsUN823hDymmTA4bnEDR7FfZcnJ0rrHed3BzOPcXjqq5++gPPGZeKpAyThZi CmO4cmzQfquBUiq4QihiYufxomlMO3rg2yup8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:content-type:content-transfer-encoding:subject:date:message-id :cc:to:mime-version:x-mailer; b=xwFL9OE8gALehP5K0w4gexVYFrlucG8+oGr2XMVsOkt+vbuolITPp4IoYWH1vgaNJG vjJmeojz3ZXTz3GMiah4V8dR06U8WyakMJ8r8wPRj1kWMOYbKby+GVlk0FotU72y+IBm 9EguH5k/ukoUOPOsn+x0nnBlVq8Vnlu3nWebc= Original-Received: by 10.231.159.204 with SMTP id k12mr12854920ibx.42.1280362095964; Wed, 28 Jul 2010 17:08:15 -0700 (PDT) Original-Received: from dhcp-137-112-116-13.wlan.rose-hulman.edu (dhcp-137-112-116-13.wlan.rose-hulman.edu [137.112.116.13]) by mx.google.com with ESMTPS id n20sm163009ibe.5.2010.07.28.17.08.14 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 28 Jul 2010 17:08:15 -0700 (PDT) X-Mailer: Apple Mail (2.1081) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:127950 Archived-At: Hello, I am writing because I am trying to understand exactly what the = keybindings proposal requires. As I understand it, this chain of events = will produce an undesired result: 1. Global keymap says "C-y" -> yank 2. You map "C-z" -> yank and send "C-y" to something else 3. Gzip major mode says "C-z" -> compress and "C-y" -> gzip-special-yank At this point typing "C-z" runs 'compress' and typing "C-y" runs = 'gzip-special-yank', whereas the desired result was that "C-z" would be = gzip-special-yank and "C-y" would be compress, because you have = indicated your preference that "C-z" be used for yank instead of "C-y". Remap would not accomplish this (at least not by itself), because there = is no standard command analogous to 'compress' that gzip-mode should = have remapped. However, as long as there is a command anywhere in the = keymap that is analogous to yank, then "C-z" should have been mapped to = that, and its keybinding moved as necessary (perhaps to "C-y"). Is this an accurate statement of the idea? Noah=