From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: A problem with read-only in emacs Date: Sun, 27 Jul 2008 20:52:04 +0200 Message-ID: <1781D80D-AF48-4A5A-941D-6F99E0FA2344@Web.DE> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v753.1) Content-Type: text/plain; charset=WINDOWS-1252; delsp=yes; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1217191948 13889 80.91.229.12 (27 Jul 2008 20:52:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 27 Jul 2008 20:52:28 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: D. Power Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jul 27 22:53:18 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 1KNDEz-0005Zp-NV for geh-help-gnu-emacs@m.gmane.org; Sun, 27 Jul 2008 22:53:17 +0200 Original-Received: from localhost ([127.0.0.1]:40611 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KNDE5-00076R-RF for geh-help-gnu-emacs@m.gmane.org; Sun, 27 Jul 2008 16:52:21 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KNDCZ-0006df-M4 for help-gnu-emacs@gnu.org; Sun, 27 Jul 2008 16:50:47 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KNDCY-0006dL-W9 for help-gnu-emacs@gnu.org; Sun, 27 Jul 2008 16:50:47 -0400 Original-Received: from [199.232.76.173] (port=44273 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KNDCY-0006dI-Rc for help-gnu-emacs@gnu.org; Sun, 27 Jul 2008 16:50:46 -0400 Original-Received: from fmmailgate01.web.de ([217.72.192.221]:35465) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KNDCY-00084m-Pr for help-gnu-emacs@gnu.org; Sun, 27 Jul 2008 16:50:46 -0400 Original-Received: from smtp06.web.de (fmsmtp06.dlan.cinetic.de [172.20.5.172]) by fmmailgate01.web.de (Postfix) with ESMTP id BC9DFE97A752; Sun, 27 Jul 2008 20:52:11 +0200 (CEST) Original-Received: from [91.35.227.165] (helo=[192.168.1.2]) by smtp06.web.de with asmtp (TLSv1:AES128-SHA:128) (WEB.DE 4.109 #226) id 1KNBLn-0007S3-00; Sun, 27 Jul 2008 20:52:11 +0200 In-Reply-To: X-Mailer: Apple Mail (2.753.1) X-Sender: Peter_Dyballa@web.de X-Provags-ID: V01U2FsdGVkX1/RHsbQS1Puqf5SmAHc7zwi2Gsq+yMXJJnbLc+Y QXGB/jlHwo4tA2L3QdR/ta7vaPIVvCDkmoea/naAEn4rDH1cmv BT00RpzehJXHfo/q+nVg== X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 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:55980 Archived-At: Am 27.07.2008 um 05:45 schrieb D. Power: > 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 =20 > have to > chmod any new file before I can edit it. I don't think that GNU Emacs has this ability =96 which other tool that =20= also can edit files would create read-only files (it won't be able to =20= edit and save these edits)? It's likely your run-time environment =20 that was changed to create read-only files (and directories). In UNIX =20= umask is related to this. When invoked in a shell it well tell you =20 its setting, when used with an argument, it will change the recent =20 value to the given one. 'umask 022' is a good choice, that can also =20 be put into the shell's RC file. For GNU Emacs you should choose 002 =20 because some (defective?) code high-lights in dired-mode permissions =20 of group-writable files by default. -- Greetings Pete Real Time, adj.: Here and now, as opposed to fake time, which only occurs there = and =20 then.