bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: can't edit file which doesn't have u+w permission, but has g+w


From: Eli Zaretskii
Subject: Re: can't edit file which doesn't have u+w permission, but has g+w
Date: Sat, 05 Jan 2002 15:00:47 +0200

> From: Marius Andreiana <address@hidden>
> Date: 05 Jan 2002 12:35:21 +0200
> 
> emacs-20.5
> 
> I have the file
> -r--rw-r--   1 marius   marius       7248 Jan  5 05:15 osd_update.php3
> emacs doesn't let me edit it
> 
> ----:%%-F1  osd_update.php3    
> (Fundamental)--L1--Top-------------------------Note: file is write
> protected
> 
> I should be able to edit it, the group I'm in has write permissions. I
> am able to edit it with other editors.

I think you will be able to edit it with Emacs as well, if you type
"C-x C-q" to toggle the read-only status, then answer YES when Emacs
asks whether to save the file when you type "C-x C-s" after editing
it.

> Wouldn't be better to leave permission handling to operating system, and
> just print a message if it isn't able to save it when I choose Save if I
> don't have the necesary permissions?

Emacs does that, it just gives you an extra level of protection, so
you won't modify the file inadvertently.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]