From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: Re: C-x C-q Date: Fri, 10 Feb 2006 11:49:21 +0200 Message-ID: References: <200602092335.k19NZ2Ge023170@ca69jemlnx-178.am.mot.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1139565170 26426 80.91.229.2 (10 Feb 2006 09:52:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 10 Feb 2006 09:52:50 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Feb 10 10:52:48 2006 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1F7UxJ-00052J-SY for geb-bug-gnu-emacs@m.gmane.org; Fri, 10 Feb 2006 10:52:46 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F7UxI-0007t0-0L for geb-bug-gnu-emacs@m.gmane.org; Fri, 10 Feb 2006 04:52:44 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1F7Uu4-0005v8-7Y for bug-gnu-emacs@gnu.org; Fri, 10 Feb 2006 04:49:24 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1F7Uu2-0005uk-A1 for bug-gnu-emacs@gnu.org; Fri, 10 Feb 2006 04:49:23 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F7Uu0-0005ue-6H for bug-gnu-emacs@gnu.org; Fri, 10 Feb 2006 04:49:21 -0500 Original-Received: from [192.114.186.66] (helo=romy.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.52) id 1F7Uxj-0005is-W7 for bug-gnu-emacs@gnu.org; Fri, 10 Feb 2006 04:53:12 -0500 Original-Received: from HOME-C4E4A596F7 (IGLD-84-228-136-147.inter.net.il [84.228.136.147]) by romy.inter.net.il (MOS 3.7.3-GA) with ESMTP id DNR36274 (AUTH halo1); Fri, 10 Feb 2006 11:49:17 +0200 (IST) Original-To: CA88 In-reply-to: <200602092335.k19NZ2Ge023170@ca69jemlnx-178.am.mot.com> (message from CA88 on Thu, 9 Feb 2006 15:35:02 -0800) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:14786 Archived-At: > Date: Thu, 9 Feb 2006 15:35:02 -0800 > From: CA88 > > 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.