unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "HS" <hugows@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: How to refresh a buffer?
Date: 5 Feb 2007 08:55:57 -0800	[thread overview]
Message-ID: <1170694557.371715.123580@v45g2000cwv.googlegroups.com> (raw)
In-Reply-To: <1170693641.635670.113980@s48g2000cws.googlegroups.com>

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	other threads:[~2007-02-05 16:55 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 [this message]
2007-02-06  7:25   ` Piet van Oostrum
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=1170694557.371715.123580@v45g2000cwv.googlegroups.com \
    --to=hugows@gmail.com \
    --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).