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: A problem with read-only in emacs Date: Sun, 27 Jul 2008 14:33:36 +1000 Organization: Rapt Technologies Message-ID: <87bq0kuesf.fsf@lion.rapttech.com.au> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1217133670 1676 80.91.229.12 (27 Jul 2008 04:41:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 27 Jul 2008 04:41:10 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jul 27 06:41:54 2008 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 1KMy4v-0003d0-Mz for geh-help-gnu-emacs@m.gmane.org; Sun, 27 Jul 2008 06:41:53 +0200 Original-Received: from localhost ([127.0.0.1]:41151 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KMy41-0004oF-SD for geh-help-gnu-emacs@m.gmane.org; Sun, 27 Jul 2008 00:40:57 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!news.astraweb.com!border2.newsrouter.astraweb.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:UVXu/Ve0xhA3LdAKvYtMRoqZbKw= Original-Lines: 30 Original-NNTP-Posting-Host: a1027e5c.news.astraweb.com Original-X-Trace: DXC=L^DOkBLFOW2RI=Qc=OLNJ2L?0kYOcDh@:IGb]mONgOi:dWSPbCfW_Y?RTFYYW29Y\:RiUL>h6fe58 Original-Xref: news.stanford.edu gnu.emacs.help:160625 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:55972 Archived-At: "D. Power" writes: > Hi, > > I hope someone can help me with this little problem. It seems that I > (or the keyboard-walking kitten) have somehow changed the settings in > emacs (21.2.1) so that new files are created as read-only, so I have to > chmod any new file before I can edit it. What have I (or the kitten) > done, and how can I undo it? Maybe set-defa8ult-file-modes will help. ,----[ C-h f set-default-file-modes RET ] | set-default-file-modes is a built-in function in `C source code'. | | (set-default-file-modes mode) | | Set the file permission bits for newly created files. | The argument mode should be an integer; only the low 9 bits are used. | This setting is inherited by subprocesses. | | [back] `---- regards, Tim -- tcross (at) rapttech dot com dot au