From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Urs Thuermann Newsgroups: gmane.emacs.help Subject: permissions on created files Date: 18 Sep 2006 19:30:54 +0200 Organization: escape e.V. - Verein zur Foerderung der Datenkommuniation Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1158604865 10895 80.91.229.2 (18 Sep 2006 18:41:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 18 Sep 2006 18:41:05 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Sep 18 20:41:05 2006 Return-path: Envelope-to: geh-help-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 1GPO2x-0004lx-Ib for geh-help-gnu-emacs@m.gmane.org; Mon, 18 Sep 2006 20:40:48 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GPO2x-0007O3-1l for geh-help-gnu-emacs@m.gmane.org; Mon, 18 Sep 2006 14:40:47 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!multikabel.net!feed20.multikabel.net!newsfeed.freenet.de!ecngs!feeder2.ecngs.de!193.141.41.141.MISMATCH!npeer1.de.kpn-eurorings.net!npeer-devel!gaertner.de!escape.de!janus.isnogud.escape.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 10 Original-NNTP-Posting-Host: janus.isnogud.escape.de User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 Original-Xref: shelby.stanford.edu gnu.emacs.help:141848 Original-To: help-gnu-emacs@gnu.org 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:37470 Archived-At: When emacs creates a new file, it does so using mode 0666 modified by the process umask, i.e. newly created files don't have the executable bit set. I have search the Emacs docs (with C-h i) and have also tried C-h a to find a way to change this. I'd like to change emacs' behavior so that it uses 0777 instead 0666 when the file begins with the two characters #!. Is that possible? I couldn't find anything like that. urs