From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Robert J. Chassell" Newsgroups: gmane.emacs.devel Subject: Re: Start value in minibuffer [Was: opening /tmp//foo doesn't work.] Date: Mon, 14 Nov 2005 23:06:05 +0000 (UTC) Message-ID: References: <20051112104720.GK11234@boetes.org> <20051112163852.GA11661@www.trapp.net> <874q6hlqzc.fsf@stupidchicken.com> <4377B512.3050303@soem.dk> <43791357.8090803@soem.dk> Reply-To: bob@rattlesnake.com NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1132009694 15149 80.91.229.2 (14 Nov 2005 23:08:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 14 Nov 2005 23:08:14 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 15 00:08:11 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EbnQ5-0002e0-DJ for ged-emacs-devel@m.gmane.org; Tue, 15 Nov 2005 00:07:25 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EbnQ4-0005Ji-R3 for ged-emacs-devel@m.gmane.org; Mon, 14 Nov 2005 18:07:24 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EbnOr-0004jQ-Nb for emacs-devel@gnu.org; Mon, 14 Nov 2005 18:06:09 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EbnOp-0004hp-Tz for emacs-devel@gnu.org; Mon, 14 Nov 2005 18:06:09 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EbnOp-0004hd-GU for emacs-devel@gnu.org; Mon, 14 Nov 2005 18:06:07 -0500 Original-Received: from [69.168.108.225] (helo=rattlesnake.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EbnOp-0004l4-1F for emacs-devel@gnu.org; Mon, 14 Nov 2005 18:06:07 -0500 Original-Received: by rattlesnake.com via sendmail from stdin id (Debian Smail3.2.0.115) Mon, 14 Nov 2005 23:06:05 +0000 (UTC) Original-To: Lars Hansen In-reply-to: <43791357.8090803@soem.dk> (message from Lars Hansen on Mon, 14 Nov 2005 23:44:39 +0100) 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:45976 Archived-At: Today's GNU Emacs CVS snapshot, Mon, 2005 Nov 14 11:30 UTC GNU Emacs 22.0.50.25 (i686-pc-linux-gnu, GTK+ Version 2.6.10) started with emacs/src/emacs -Q -D Lars Hansen wrote, ... Emacs interprets the minibuffer contents as /foo although it is /tmp//foo. IMHO that is not very elegant. And it does not work as a general approach: Consider some command with initial value foo, and imagine the user types bar. How would Emacs know if he means foobar (minibuffer contents) or just bar? I do not understand you. When I look at the file of a command using `C-x C-f' (find-file), which I just did, Emacs always offers me the current directory and I can type in the file name. For example, /bin/ --> /bin/cat. I always see the trailing / of the current directory and never end up with /bincat, which would be bad were it to happen inadvertently. When I do remove the trailing /, then I do create /bincat, an empty file as I expect. When I use `C-x C-v' (find-alternate-file), I remove just the command name part of the complete offering, type in the name, and Emacs goes to the appropriate file, /bin/cat --> /bin/bash. We must be talking past each other. -- Robert J. Chassell bob@rattlesnake.com GnuPG Key ID: 004B4AC8 http://www.rattlesnake.com http://www.teak.cc