From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andre Spiegel Newsgroups: gmane.emacs.devel Subject: Re: Tramp and VC integration: "calling user" Date: Fri, 01 Apr 2005 19:43:07 +0200 Message-ID: <1112377387.17621.111.camel@localhost> References: <87is386k0h.fsf@emptydomain.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1112377939 22305 80.91.229.2 (1 Apr 2005 17:52:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 1 Apr 2005 17:52:19 +0000 (UTC) Cc: Kai =?ISO-8859-1?Q?Gro=DFjohann?= , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Apr 01 19:52:17 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DHQIx-0000lA-60 for ged-emacs-devel@m.gmane.org; Fri, 01 Apr 2005 19:51:35 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DHQZu-0001tB-Hz for ged-emacs-devel@m.gmane.org; Fri, 01 Apr 2005 13:09:06 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DHQXk-0001RI-LD for emacs-devel@gnu.org; Fri, 01 Apr 2005 13:06:52 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DHQXa-0001O8-AV for emacs-devel@gnu.org; Fri, 01 Apr 2005 13:06:44 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DHQXa-0001H0-23 for emacs-devel@gnu.org; Fri, 01 Apr 2005 13:06:42 -0500 Original-Received: from [193.113.160.15] (helo=mail.o2.co.uk) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DHQAe-00065f-2e; Fri, 01 Apr 2005 12:43:00 -0500 Original-Received: from [217.231.186.132] (217.231.186.132) by mail.o2.co.uk (7.0.042) id 4240232C0015B602; Fri, 1 Apr 2005 18:44:47 +0100 Original-To: rms@gnu.org In-Reply-To: X-Mailer: Evolution 2.0.4 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:35482 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:35482 On Thu, 2005-03-31 at 23:10 -0500, Richard Stallman wrote: > (1) New file operation file-mine-p, returns true if the file is owned > by the "calling user". For non-special files, the calling user is > the user who invoked Emacs. For Tramp files, the calling user is > the user logged into the remote host. > > (2) New file operation file-calling-user, returns the calling user, as > defined in (1). > > (3) Augment the return value of file-remote-p to indicate the calling > user. The return value could be augmented to also indicate the > remote host, if the file is remote. > > #3 seems kludgy, so it shouldn't be that. I prefer #1. But #1 is in fact wrong. It is irrelevant who the owner of the file is (the same argument as I made concerning file-writable-p). What must be tested is whether the name of the locking user, as recorded in the RCS master file, is that of the calling user. I still think #2 is the best way to achieve this.