From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.help Subject: Re: Mac terminal.app: starting emacs, possibly as sudo Date: Mon, 17 Oct 2011 10:07:08 +0200 Message-ID: <87pqhwt51v.fsf@gmx.de> References: <300A41B7-78F8-422C-BF95-6FFEF947E79A@math.ethz.ch> <18107B2C-4BE2-40D9-90C5-02BCD0CF0DEF@Web.DE> <9C6F07E1-F15F-444D-B7D3-72C431393461@math.ethz.ch> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1318838847 15208 80.91.229.12 (17 Oct 2011 08:07:27 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 17 Oct 2011 08:07:27 +0000 (UTC) Cc: Emacs help To: Marius Hofert Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Oct 17 10:07:23 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RFiEF-0001pp-Ak for geh-help-gnu-emacs@m.gmane.org; Mon, 17 Oct 2011 10:07:23 +0200 Original-Received: from localhost ([::1]:47351 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RFiEE-0007qV-PE for geh-help-gnu-emacs@m.gmane.org; Mon, 17 Oct 2011 04:07:22 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:56768) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RFiEA-0007qH-DQ for help-gnu-emacs@gnu.org; Mon, 17 Oct 2011 04:07:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RFiE8-00067y-GO for help-gnu-emacs@gnu.org; Mon, 17 Oct 2011 04:07:18 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.23]:53330) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1RFiE7-00067c-VR for help-gnu-emacs@gnu.org; Mon, 17 Oct 2011 04:07:16 -0400 Original-Received: (qmail invoked by alias); 17 Oct 2011 08:07:12 -0000 Original-Received: from p57BB986D.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.152.109] by mail.gmx.net (mp015) with SMTP; 17 Oct 2011 10:07:12 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1/G8qgGz1PGJnJU18wLDHUxtqr5QRpalTz/2BiloP XFk+PbNWh1TWb1 In-Reply-To: <9C6F07E1-F15F-444D-B7D3-72C431393461@math.ethz.ch> (Marius Hofert's message of "Mon, 17 Oct 2011 09:34:22 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 213.165.64.23 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:82585 Archived-At: Marius Hofert writes: > Dear Perry, Dear Peter, Hi, > Well, maybe I should rethink the whole process: When do I want to open > emacs as root? From time to time, I open a file and modify it. When I > try to save it, I get the read-only warning. This means I would like > to be su to modify this file. It's probably best to just open it with > C-x C-f /sudo::path-to-file... But by closing and reopening all my > modifications to the file are lost. How can one avoid this? 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". > Cheers, > > Marius Best regards, Michael.