From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Uday S Reddy Newsgroups: gmane.emacs.devel Subject: Re: Key bindings proposal Date: Mon, 2 Aug 2010 12:24:11 +0100 Message-ID: <19542.43739.286000.949489@gargle.gargle.HOWL> References: <19534.1494.627000.357123@gargle.gargle.HOWL> <201008021212.47391.tassilo@member.fsf.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1280748281 24456 80.91.229.12 (2 Aug 2010 11:24:41 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 2 Aug 2010 11:24:41 +0000 (UTC) Cc: Uday S Reddy , emacs-devel@gnu.org To: Tassilo Horn Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 02 13:24:38 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 1Oft8E-0006Wz-Iq for ged-emacs-devel@m.gmane.org; Mon, 02 Aug 2010 13:24:34 +0200 Original-Received: from localhost ([127.0.0.1]:33823 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oft8D-0002Fd-UZ for ged-emacs-devel@m.gmane.org; Mon, 02 Aug 2010 07:24:33 -0400 Original-Received: from [140.186.70.92] (port=40191 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oft88-0002Ej-OB for emacs-devel@gnu.org; Mon, 02 Aug 2010 07:24:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oft87-0007gp-CY for emacs-devel@gnu.org; Mon, 02 Aug 2010 07:24:28 -0400 Original-Received: from sun60.bham.ac.uk ([147.188.128.137]:40444) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oft87-0007gN-7Q for emacs-devel@gnu.org; Mon, 02 Aug 2010 07:24:27 -0400 Original-Received: from [147.188.128.127] (helo=bham.ac.uk) by sun60.bham.ac.uk with esmtp (Exim 4.67) (envelope-from ) id 1Oft85-0001XO-Nk; Mon, 02 Aug 2010 12:24:25 +0100 Original-Received: from mx1.cs.bham.ac.uk ([147.188.192.53]) by bham.ac.uk with esmtp (Exim 4.43) id 1Oft85-0003Yr-Dp; Mon, 02 Aug 2010 12:24:25 +0100 Original-Received: from gromit.cs.bham.ac.uk ([147.188.193.16] helo=MARUTI.cs.bham.ac.uk) by mx1.cs.bham.ac.uk with esmtp (Exim 4.51) id 1Oft85-0007vA-6v; Mon, 02 Aug 2010 12:24:25 +0100 In-Reply-To: <201008021212.47391.tassilo@member.fsf.org> X-Mailer: VM 8.1.92a under 23.2.1 (i386-mingw-nt5.1.2600) X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) 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:128100 Archived-At: Tassilo Horn writes: > > 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? Sorry, I was just giving "M-x isearch" just to illustrate the number of key presses required. It could be "M-y isearch" for all we care. Note that this "isearch" is different from a function called "isearch". It is in a different name space. > 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. Thank you. A scheme like that would feel so 21st century! > 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... Yes, it is orthogonal to the [remap...] idea. I think we really wouldn't want dired to remap `isearch-forward' to `dired:isearch', because `isearch-forward' is quite useful in a dired buffer. The user can do such remapping for himself if he/she wants that. Cheers, Uday