From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Colin Walters Newsgroups: gmane.emacs.devel Subject: Re: C-x C-f RET problem... Date: 16 May 2002 15:02:02 -0400 Sender: emacs-devel-admin@gnu.org Message-ID: <1021575722.24318.936.camel@space-ghost> References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1021576317 7704 127.0.0.1 (16 May 2002 19:11:57 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 16 May 2002 19:11:57 +0000 (UTC) Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 178QfN-000209-00 for ; Thu, 16 May 2002 21:11:57 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 178QrV-0002lP-00 for ; Thu, 16 May 2002 21:24:29 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 178Qfa-0001cU-00; Thu, 16 May 2002 15:12:10 -0400 Original-Received: from monk.debian.net ([216.185.54.61] helo=monk.verbum.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 178Qdr-0001Vb-00 for ; Thu, 16 May 2002 15:10:23 -0400 Original-Received: from space-ghost.verbum.private (freedom.cis.ohio-state.edu [164.107.60.183]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (Client CN "space-ghost.verbum.org", Issuer "monk.verbum.org" (verified OK)) by monk.verbum.org (Postfix (Debian/GNU)) with ESMTP id B0F9774000BA for ; Thu, 16 May 2002 15:10:22 -0400 (EDT) Original-Received: by space-ghost.verbum.private (Postfix (Debian/GNU), from userid 1000) id 987C482D8AB; Thu, 16 May 2002 15:02:02 -0400 (EDT) Original-To: emacs-devel@gnu.org In-Reply-To: X-Mailer: Ximian Evolution 1.0.3 Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:4007 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:4007 On Thu, 2002-05-16 at 03:45, Pavel Jan=EDk wrote: > my users found the behavior of C-x C-f RET quite inconsistent with the re= st > of Emacs. After typing C-x C-f you will see the current directory in the > minibuffer. Just after RET you *can* expect to see your current directory > opened in dired. Well, I'm quite used to the current behavior so > I personally do not have problem with it, but my users found it quite > irritating: "How is it possible that C-x C-f and the directory opens file > and not that directory?". >=20 > What do you think? I agree with Miles in that it's not something we should change lightly.=20 But I've been using Kevin Rodgers' defadvice for a long time, and been very happy: ;; From Kevin Rodgers (defadvice find-file (around find-default-filename-run-dired activate) "Run `\\[dired]' on the current directory (instead of reverting the buffer) when called interactively, if `find-file-run-dired' is set, no FILENAME is specified, and the buffer hasn't been modified." (if (and find-file-run-dired (interactive-p) (equal (ad-get-arg 0) buffer-file-name) (not (buffer-modified-p))) (dired (file-name-directory buffer-file-name)) ad-do-it))