From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Tramp and VC integration: "calling user" Date: Thu, 31 Mar 2005 23:10:31 -0500 Message-ID: References: <87is386k0h.fsf@emptydomain.de> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1112328874 5145 80.91.229.2 (1 Apr 2005 04:14:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 1 Apr 2005 04:14:34 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Apr 01 06:14:34 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DHDXv-0005kv-4L for ged-emacs-devel@m.gmane.org; Fri, 01 Apr 2005 06:14:11 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DHDo5-0002MH-Ki for ged-emacs-devel@m.gmane.org; Thu, 31 Mar 2005 23:30:53 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DHDnU-0002Ky-2C for emacs-devel@gnu.org; Thu, 31 Mar 2005 23:30:16 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DHDnQ-0002IW-0C for emacs-devel@gnu.org; Thu, 31 Mar 2005 23:30:12 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DHDnP-0002Gw-Ba for emacs-devel@gnu.org; Thu, 31 Mar 2005 23:30:11 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DHDUe-0001AM-2c for emacs-devel@gnu.org; Thu, 31 Mar 2005 23:10:48 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1DHDUN-0007s7-6n; Thu, 31 Mar 2005 23:10:31 -0500 Original-To: kai@emptydomain.de (Kai =?iso-8859-15?Q?Gro=DFjohann?=) In-reply-to: <87is386k0h.fsf@emptydomain.de> (kai@emptydomain.de) 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:35454 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:35454 (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.