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: HS
Subject: Re: How to refresh a buffer?
Date: 5 Feb 2007 08:55:57 -0800
User-agent: G2/1.0

Try this:
(defun reload-file ()
  (interactive)
  (find-file (buffer-name)))

You can also change if the BUFFER is read only with toggle-read-only.

If you find out a way of configuring emacs to tell you when a buffer
is modified, please tell me.

Cheers,
HS

On 5 fev, 13:40, "Vols" <volunte...@gmail.com> wrote:
> Hi, group,
>
> I opened a file in Emacs and found it was read-only. I use the
> terminal command "chmod +w file.cpp" to make it writable. After I
> return to Emacs the file is still read-only. I have to close this file
> and re-open it.
> How to refresh this buffer? Thanks.
>
> Vol




reply via email to

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