Google Ryhmät ei enää tue uusia Usenet-postauksia tai ‐tilauksia. Aiempi sisältö on edelleen nähtävissä.

A problem with read-only in emacs

1 katselukerta
Siirry ensimmäiseen lukemattomaan viestiin

D. Power

lukematon,
26.7.2008 klo 23.45.4126.7.2008
vastaanottaja
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?

--
D. Power
"I hold it to be the inalienable right of anybody to go to hell in his
own way."
-Robert Frost

Tim X

lukematon,
27.7.2008 klo 0.33.3627.7.2008
vastaanottaja
"D. Power" <pow...@pcisys.net.invalid> 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

D. Power

lukematon,
27.7.2008 klo 13.08.4527.7.2008
vastaanottaja
In article <87bq0ku...@lion.rapttech.com.au>,
Tim X <ti...@nospam.dev.null> wrote:


Thanks, I'll look into that.

Peter Dyballa

lukematon,
27.7.2008 klo 14.52.0427.7.2008
vastaanottaja D. Power, help-gn...@gnu.org

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.

D. Power

lukematon,
27.7.2008 klo 18.21.5427.7.2008
vastaanottaja
In article <mailman.15478.12171918...@gnu.org>,
Peter Dyballa <Peter_...@Web.DE> wrote:


I wasn't aware of that, thanks.

0 uutta viestiä