From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Joachim Nilsson Newsgroups: gmane.emacs.help Subject: Re: find-file strangeness on OS-X Date: Sat, 10 Jul 2004 10:28:12 +0200 Organization: vmlinux.org:~/> Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <1089448091.21877.88.camel@isengard.vmlinux.org> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1089448128 5158 80.91.224.253 (10 Jul 2004 08:28:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 10 Jul 2004 08:28:48 +0000 (UTC) Cc: Help GNU Emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jul 10 10:28:39 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BjDDr-0005wD-00 for ; Sat, 10 Jul 2004 10:28:39 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BjDG4-0002T0-Cr for geh-help-gnu-emacs@m.gmane.org; Sat, 10 Jul 2004 04:30:56 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BjDFq-0002Sv-Si for help-gnu-emacs@gnu.org; Sat, 10 Jul 2004 04:30:43 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BjDFp-0002Sj-A7 for help-gnu-emacs@gnu.org; Sat, 10 Jul 2004 04:30:42 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BjDFp-0002Sg-0Q for help-gnu-emacs@gnu.org; Sat, 10 Jul 2004 04:30:41 -0400 Original-Received: from [193.41.214.66] (helo=vmlinux.org) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1BjDDU-0005Hq-6C for help-gnu-emacs@gnu.org; Sat, 10 Jul 2004 04:28:16 -0400 Original-Received: from [213.214.225.58] (helo=crash.vmlinux.org ident=crash) by vmlinux.org with esmtp (Exim 3.35 #1 (Debian)) id 1BjDDQ-0005c5-00; Sat, 10 Jul 2004 10:28:12 +0200 Original-To: andrew_certain_gnu@thecertains.com In-Reply-To: X-Mailer: Ximian Evolution 1.4.6 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: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:19554 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:19554 On Sat, 2004-07-10 at 05:29, andrew_certain_gnu@thecertains.com wrote: > I'm running Andrew Choi's emacs binary for OS-X, and I'm having a problem > with find-file. Normally, if you do C-x C-f RET, emacs looks to see if > the file in the buffer has changed on disk and asks if you want to reload > it. Under OS-X, it just loads the directory. Is this a bug? Is it > configurable? I'd like to get the normal behavior back. My GNU/Linux build of the current CVS version (21.3.50.4) also loads the directory. The latest stable Debian release has Emacs 21.2.1 and it does exactly what you want, and the upcoming new release (testing) of Debian has Emacs 21.3.1 which also does exactly what you want, so it could be that the semantics of the C-x C-f command has changed. Doing a simple "M-x apropos" on find-file reveals as much. In the CVS version the description now says: "Edit file filename. Switch to a buffer visiting file filename, creating one if none already exists. Interactively, the default if you just type RET is the current directory, but the visited file name is available through the minibuffer history: type M-n to pull it into the minibuffer." Personally I've never used C-x C-f for the purpose you described. I use "M-x revert-buffer" or "File->Revert Buffer" in the menu. Maybe you can bind it to a set of keys that suit you or, use some kind of hook thing to do revert-buffer on "C-x C-f RET". /Jocke -- Joachim Nilsson :: +46(0)21-123348 ::