From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: no-spam@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.help Subject: Re: ido.el, usability when saving a new file Date: Thu, 08 Jun 2006 00:54:38 +0200 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1149745618 19070 80.91.229.2 (8 Jun 2006 05:46:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 8 Jun 2006 05:46:58 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jun 08 07:46:54 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FoDM6-0000mE-9M for geh-help-gnu-emacs@m.gmane.org; Thu, 08 Jun 2006 07:46:54 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FoDM5-0003E8-N9 for geh-help-gnu-emacs@m.gmane.org; Thu, 08 Jun 2006 01:46:53 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Fo6xK-0002vh-Rz for help-gnu-emacs@gnu.org; Wed, 07 Jun 2006 18:56:54 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Fo6xG-0002vV-9P for help-gnu-emacs@gnu.org; Wed, 07 Jun 2006 18:56:53 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fo6xG-0002vS-3E for help-gnu-emacs@gnu.org; Wed, 07 Jun 2006 18:56:50 -0400 Original-Received: from [195.41.46.237] (helo=pfepc.post.tele.dk) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Fo74w-0005Cf-PQ for help-gnu-emacs@gnu.org; Wed, 07 Jun 2006 19:04:46 -0400 Original-Received: from kfs-l.imdomain.dk.cua.dk (0x503e2644.bynxx3.adsl-dhcp.tele.dk [80.62.38.68]) by pfepc.post.tele.dk (Postfix) with SMTP id 283488A001A; Thu, 8 Jun 2006 00:56:48 +0200 (CEST) Original-To: Phillip Lord In-Reply-To: (Phillip Lord's message of "Wed, 31 May 2006 16:26:29 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-Mailman-Approved-At: Thu, 08 Jun 2006 01:46:42 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:35351 Archived-At: Phillip Lord writes: > I have a question about ido.el. > > In general, I find it works very well and am a compulsive > user. However, there is a problem when saving a new file. > > Be default it offers something like > > ~/emacs/theNewFileToSave.txt Really? I can't remember how the old version worked... But I don't see this with ido from emacs' CVS. Below is how it works with the latest version from CVS: > which is fine if it's where you want it to go. But otherwise, > you have to delete "theNewFileToSave.txt" and then navigate to the > directory that you want. > > When you get there, say > > ~/scratch > > you now have to type the file name in again (if you select ~/scratch > alone, ido asks you if you want to overwrite the file which already > exists. When I use C-x C-w with ido, it gives me the option to select the directory where to save the file so I just navigate to the desired target directory, and press C-j. Ido then saves the file with the current file name [unless I have entered another name]. So doing what you want is trivial with ido. In general, if you want to find the current file in another directory, you can do it with the following keystrokes: C-x C-f - ido-find-file C-w - insert current file name (C-w C-w may be needed) RET or C-j - open file. If you have entered a file name, but realize that it is not in the current directory, you can "push it away" and navigate to another location like this: C-x C-f - ido-find-file xyzzy - enter a file name M-b or M-v - push entered text or first matching item navigate using M-BS and M-SPC M-f - pop C-j or RET - > Anyone got any suggestions. Am I missing something? And of course, you can just M-x cd before using C-x C-w...