all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: daniel@bigwalter.net (Daniel Jensen)
To: help-gnu-emacs@gnu.org
Subject: Re: dired loading on C-x C-f
Date: Wed, 11 Feb 2009 01:38:05 +0100	[thread overview]
Message-ID: <87r625byfm.fsf@orme.bigwalter.net> (raw)
In-Reply-To: 11d90d76-e5d6-4643-b36e-79f3710ea1f9@g3g2000pre.googlegroups.com

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))


      reply	other threads:[~2009-02-11  0:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-10 19:55 dired loading on C-x C-f keethraxx
2009-02-11  0:38 ` Daniel Jensen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r625byfm.fsf@orme.bigwalter.net \
    --to=daniel@bigwalter.net \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.