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: Thu, 31 Mar 2005 16:40:08 +0200 Message-ID: <87acoj7ubb.fsf@emptydomain.de> References: <87is386k0h.fsf@emptydomain.de> <87mzskym6e.fsf-monnier+emacs@gnu.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1112280534 7889 80.91.229.2 (31 Mar 2005 14:48:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 31 Mar 2005 14:48:54 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 31 16:48:51 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DH0xu-0000rt-4j for ged-emacs-devel@m.gmane.org; Thu, 31 Mar 2005 16:48:10 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DH1Ec-0002GQ-9G for ged-emacs-devel@m.gmane.org; Thu, 31 Mar 2005 10:05:26 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DH1Ck-0001TJ-Rm for emacs-devel@gnu.org; Thu, 31 Mar 2005 10:03:31 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DH1CY-0001Mr-W2 for emacs-devel@gnu.org; Thu, 31 Mar 2005 10:03:24 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DH1CX-0001LK-Lt for emacs-devel@gnu.org; Thu, 31 Mar 2005 10:03:17 -0500 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1DH0tQ-0002et-9s for emacs-devel@gnu.org; Thu, 31 Mar 2005 09:43:32 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1DH0q4-0007pL-It for emacs-devel@gnu.org; Thu, 31 Mar 2005 16:40:04 +0200 Original-Received: from pd9e1ecfb.dip.t-dialin.net ([217.225.236.251]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 31 Mar 2005 16:40:04 +0200 Original-Received: from kai by pd9e1ecfb.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 31 Mar 2005 16:40:04 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 20 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: pd9e1ecfb.dip.t-dialin.net User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.50 (usg-unix-v) Cancel-Lock: sha1:VfLsJDakxjnsYWLH1BnPTjOSf3c= 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:35429 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:35429 Stefan Monnier 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. > > Could you remind me why file-writable-p can't be used? Well, hm. What happens if we are in the same group, I check out the file, it becomes group-writable, then you try to edit it? (I have no idea whether a file could become group-writable on checkout, though.) Perhaps Andre needs to chime in here... Could be that you have a good point. Kai