[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
- How to refresh a buffer?, Vols, 2007/02/05
- Re: How to refresh a buffer?,
HS <=
- Re: How to refresh a buffer?, Pascal Bourguignon, 2007/02/05
- Re: How to refresh a buffer?, Marc Tfardy, 2007/02/05
- RE: How to refresh a buffer?, Drew Adams, 2007/02/05
- Re: How to refresh a buffer?, David Hansen, 2007/02/05
- Re: How to refresh a buffer?, Mathias Dahl, 2007/02/06