unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* how to not overwrite read-only files?
@ 2006-07-20 21:54 yilangmok
  2006-07-21  7:10 ` Eli Zaretskii
  0 siblings, 1 reply; 4+ messages in thread
From: yilangmok @ 2006-07-20 21:54 UTC (permalink / raw)



For some reason, my emacs configuration just overwrites files when I save,
even when it is marked -r--r--r-- (readonly).  Is there a setting for emacs
to confirm whether to overwrite the file first?  Thanks.
-- 
View this message in context: http://www.nabble.com/how-to-not-overwrite-read-only-files--tf1977495.html#a5425296
Sent from the Emacs - Help forum at Nabble.com.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: how to not overwrite read-only files?
  2006-07-20 21:54 how to not overwrite read-only files? yilangmok
@ 2006-07-21  7:10 ` Eli Zaretskii
  2006-07-22 23:44   ` Yi Lang Mok
  0 siblings, 1 reply; 4+ messages in thread
From: Eli Zaretskii @ 2006-07-21  7:10 UTC (permalink / raw)


> Date: Thu, 20 Jul 2006 14:54:29 -0700 (PDT)
> From: yilangmok <yilangmok@hotmail.com>
> 
> For some reason, my emacs configuration just overwrites files when I save,
> even when it is marked -r--r--r-- (readonly).

Please provide the details: what command(s) overwrites read-only
files?

Also, please try the same command(s) in "emacs -q"; if that does work
as expected, the culprit is somewhere in your .emacs init file.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: how to not overwrite read-only files?
  2006-07-21  7:10 ` Eli Zaretskii
@ 2006-07-22 23:44   ` Yi Lang Mok
  2006-07-24 15:46     ` Kevin Rodgers
  0 siblings, 1 reply; 4+ messages in thread
From: Yi Lang Mok @ 2006-07-22 23:44 UTC (permalink / raw)


ctrl-x s saves the file even if the read-only setting is set.


>From: Eli Zaretskii <eliz@gnu.org>
>To: Help-gnu-emacs@gnu.org
>Subject: Re: how to not overwrite read-only files?
>Date: Fri, 21 Jul 2006 10:10:28 +0300
>
> > Date: Thu, 20 Jul 2006 14:54:29 -0700 (PDT)
> > From: yilangmok <yilangmok@hotmail.com>
> >
> > For some reason, my emacs configuration just overwrites files when I 
>save,
> > even when it is marked -r--r--r-- (readonly).
>
>Please provide the details: what command(s) overwrites read-only
>files?
>
>Also, please try the same command(s) in "emacs -q"; if that does work
>as expected, the culprit is somewhere in your .emacs init file.
>
>
>_______________________________________________
>help-gnu-emacs mailing list
>help-gnu-emacs@gnu.org
>http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: how to not overwrite read-only files?
  2006-07-22 23:44   ` Yi Lang Mok
@ 2006-07-24 15:46     ` Kevin Rodgers
  0 siblings, 0 replies; 4+ messages in thread
From: Kevin Rodgers @ 2006-07-24 15:46 UTC (permalink / raw)


Yi Lang Mok wrote:
> ctrl-x s saves the file even if the read-only setting is set.

Please don't top-post.

>> From: Eli Zaretskii <eliz@gnu.org>
>> To: Help-gnu-emacs@gnu.org
>> Subject: Re: how to not overwrite read-only files?
>> Date: Fri, 21 Jul 2006 10:10:28 +0300
>>
>> > Date: Thu, 20 Jul 2006 14:54:29 -0700 (PDT)
>> > From: yilangmok <yilangmok@hotmail.com>
>> >
>> > For some reason, my emacs configuration just overwrites files when I 
>> save,
>> > even when it is marked -r--r--r-- (readonly).
>>
>> Please provide the details: what command(s) overwrites read-only
>> files?
>>
>> Also, please try the same command(s) in "emacs -q"; if that does work
>> as expected, the culprit is somewhere in your .emacs init file.

Is the buffer marked as read-only in the mode line?  Has it been
modified?  That is, do you see %%, %*, **, or -- between the coding
system and the buffer name?

-- 
Kevin

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-07-24 15:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-20 21:54 how to not overwrite read-only files? yilangmok
2006-07-21  7:10 ` Eli Zaretskii
2006-07-22 23:44   ` Yi Lang Mok
2006-07-24 15:46     ` Kevin Rodgers

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).