[Top][All Lists]

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

Re: C-x C-q

From: Eli Zaretskii
Subject: Re: C-x C-q
Date: Fri, 10 Feb 2006 11:49:21 +0200

> Date: Thu, 9 Feb 2006 15:35:02 -0800
> From: CA88  <address@hidden>
> 1. I load a readonly file
> 2. I check it out from clearcase from command line thus making it writable
> 3. I unprotect the buffer with C-x C-q (or is that C-q C-x ?)
> 4. Every time I'm saving the file emacs is prompting me with the
> following cretinuous message: "the  file is read only, are you sure you
> want to save it" or something along these lines.

It's a feature: Emacs remembers the file's attributes from the time
you visited it, which was before it was made writable.  Either
checkout the file _before_ visiting it, or "M-x revert-buffer RET"
after you checkout it, if Emacs is already visiting the file.

C-x C-q only makes the buffer modifiable, but it does nothing to the
file's attributes on disk, as Emacs remembers them.

Anyway, thank you for your report.

reply via email to

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