From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stuart Hacking Newsgroups: gmane.emacs.devel Subject: Re: Key bindings proposal Date: Mon, 2 Aug 2010 10:42:07 +0100 Message-ID: References: <19534.1494.627000.357123@gargle.gargle.HOWL> <19537.40472.267000.563053@gargle.gargle.HOWL> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1280742165 3566 80.91.229.12 (2 Aug 2010 09:42:45 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 2 Aug 2010 09:42:45 +0000 (UTC) Cc: emacs-devel@gnu.org To: Uday S Reddy Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 02 11:42:44 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 1OfrXd-0007Oy-PG for ged-emacs-devel@m.gmane.org; Mon, 02 Aug 2010 11:42:42 +0200 Original-Received: from localhost ([127.0.0.1]:57735 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OfrXd-0003IT-8B for ged-emacs-devel@m.gmane.org; Mon, 02 Aug 2010 05:42:41 -0400 Original-Received: from [140.186.70.92] (port=56287 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OfrXR-0003GS-W1 for emacs-devel@gnu.org; Mon, 02 Aug 2010 05:42:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OfrXQ-0003bh-Jv for emacs-devel@gnu.org; Mon, 02 Aug 2010 05:42:29 -0400 Original-Received: from mail-qy0-f176.google.com ([209.85.216.176]:59541) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OfrXQ-0003bU-Ht for emacs-devel@gnu.org; Mon, 02 Aug 2010 05:42:28 -0400 Original-Received: by qyk34 with SMTP id 34so1566378qyk.0 for ; Mon, 02 Aug 2010 02:42:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=IsvQbJkNPi2Ooj6KHHRMasxaq79xeAjz0Md2j5emNuA=; b=BDm2lpsu8t0T9K8YqQy7iSyABcBWH7I8QVGicrlbkPbiuvruMfAlcrPPxJbTYDUwu9 7KxcxmIZGrAOgQVjCC/n1D8iYLnBpZS7pRuP2gL4DU25p9YrddiqmBjHeRjahLlAFpur HYq1eDDldSR8dEE6dFch4jSuirWlEKo+DUNmM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=qljlXzgLuagKL2wyti6FZKrH72AGXMLPTQzQqjRqBeQYRdfz3FSDrVsCCLP5S+Hp7D abJw/BVvAvbHINxgUbdYKrTorSy02o+dirgV4JbWfjo5/wYujL1qKeJtnu4HRzkgk6Dm qQeta/NqPamIB5EVoEH1LGNzUyQwj497qPel0= Original-Received: by 10.220.168.80 with SMTP id t16mr4084103vcy.21.1280742147437; Mon, 02 Aug 2010 02:42:27 -0700 (PDT) Original-Received: by 10.220.203.3 with HTTP; Mon, 2 Aug 2010 02:42:07 -0700 (PDT) In-Reply-To: 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:128096 Archived-At: On 31 July 2010 11:04, Uday S Reddy wrote: > > [snip] > > My idea was why can't one type something like "M-x isearch" to get this > function, instead of "M-x dired-do-isearch" which is too long-winded and > "M-s a C-s" which is too twisted and unmemorable? =C2=A0This requires a n= ew > concept for Emacs, bindable command names that can vary across modes. To me, this sounds a lot like personal preference. I already have an emacs-lisp file full of global and mode specific keybindings and another with some convenience defaliases. These make sense for the way I work, but I'm sure they would be completely inappropriate for certain other users. Is your suggestion to automatically alias functions by the current major mode? (by, for example, removing the prefix? (dired-do-isearch -> isearch)) Or, do you want a simple method of aliasing commands across modes? How would this work? (define-multi-alias 'isearch ('dired-mode 'dired-do-isearch) ... ... (t 'isearch)) > =C2=A0(Stephen Turnbull is going to say that you can already get its effe= ct > through some other means. That is all well and good. =C2=A0The discussion= right > now is really about how to set up an architecture that is functional for = the > users. =C2=A0Not everything whose effect can be achieved by other means b= ecomes > part of the architecture unless we use it appropriately!) the 'architecture' that I use is a combination of `defalias', `add-hook', and `define-key' in my personal init files. Am I doing something wrong? > > [snip] > > Cheers, > Uday Best regards, --Stuart