all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: lawrence mitchell <wence@gmx.li>
Subject: Re: Command to re-read current file?
Date: Mon, 04 Aug 2003 15:48:25 +0100	[thread overview]
Message-ID: <?fnord?uhe4x8ona.fsf@ID-97657.usr.dfncis.de> (raw)
In-Reply-To: bglqml$jcc$1@reader1.panix.com

bill wrote:

[...]

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

Well, you can try the Emacs manual.  In this case, the relevant
part was under (info "(emacs)Files").  You were going about it
the right way.  Another option you could have used might have
been apropos-documentation, which searches in docstrings too.


In this case, I think you want revert-buffer:

/----[ C-h f revert-buffer RET ]
| revert-buffer is an interactive compiled Lisp function in `files'.
| It is bound to <menu-bar> <files> <revert-buffer>.
| (revert-buffer &optional IGNORE-AUTO NOCONFIRM PRESERVE-MODES)
|
| Replace current buffer text with the text of the visited file on disk.
| This undoes all changes since the file was visited or saved.
| With a prefix argument, offer to revert from latest auto-save file, if
| that is more recent than the visited file.
|
| [...]
|
| Optional second argument NOCONFIRM means don't ask for confirmation at
| all.  (The local variable `revert-without-query', if non-nil, prevents
| confirmation.)
\----

-- 
lawrence mitchell <wence@gmx.li>

  parent reply	other threads:[~2003-08-04 14:48 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 [this message]
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
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

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

  git send-email \
    --in-reply-to='?fnord?uhe4x8ona.fsf@ID-97657.usr.dfncis.de' \
    --to=wence@gmx.li \
    /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.