From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.devel Subject: Re: Key bindings proposal Date: Mon, 2 Aug 2010 12:12:47 +0200 Message-ID: <201008021212.47391.tassilo@member.fsf.org> References: <19534.1494.627000.357123@gargle.gargle.HOWL> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1280743985 9850 80.91.229.12 (2 Aug 2010 10:13:05 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 2 Aug 2010 10:13:05 +0000 (UTC) Cc: Uday S Reddy To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 02 12:13:02 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 1Ofs0z-0003PA-GF for ged-emacs-devel@m.gmane.org; Mon, 02 Aug 2010 12:13:01 +0200 Original-Received: from localhost ([127.0.0.1]:55688 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ofs0y-0006OM-Jm for ged-emacs-devel@m.gmane.org; Mon, 02 Aug 2010 06:13:00 -0400 Original-Received: from [140.186.70.92] (port=42030 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ofs0p-0006N6-7S for emacs-devel@gnu.org; Mon, 02 Aug 2010 06:12:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ofs0n-0000yh-Qk for emacs-devel@gnu.org; Mon, 02 Aug 2010 06:12:51 -0400 Original-Received: from deliver.uni-koblenz.de ([141.26.64.15]:19248) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ofs0n-0000yM-LB for emacs-devel@gnu.org; Mon, 02 Aug 2010 06:12:49 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by deliver.uni-koblenz.de (Postfix) with ESMTP id C2FB77826161; Mon, 2 Aug 2010 12:12:48 +0200 (CEST) Original-Received: from deliver.uni-koblenz.de ([127.0.0.1]) by localhost (deliver.uni-koblenz.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17569-03; Mon, 2 Aug 2010 12:12:48 +0200 (CEST) X-CHKRCPT: Envelopesender noch tassilo@member.fsf.org Original-Received: from tsdh.localnet (tsdh.uni-koblenz.de [141.26.67.142]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by deliver.uni-koblenz.de (Postfix) with ESMTP id 31D11782573D; Mon, 2 Aug 2010 12:12:48 +0200 (CEST) User-Agent: KMail/1.13.5 (Linux/2.6.35-rc6-git6; KDE/4.4.5; x86_64; ; ) In-Reply-To: X-Face: `TY6r/ws=N5uqO1E`M=Sups<}n%T[E^o_?MJj< =?iso-8859-1?q?O4j=265ljV6lU=7DcXU7oftH=26/x=5F=7EK=7B=26zv9=7D=0A=09sB?= =?iso-8859-1?q?=7D5/Ea=5BhU=7BCS=23=3F=3F0=3F=3Fn?=@sX+ft]?{(l?, mp"a`u 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:128097 Archived-At: On Saturday 31 July 2010 12:04:50 Uday S Reddy wrote: > 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? I don't know if that's a good idea. Sounds a bit too DWIMish to me. What do I do if I want to use normal isearch although there is a mode-specific isearch implementation? What I could think of would be the introduction of a namespace concept. So all basic commands would be declared in the global namespace, and each mode could have it's own namespace: (defun dired:isearch (...) ...) Emacs then could then have a buffer local `namespace' variable per major-mode (or a list (major minor1 minor2...)?), so that M-x isearch in dired-mode would actually call dired:isearch. To get the global function, you could do M-x :isearch. But such a concept would somehow be orthogonal to [remap ...]. If there's `dired:isearch', I'd expect that `C-s' invokes `dired:isearch' in dired-mode without having to explicitly remap... Just audibly thinking... Tassilo