From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: M-g in dired Date: Sat, 20 May 2006 16:45:47 +0300 Organization: JURTA Message-ID: <87sln44y1q.fsf@jurta.org> References: <446C7B73.60907@earthlink.net> <87u07md91o.fsf@jurta.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1148133462 8672 80.91.229.2 (20 May 2006 13:57:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 20 May 2006 13:57:42 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat May 20 15:57:41 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FhRxb-0004GN-I2 for ged-emacs-devel@m.gmane.org; Sat, 20 May 2006 15:57:39 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FhRxb-0004AS-8p for ged-emacs-devel@m.gmane.org; Sat, 20 May 2006 09:57:39 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FhRww-0003tE-7U for emacs-devel@gnu.org; Sat, 20 May 2006 09:56:58 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FhRwu-0003s5-2I for emacs-devel@gnu.org; Sat, 20 May 2006 09:56:57 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FhRwt-0003s2-W3 for emacs-devel@gnu.org; Sat, 20 May 2006 09:56:56 -0400 Original-Received: from [217.25.160.1] (helo=relay1.binet.com.ua) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FhS0N-00071B-SV; Sat, 20 May 2006 10:00:32 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by relay1.binet.com.ua (Postfix) with ESMTP id DC57477D4C; Sat, 20 May 2006 16:56:48 +0300 (EEST) Original-Received: from mail.binet.com.ua (i51.dialup.binet.com.ua [217.25.161.115]) by relay1.binet.com.ua (Postfix) with ESMTP id 4C0AE77D3F; Sat, 20 May 2006 16:56:45 +0300 (EEST) Original-To: rms@gnu.org In-Reply-To: (Richard Stallman's message of "Sat, 20 May 2006 01:03:54 -0400") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) X-Virus-Scanned: by ClamAv at binet.com.ua 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:54873 Archived-At: > I recall I proposed two variants for dired-goto-file: > `M-g f' (and `M-g M-f') and `M-g g' (and `M-g M-g'). > And you agreed to `M-g f' (and `M-g M-f'). > > I also proposed to make the key binding `M-g f' global, > but this could be implemented ATR (after the release). > > That command makes no sense except in a Dired buffer, > so I don't understand that proposal. Let's say you are editing a file in the Emacs buffer. When you need to perform some operation on this file in Dired, how do you do this? The quickest way to do this I know is to type C-x d RET, and to find the edited file in the (sometimes very long) list of all files in the same directory. Then to type `n n ...' several times to put point on the file, or to type `C-s filename' to arrive at it with the help of isearch, or to type `M-g filename RET' (when M-g was not a prefix key). With the global key binding `M-g f' all this is achieved by `M-g f M-n RET', i.e. `M-n' puts the edited file name as default in the prompt, and after RET it puts point just on the file in the dired buffer, and you can immediately start performing necessary operations on this file. -- Juri Linkov http://www.jurta.org/emacs/