From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: [Ronan.Keryell@enstb.org: tramp sudo:: and version control on RCS root controlled files] Date: Sun, 20 Nov 2005 12:02:59 -0500 Message-ID: <87psov6yo6.fsf-monnier+emacs@gnu.org> References: <1132399024.3050.90.camel@localhost> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1132507205 16259 80.91.229.2 (20 Nov 2005 17:20:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 20 Nov 2005 17:20:05 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 20 18:20:02 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Edsqr-0000OE-2z for ged-emacs-devel@m.gmane.org; Sun, 20 Nov 2005 18:19:41 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Edsqq-0006Sb-A2 for ged-emacs-devel@m.gmane.org; Sun, 20 Nov 2005 12:19:40 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Edsao-00084C-TR for emacs-devel@gnu.org; Sun, 20 Nov 2005 12:03:07 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Edsan-000835-3o for emacs-devel@gnu.org; Sun, 20 Nov 2005 12:03:06 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Edsam-00082v-Id for emacs-devel@gnu.org; Sun, 20 Nov 2005 12:03:04 -0500 Original-Received: from [209.226.175.188] (helo=tomts25-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Edsaj-0005PA-5J; Sun, 20 Nov 2005 12:03:01 -0500 Original-Received: from alfajor ([67.71.33.38]) by tomts25-srv.bellnexxia.net (InterMail vM.5.01.06.10 201-253-122-130-110-20040306) with ESMTP id <20051120170259.TUMS28424.tomts25-srv.bellnexxia.net@alfajor>; Sun, 20 Nov 2005 12:02:59 -0500 Original-Received: by alfajor (Postfix, from userid 1000) id 463A0D72BA; Sun, 20 Nov 2005 12:02:59 -0500 (EST) Original-To: Andre Spiegel In-Reply-To: <1132399024.3050.90.camel@localhost> (Andre Spiegel's message of "Sat, 19 Nov 2005 12:17:04 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-Originating-IP: [0] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:46343 Archived-At: > The only solution I can think of would be to have a new > file-handler-sensitive operation (file-login-name FILE) which returns > the name of the user under which Emacs accesses the given FILE. For > local files, that would be equivalent to user-login-name, for remote > files it would be the name of the remote user, or "root" if Tramp sudo:: > is involved. We could try and use (process-file "whoami") or (process-file "id"). Stefan