gnu.emacs.help
[Top] [All Lists]

Re: Why emacs touches read-only file?

Subject: Re: Why emacs touches read-only file?
From: Johan BockgÃrd
Date: Sat, 21 Apr 2007 14:46:58 +0200
Newsgroups: gnu.emacs.help
Daniel <hanmoai@xxxxxxxxx> writes:

> I am running it as root,

That's why.

> but the permission is read-only to root also.

The behavior was changed in Emacs 22. From etc/NEWS:

    *** When you are root, and you visit a file whose modes specify
    read-only, the Emacs buffer is now read-only too. Type C-x C-q if
    you want to make the buffer writable. (As root, you can in fact
    alter the file.)

And the corresponding antinews[1] entry:

   * When you are logged in as root, all files now give you writable
     buffers, reflecting the fact that you can write any files.


[1] "For those users who live backwards in time, here is information
  about downgrading to Emacs version 21.4."
  (info "(emacs)Antinews")

-- 
Johan BockgÃrd
_______________________________________________
help-gnu-emacs mailing list
help-gnu-emacs@xxxxxxx
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

<Prev in Thread] Current Thread [Next in Thread>