all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: bojohan+news@dd.chalmers.se (Johan Bockgård)
To: help-gnu-emacs@gnu.org
Subject: Re: Why emacs touches read-only file?
Date: Sat, 21 Apr 2007 14:46:58 +0200	[thread overview]
Message-ID: <yoijodlhki7x.fsf@gamma02.me.chalmers.se> (raw)
In-Reply-To: 1177052457.225050.244290@b58g2000hsg.googlegroups.com

Daniel <hanmoai@gmail.com> 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

      parent reply	other threads:[~2007-04-21 12:46 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-18 18:20 Why emacs touches read-only file? Daniel
2007-04-18 18:49 ` Eric Hanchrow
2007-04-18 19:22 ` Glenn Morris
2007-04-19  3:00   ` Matthew Flaschen
2007-04-19  4:43   ` Daniel
2007-04-19  7:51     ` Glenn Morris
2007-04-19 18:09       ` Daniel
2007-04-19 19:07         ` Peter Dyballa
     [not found]         ` <mailman.2277.1177009971.7795.help-gnu-emacs@gnu.org>
2007-04-19 21:28           ` Daniel
2007-04-20  1:02           ` EMacs & X-windows "Wilfred Zegwaard (privé)"
2007-04-20  9:03             ` Peter Dyballa
2007-04-19 10:07     ` Why emacs touches read-only file? Arne Schmitz
2007-04-19 18:10       ` Daniel
2007-04-20  2:28 ` Tim X
2007-04-20  7:00   ` Daniel
2007-04-20 14:51     ` Daniel
2007-04-21  3:48     ` Tim X
2007-04-21 12:46     ` Johan Bockgård [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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=yoijodlhki7x.fsf@gamma02.me.chalmers.se \
    --to=bojohan+news@dd.chalmers.se \
    --cc=help-gnu-emacs@gnu.org \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.