From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim X Newsgroups: gmane.emacs.help Subject: Re: Why emacs touches read-only file? Date: Fri, 20 Apr 2007 12:28:18 +1000 Organization: Posted via Supernews, http://www.supernews.com Message-ID: <87zm53ye2l.fsf@lion.rapttech.com.au> References: <1176920422.786251.122770@d57g2000hsg.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1177036591 13504 80.91.229.12 (20 Apr 2007 02:36:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 20 Apr 2007 02:36:31 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Apr 20 04:36:25 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Heiz2-0002OR-Cz for geh-help-gnu-emacs@m.gmane.org; Fri, 20 Apr 2007 04:36:24 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hej42-0002lf-R9 for geh-help-gnu-emacs@m.gmane.org; Thu, 19 Apr 2007 22:41:34 -0400 Original-Path: shelby.stanford.edu!newshub.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!news.astraweb.com!newsrouter-eu.astraweb.com!193.201.147.81.MISMATCH!feed.xsnews.nl!border-1.ams.xsnews.nl!sn-xt-ams-06!sn-xt-ams-04!sn-ams!sn-feed-ams-02!sn-ams!sn-feed-ams-03!sn-post-ams-01!sn-post-sjc-01!supernews.com!corp.supernews.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.95 (gnu/linux) Cancel-Lock: sha1:FafCighmQTEC3FpSSkfNO7mKvlE= Original-X-Complaints-To: abuse@supernews.com Original-Lines: 29 Original-Xref: shelby.stanford.edu gnu.emacs.help:147242 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:42846 Archived-At: Daniel writes: > Hi all, > > 1. Create a file with permission of 444 (read-only) file. > 2. Open the file using emacs. > > Question. > > My emacs open the read-only file as writable buffer. Also, I can > modify it and save it. (AMAZING, emacs IGNORES unix file system. WOW.) > > What happened to the emacs, and how it works properly (open files as > read-only if it is read-only, and as writable if it is writable.) > > Thank you, > > Dan. > doing the same thing with emacs 22 gives me a read only file. any attempt to modify the file gives me a buffer is read only message. Your not running as root are you? Tim -- tcross (at) rapttech dot com dot au