unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: Command to re-read current file?
Date: Mon, 04 Aug 2003 10:49:24 -0600	[thread overview]
Message-ID: <3F2E8E94.1090002@yahoo.com> (raw)
In-Reply-To: bglqml$jcc$1@reader1.panix.com

bill wrote:

> If the file corresponding to the current buffer changes on disk,
> and I want the buffer to reflect the new version, I normally do
> "C-f [RET] yes".  It bugs me to have to answer 'yes' (or even 'y')
> in these cases.  Is there a command to tell Emacs, "re-read the
> file from disk and don't ask me about it"?


I use find-alternate-file for this purpose, since it's bound to a
key that's easy to type (C-x C-v), provides the current visited
file name as the default, and doesn't require any confirmation.


> But this is a relatively trivial issue.  A far more important
> question is the following meta-question:  how could I have figured
> out the answer to the previous question on my own?  I tried apropos
> with various query strings, such as "re-find", "re-open", "re-visit",
> and variants thereof, but they yielded nothing.  Is there a better
> approach to finding the command for an Emacs functionality?

I guess you meant `C-x C-f' above, which is bound to find-file.  `C-h

C-k C-x C-f' or `C-h C-f find-file RET' take you to that section of
the manual, which includes find-alternate-file (C-x C-v).

-- 
Kevin Rodgers

  parent reply	other threads:[~2003-08-04 16:49 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-04 14:30 Command to re-read current file? bill
2003-08-04 14:45 ` Peter Lee
2003-08-04 14:48 ` lawrence mitchell
2003-08-04 16:31   ` Eli Zaretskii
2003-08-05  7:48     ` Adam Hardy
2003-08-05 12:12       ` Eli Zaretskii
     [not found]     ` <mailman.87.1060069873.29551.help-gnu-emacs@gnu.org>
2003-08-05  9:37       ` Johan Bockgård
2003-08-04 16:49 ` Kevin Rodgers [this message]
2003-08-04 18:11   ` Peter Lee
2003-08-04 18:23 ` kgold

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=3F2E8E94.1090002@yahoo.com \
    --to=ihs_4664@yahoo.com \
    /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.
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).