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 12:47:11 +0000 (UTC) Message-ID: References: <20051112104720.GK11234@boetes.org> <20051112163852.GA11661@www.trapp.net> <874q6hlqzc.fsf@stupidchicken.com> <4377B512.3050303@soem.dk> Reply-To: bob@rattlesnake.com NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1131978102 31653 80.91.229.2 (14 Nov 2005 14:21:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 14 Nov 2005 14:21:42 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 14 15:21:39 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Ebf9c-0003VO-4d for ged-emacs-devel@m.gmane.org; Mon, 14 Nov 2005 15:17:52 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ebf9b-0004Kv-Bs for ged-emacs-devel@m.gmane.org; Mon, 14 Nov 2005 09:17:51 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ebdk2-0001Ug-3L for emacs-devel@gnu.org; Mon, 14 Nov 2005 07:47:22 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ebdjz-0001TL-JK for emacs-devel@gnu.org; Mon, 14 Nov 2005 07:47:20 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ebdjz-0001TA-95 for emacs-devel@gnu.org; Mon, 14 Nov 2005 07:47:19 -0500 Original-Received: from [69.168.108.225] (helo=rattlesnake.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Ebdjy-0006h3-Bh for emacs-devel@gnu.org; Mon, 14 Nov 2005 07:47:19 -0500 Original-Received: by rattlesnake.com via sendmail from stdin id (Debian Smail3.2.0.115) Mon, 14 Nov 2005 12:47:11 +0000 (UTC) Original-To: emacs-devel@gnu.org In-reply-to: <4377B512.3050303@soem.dk> (message from Lars Hansen on Sun, 13 Nov 2005 22:50:10 +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:45951 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 [Context: in the default user interface for C-x C-f (find-file) a visit to /tmp/foo in which you type /emacs has you visiting /emacs, not /tmp/emacs.] Chong Yidong wrote: > The reason is convenience. This allows you to enter a new > filename without having to erase the default offered in the > minibuffer. ... To which Lars Hansen replied, To me this feature seems as a rather awkward work-around the lack of a general way to handle start values in the minibuffer. I do not follow you. How do you want to change to the current user interface? To take an example, I just went from /usr/local/src/emacs/lisp/files.el to ~/.emacs To do this, I typed C-x C-f ~/.emacs RET That is all. After typing C-x C-f I saw /usr/local/src/emacs/lisp/ as expected but, as I said, I typed ~/.emacs instead and visted my .emacs file. 1. If the user just hits return, the start value should be used as a default value. In this case, I do not want to go to the default value or any location near it. On the other hand, I could: for example, instead of ~/.emacs, I could have typed ad TAB to list add-log.el and visit it. Or in the minibuffer, I can use `M-p' (previous-history-element) to pull in a previous value. Or I can press return and see the current directory. 2. If something similar to the start value is needed, it should be possible the edit it. This is convenient in eg. a rename command if the old name is inserted as the start value. Nor, at this time, do I not want to go to anything similar to the start value. However, I can and do edit the start value when I do want to go to such a file, such as /usr/local/share/emacs/22.0.50/lisp/files.el.gz I just did this. I found out what comes after the `22' by using TAB completion (minibuffer-complete). 3. If one don't want to use the start value, it is annoying to have to delete it. In this case it should possible to simply type what one wants instead. Yes, it is annoying, and I have never done that. I do not delete the start value. As far as I understand you, the current interface has been doing what you say for several decades. What do you want to change? -- Robert J. Chassell bob@rattlesnake.com GnuPG Key ID: 004B4AC8 http://www.rattlesnake.com http://www.teak.cc