help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to refresh a buffer?


From: Piet van Oostrum
Subject: Re: How to refresh a buffer?
Date: Tue, 06 Feb 2007 08:25:35 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.93 (darwin)

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]