all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Peter Dyballa <Peter_Dyballa@Web.DE>
To: Perry Smith <pedzsan@gmail.com>
Cc: Emacs help <help-gnu-emacs@gnu.org>,
	Michael Albinus <michael.albinus@gmx.de>
Subject: Re: Mac terminal.app: starting emacs, possibly as sudo
Date: Mon, 17 Oct 2011 17:28:20 +0200	[thread overview]
Message-ID: <10494F75-AEA3-4D61-A919-BB73477752D4@Web.DE> (raw)
In-Reply-To: <133B8995-D826-4EBB-BB64-319FA99E7C39@gmail.com>


Am 17.10.2011 um 15:34 schrieb Perry Smith:

> 
> On Oct 17, 2011, at 3:07 AM, Michael Albinus wrote:
> 
>> Marius Hofert <marius.hofert@math.ethz.ch> writes:
>> 
>> If you edit file /a/b/c and you cannot save it because it is owned by
>> root, you could save it by "C-x C-w /sudo::/a/b/c".
> 
> Now there's a clever man... I would have saved it off, opened it with sudo,
> and pasted the changes in.  I'd never thought to just save the changes
> via sudo.

You're opening and changing and saving that one file with "elevated privileges", just as some native Mac OS X application would when it asks you for the password. (Don't know what happens with the backup copy /a/b/c~ which GNU Emacs produces. And how the process in reality proceeds; it's easy to rename the file as the backup copy and open it afterwards in a buffer that has been renamed, so that you'll be saving saving it as a new file – which makes handling of date stamps very easy.)

--
Greetings

  Pete

"Klingons do not believe in indentation - except perhaps in the skulls of their project managers."




  reply	other threads:[~2011-10-17 15:28 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-16 22:26 Mac terminal.app: starting emacs, possibly as sudo Marius Hofert
2011-10-16 23:26 ` Perry Smith
2011-10-17  7:37   ` Marius Hofert
2011-10-17 10:36     ` Peter Dyballa
2011-10-17 13:33       ` Perry Smith
2011-10-17 15:18         ` Peter Dyballa
2011-10-17 20:52       ` Marius Hofert
2011-10-16 23:43 ` Peter Dyballa
2011-10-17  7:34   ` Marius Hofert
2011-10-17  8:07     ` Michael Albinus
2011-10-17  8:29       ` Marius Hofert
2011-10-17  8:32         ` Michael Albinus
2011-10-17  9:13           ` Marius Hofert
2011-10-17 10:38             ` Peter Dyballa
2011-10-17 13:34       ` Perry Smith
2011-10-17 15:28         ` Peter Dyballa [this message]
2011-10-17 10:34     ` Peter Dyballa
     [not found] <mailman.387.1318803983.15868.help-gnu-emacs@gnu.org>
2011-10-17 14:04 ` Stefan Monnier

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=10494F75-AEA3-4D61-A919-BB73477752D4@Web.DE \
    --to=peter_dyballa@web.de \
    --cc=help-gnu-emacs@gnu.org \
    --cc=michael.albinus@gmx.de \
    --cc=pedzsan@gmail.com \
    /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.