unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* find-file strangeness on OS-X
@ 2004-07-10  3:29 andrew_certain_gnu
  2004-07-10  8:28 ` Joachim Nilsson
       [not found] ` <mailman.443.1089448243.22971.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 3+ messages in thread
From: andrew_certain_gnu @ 2004-07-10  3:29 UTC (permalink / raw)



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.

Thanks.

Andrew

-- 
Please include this line when replying.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: find-file strangeness on OS-X
  2004-07-10  3:29 find-file strangeness on OS-X andrew_certain_gnu
@ 2004-07-10  8:28 ` Joachim Nilsson
       [not found] ` <mailman.443.1089448243.22971.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 3+ messages in thread
From: Joachim Nilsson @ 2004-07-10  8:28 UTC (permalink / raw)
  Cc: Help GNU Emacs

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 :: <joachim AT vmlinux DOT org> 
+46(0)21-123348 :: <http://vmlinux.org/joachim/>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: find-file strangeness on OS-X
       [not found] ` <mailman.443.1089448243.22971.help-gnu-emacs@gnu.org>
@ 2004-07-12 20:27   ` Kevin Rodgers
  0 siblings, 0 replies; 3+ messages in thread
From: Kevin Rodgers @ 2004-07-12 20:27 UTC (permalink / raw)


Joachim Nilsson wrote:
 > 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.
...
 > 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".

And if you're sure you want to visit the file on disk, you can avoid the
interactive query with `C-x C-v'.

-- 
Kevin Rodgers

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-07-12 20:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-10  3:29 find-file strangeness on OS-X andrew_certain_gnu
2004-07-10  8:28 ` Joachim Nilsson
     [not found] ` <mailman.443.1089448243.22971.help-gnu-emacs@gnu.org>
2004-07-12 20:27   ` Kevin Rodgers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).