From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: kai@emptydomain.de (Kai =?iso-8859-15?Q?Gro=DFjohann?=) Newsgroups: gmane.emacs.devel Subject: Re: Tramp and VC integration: "calling user" Date: Sun, 03 Apr 2005 12:15:08 +0200 Message-ID: <87hdio2mkz.fsf@emptydomain.de> References: <87is386k0h.fsf@emptydomain.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1112523762 18701 80.91.229.2 (3 Apr 2005 10:22:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 3 Apr 2005 10:22:42 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Apr 03 12:22:40 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DI2FV-0004J4-0z for ged-emacs-devel@m.gmane.org; Sun, 03 Apr 2005 12:22:33 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DI2H9-0008R6-IB for ged-emacs-devel@m.gmane.org; Sun, 03 Apr 2005 06:24:15 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DI2Ao-000774-Ms for emacs-devel@gnu.org; Sun, 03 Apr 2005 06:17:43 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DI2Ak-00074E-94 for emacs-devel@gnu.org; Sun, 03 Apr 2005 06:17:41 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DI2Aj-00071j-Mn for emacs-devel@gnu.org; Sun, 03 Apr 2005 06:17:37 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtp (TLS-1.0:RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1DI29D-00025m-14 for emacs-devel@gnu.org; Sun, 03 Apr 2005 06:16:03 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1DI26w-0003mU-Ro for emacs-devel@gnu.org; Sun, 03 Apr 2005 12:13:42 +0200 Original-Received: from p3ee24e49.dip.t-dialin.net ([62.226.78.73]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 03 Apr 2005 12:13:42 +0200 Original-Received: from kai by p3ee24e49.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 03 Apr 2005 12:13:42 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 29 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: p3ee24e49.dip.t-dialin.net User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.50 (usg-unix-v) Cancel-Lock: sha1:MODZZsd+20SUbBSKvTEy+8cvrD4= 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:35527 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:35527 kai@emptydomain.de (Kai Großjohann) writes: > Suggestions for solving this: > > (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. I apologize for suggesting the above non-solution. I don't know what I was thinking. Thanks to Andre for setting me straight on this. > (2) New file operation file-calling-user, returns the calling user, as > defined in (1). This now seems to be the way to go. I'm not happy with the name, though. Names that crossed my mind for this operation: file-calling-user, file-standard-user, file-user-login-name. I don't like any of them. Do people have a better suggestion? > (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. I agree with Richard that this seems kludgy. Kai