From xemacs-m  Mon Jun  9 00:41:37 1997
Received: from cs.utah.edu (cs.utah.edu [128.110.4.21])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id AAA13261
	for <xemacs-beta@xemacs.org>; Mon, 9 Jun 1997 00:41:36 -0500 (CDT)
Received: from fast.cs.utah.edu by cs.utah.edu (8.8.4/utah-2.21-cs)
	id XAA26288; Sun, 8 Jun 1997 23:41:36 -0600 (MDT)
Received: by fast.cs.utah.edu (8.6.10/utah-2.15-leaf)
	id XAA04718; Sun, 8 Jun 1997 23:41:35 -0600
Date: Sun, 8 Jun 1997 23:41:35 -0600
Message-Id: <199706090541.XAA04718@fast.cs.utah.edu>
X-Mailer: VM 5.96 (beta)/19.15 XEmacs Lucid
From: Bart Robinson <lomew@cs.utah.edu>
To: Kyle Jones <kyle_jones@wonderworks.com>
Cc: XEmacs Developers <xemacs-beta@xemacs.org>
Subject: Re: `C-x C-f RET' always calling dired?
In-Reply-To: <QQctcu00829.199706090104@crystal.WonderWorks.COM>
References: <kig3eqsviwl.fsf@jagor.srce.hr>
	<QQctcu00829.199706090104@crystal.WonderWorks.COM>

On 1997-6-8 Kyle Jones <kyle_jones@wonderworks.com> wrote:
 > Hrvoje Niksic writes:
 >  > Normally, when one just presses RET at the prompt presented by
 >  > `find-file', he enters dired for that directory.
 >  > 
 >  > However, when I edit a file, pressing RET at a `C-x C-f' prompt brings 
 >  > me back to that file -- i.e. it does nothing.  Is it a bug or a
 >  > feature?  If a feature, I find it quite annoying.

You can remove the trailing slash before hitting RET if you want
dired.

 > It is a consequence; a consequence of how file names are
 > defaulted.

I don't have strong feelings on this matter but I do think it
would be nice if the behavior was consistent.  What I mean is,
assuming insert-default-directory is t, hitting RET at a
given find-file prompt should always behave the same regardless
if you are in a buffer visiting a file or not.

 > Before you change it, consider that if you don't have
 > insert-default-directory set non-nil there is no directory
 > name presented at the find-file prompt.  And so getting Dired
 > within that context would be confusing.

But that is what happens if insert-default-directory is nil and
you hit RET at a find-file prompt in a buffer that is not
visiting a file.  I think that having insert-default-directory
set to nil is asking for confusion.

 > Also it is a feature; I use it to revisit a file when I know that 
 > it has changed on disk.

I think it is easier to do `C-x C-v RET'; saves you from typing y e s.

-- bart

