From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Richard M. Stallman" 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 18:23:08 -0500 Message-ID: References: <1132399024.3050.90.camel@localhost> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1132529337 11558 80.91.229.2 (20 Nov 2005 23:28:57 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 20 Nov 2005 23:28:57 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 21 00:28:56 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EdybG-00007y-Ux for ged-emacs-devel@m.gmane.org; Mon, 21 Nov 2005 00:27:59 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EdybF-0003G9-Sa for ged-emacs-devel@m.gmane.org; Sun, 20 Nov 2005 18:27:57 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EdyWc-0007tM-FW for emacs-devel@gnu.org; Sun, 20 Nov 2005 18:23:12 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EdyWb-0007t0-Ty for emacs-devel@gnu.org; Sun, 20 Nov 2005 18:23:10 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EdyWb-0007sv-KZ for emacs-devel@gnu.org; Sun, 20 Nov 2005 18:23:09 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EdyWb-0001gu-Lx for emacs-devel@gnu.org; Sun, 20 Nov 2005 18:23:09 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1EdyWa-0001sO-AV; Sun, 20 Nov 2005 18:23:08 -0500 Original-To: Andre Spiegel In-reply-to: <1132399024.3050.90.camel@localhost> (message from Andre Spiegel on Sat, 19 Nov 2005 12:17:04 +0100) 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:46375 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. What do you think? It seems ok to me, provided it is localized and simple enough that it isn't a risk to install it now. Would you like to write the patch? It would be necessary to change the Lisp manual too.