From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "D. Power" Newsgroups: gmane.emacs.help Subject: Re: A problem with read-only in emacs Date: Sun, 27 Jul 2008 16:21:54 -0600 Organization: None Whatsoever Message-ID: References: NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1217207179 16270 80.91.229.12 (28 Jul 2008 01:06:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 28 Jul 2008 01:06:19 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jul 28 03:07:09 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 1KNHCf-0004DP-27 for geh-help-gnu-emacs@m.gmane.org; Mon, 28 Jul 2008 03:07:09 +0200 Original-Received: from localhost ([127.0.0.1]:58210 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KNHBl-0006Kx-A7 for geh-help-gnu-emacs@m.gmane.org; Sun, 27 Jul 2008 21:06:13 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local02.nntp.dca.giganews.com!nntp.pcisys.net!news.pcisys.net.POSTED!not-for-mail Original-NNTP-Posting-Date: Sun, 27 Jul 2008 17:21:55 -0500 Original-Newsgroups: gnu.emacs.help User-Agent: MT-NewsWatcher/3.5.2 (Intel Mac OS X) Original-Lines: 39 X-Usenet-Provider: http://www.giganews.com Original-X-Trace: sv3-nd3xk85Jg1/CESXGAS4ROTxq0kiBCkRSR5GwSyWTg1e5L3YK5saMw8IJ3XbLIXnN7V2P0xXfyBXLD6U!/KPpFxPL8IwTzsgBgZDBKJPt+S+VjEmu/6q4dsrLimdnwnh1k44lAKBAvD+6Aee1VWdcES5xrIQL!H830R0iCg6k= X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.39 Original-Xref: news.stanford.edu gnu.emacs.help:160634 X-Mailman-Approved-At: Sun, 27 Jul 2008 21:05:05 -0400 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:55982 Archived-At: In article , Peter Dyballa wrote: > 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 > > have to > > chmod any new file before I can edit it. > > I don't think that GNU Emacs has this ability ­ which other tool that > also can edit files would create read-only files (it won't be able to > edit and save these edits)? It's likely your run-time environment > that was changed to create read-only files (and directories). In UNIX > umask is related to this. When invoked in a shell it well tell you > its setting, when used with an argument, it will change the recent > value to the given one. 'umask 022' is a good choice, that can also > be put into the shell's RC file. For GNU Emacs you should choose 002 > because some (defective?) code high-lights in dired-mode permissions > of group-writable files by default. > > -- > Greetings > > Pete > > Real Time, adj.: > Here and now, as opposed to fake time, which only occurs there and > then. I wasn't aware of that, thanks. -- D. Power "I hold it to be the inalienable right of anybody to go to hell in his own way." -Robert Frost