From: Tim X <timx@nospam.dev.null>
Subject: Re: permissions on created files
Date: Tue, 19 Sep 2006 13:11:08 +1000 [thread overview]
Message-ID: <87fyeoh7oz.fsf@lion.rapttech.com.au> (raw)
In-Reply-To: m2mz8xdqup.fsf@janus.isnogud.escape.de
Urs Thuermann <urs@isnogud.escape.de> writes:
> 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
I think emacs just inherits the default umask from your environment.
However, thre are some variables which can control the setting of
executable bits on script files created within emacs. I'm not sure
what version of emacs you are running, but a quick apropos in emacs 22
brings up the function
executable-make-buffer-file-executable-if-script-p
which sounds promising as a starting point.
Tim
--
tcross (at) rapttech dot com dot au
prev parent reply other threads:[~2006-09-19 3:11 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-18 17:30 permissions on created files Urs Thuermann
2006-09-19 2:01 ` Glenn Morris
2006-09-19 3:11 ` Tim X [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87fyeoh7oz.fsf@lion.rapttech.com.au \
--to=timx@nospam.dev.null \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).