* dired loading on C-x C-f
@ 2009-02-10 19:55 keethraxx
2009-02-11 0:38 ` Daniel Jensen
0 siblings, 1 reply; 2+ messages in thread
From: keethraxx @ 2009-02-10 19:55 UTC (permalink / raw
To: help-gnu-emacs
I have a problem with a specific installation of emacs (22.1.1 on
SPARC Solaris 9) behaving strangely.
On most other systems if I have a file open in a buffer but changed on
disk (outside of emacs) and press C-x C-f [RET] it tells me that the
file has changed and asks me whether I want to reload it.
However this one opens dired instead. My ~/.emacs file is the same.
I wonder if there is any way to force the "standard" (ie. "prompt to
reload") behavior?
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: dired loading on C-x C-f
2009-02-10 19:55 dired loading on C-x C-f keethraxx
@ 2009-02-11 0:38 ` Daniel Jensen
0 siblings, 0 replies; 2+ messages in thread
From: Daniel Jensen @ 2009-02-11 0:38 UTC (permalink / raw
To: help-gnu-emacs
keethraxx@gmail.com writes:
> I have a problem with a specific installation of emacs (22.1.1 on
> SPARC Solaris 9) behaving strangely.
>
> On most other systems if I have a file open in a buffer but changed on
> disk (outside of emacs) and press C-x C-f [RET] it tells me that the
> file has changed and asks me whether I want to reload it.
>
> However this one opens dired instead. My ~/.emacs file is the same.
This is the new behaviour in Emacs 22. (See the NEWS file.) You can use
`C-x C-f M-n RET' instead.
> I wonder if there is any way to force the "standard" (ie. "prompt to
> reload") behavior?
This hack was posted by Ted Stern:
(defun find-file-read-args (prompt mustmatch)
(list (let ((find-file-default
(and buffer-file-name
(abbreviate-file-name buffer-file-name))))
(read-file-name prompt nil find-file-default mustmatch))
t))
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-02-11 0:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-10 19:55 dired loading on C-x C-f keethraxx
2009-02-11 0:38 ` Daniel Jensen
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.