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: Tramp and VC integration: "calling user" Date: Thu, 31 Mar 2005 08:34:08 -0500 Message-ID: <87mzskym6e.fsf-monnier+emacs@gnu.org> References: <87is386k0h.fsf@emptydomain.de> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1112276306 22979 80.91.229.6 (31 Mar 2005 13:38:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 31 Mar 2005 13:38:26 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 31 15:38:20 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1DGzsK-0002Jc-00 for ; Thu, 31 Mar 2005 15:38:20 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DH091-0000HL-Ul for ged-emacs-devel@m.gmane.org; Thu, 31 Mar 2005 08:55:35 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DH08J-0000A1-GI for emacs-devel@gnu.org; Thu, 31 Mar 2005 08:54:51 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DH08B-00005t-Gb for emacs-devel@gnu.org; Thu, 31 Mar 2005 08:54:45 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DH08B-00005q-CR for emacs-devel@gnu.org; Thu, 31 Mar 2005 08:54:43 -0500 Original-Received: from [209.226.175.188] (helo=tomts25-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DGzoN-0003AG-3a for emacs-devel@gnu.org; Thu, 31 Mar 2005 08:34:15 -0500 Original-Received: from alfajor ([67.71.116.48]) by tomts25-srv.bellnexxia.net (InterMail vM.5.01.06.10 201-253-122-130-110-20040306) with ESMTP id <20050331133408.RLFX27245.tomts25-srv.bellnexxia.net@alfajor>; Thu, 31 Mar 2005 08:34:08 -0500 Original-Received: by alfajor (Postfix, from userid 1000) id 6A4B7D75AE; Thu, 31 Mar 2005 08:34:08 -0500 (EST) Original-To: kai@emptydomain.de (=?iso-8859-1?q?Kai_Gro=3Fjohann?=) In-Reply-To: <87is386k0h.fsf@emptydomain.de> ( =?iso-8859-1?q?Kai_Gro=3Fjohann's_message_of?= "Thu, 31 Mar 2005 15:07:58 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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:35426 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:35426 > 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. > (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. Could you remind me why file-writable-p can't be used? Stefan