From: Piet van Oostrum <piet@cs.uu.nl>
To: help-gnu-emacs@gnu.org
Subject: Re: How to refresh a buffer?
Date: Tue, 06 Feb 2007 08:25:35 +0100 [thread overview]
Message-ID: <m2tzxzhhn4.fsf@cochabamba.lan> (raw)
In-Reply-To: 1170694557.371715.123580@v45g2000cwv.googlegroups.com
>>>>> "HS" <hugows@gmail.com> (H) wrote:
>H> Try this:
>H> (defun reload-file ()
>H> (interactive)
>H> (find-file (buffer-name)))
buffer-name => buffer-file-name (but revert-buffer is a better solution)
--
Piet van Oostrum <piet@cs.uu.nl>
URL: http://www.cs.uu.nl/~piet [PGP 8DAE142BE17999C4]
Private email: piet@vanoostrum.org
next prev parent reply other threads:[~2007-02-06 7:25 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-05 16:40 How to refresh a buffer? Vols
2007-02-05 16:55 ` HS
2007-02-06 7:25 ` Piet van Oostrum [this message]
2007-02-05 17:08 ` Marc Tfardy
2007-02-05 17:13 ` Pascal Bourguignon
2007-02-05 17:44 ` Drew Adams
2007-02-05 18:41 ` David Hansen
2007-02-06 7:35 ` Mathias Dahl
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=m2tzxzhhn4.fsf@cochabamba.lan \
--to=piet@cs.uu.nl \
--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.
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).