From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#7289: Tramp changes ownership of remote file when saving Date: Mon, 01 Nov 2010 08:33:02 +0100 Message-ID: <87k4kxzefl.fsf@gmx.de> References: <874oc6ze69.fsf@gmx.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1288597411 25657 80.91.229.12 (1 Nov 2010 07:43:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 1 Nov 2010 07:43:31 +0000 (UTC) Cc: 7289@debbugs.gnu.org, Jo Vermeulen To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Nov 01 08:43:27 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PCp38-0003A6-V4 for geb-bug-gnu-emacs@m.gmane.org; Mon, 01 Nov 2010 08:43:27 +0100 Original-Received: from localhost ([127.0.0.1]:52306 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PCp37-0004bb-Vd for geb-bug-gnu-emacs@m.gmane.org; Mon, 01 Nov 2010 03:43:26 -0400 Original-Received: from [140.186.70.92] (port=54018 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PCp31-0004bW-60 for bug-gnu-emacs@gnu.org; Mon, 01 Nov 2010 03:43:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PCp2z-0001CI-Sx for bug-gnu-emacs@gnu.org; Mon, 01 Nov 2010 03:43:19 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:44352) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PCp2z-0001CE-Pw for bug-gnu-emacs@gnu.org; Mon, 01 Nov 2010 03:43:17 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PCopB-0000YU-Kl; Mon, 01 Nov 2010 03:29:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 01 Nov 2010 07:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7289 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 7289-submit@debbugs.gnu.org id=B7289.12885965312128 (code B ref 7289); Mon, 01 Nov 2010 07:29:01 +0000 Original-Received: (at 7289) by debbugs.gnu.org; 1 Nov 2010 07:28:51 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PCop1-0000YH-Dq for submit@debbugs.gnu.org; Mon, 01 Nov 2010 03:28:51 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.23] helo=mail.gmx.net) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1PCooy-0000YB-Tv for 7289@debbugs.gnu.org; Mon, 01 Nov 2010 03:28:50 -0400 Original-Received: (qmail invoked by alias); 01 Nov 2010 07:33:06 -0000 Original-Received: from p4FC19047.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [79.193.144.71] by mail.gmx.net (mp061) with SMTP; 01 Nov 2010 08:33:06 +0100 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1+Sal99ORSS3jMsVnkRecRIjp+pW1zWJ/V7OxN6bo 6zJDYc+NHWOoB+ In-Reply-To: (Stefan Monnier's message of "Sun, 31 Oct 2010 15:15:08 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 01 Nov 2010 03:29:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:41327 Archived-At: Stefan Monnier writes: > 2 problems with this patch: > - (put 'permanent-local t) should *never* be in such a function. > It's a top-level operation that has global effects and belongs right > next to the var's defvar. I want to have `backup-by-copying-when-mismatch' buffer local. If I set it in `insert-file-contents' (via `make-local-variable'), it is not kept buffer local in that buffer. How could I achieve this otherwise? > - This makes it impossible to choose backup-by-copying-when-mismatch=nil > when accessing such remote files, whereas for local files accessed by > root a (setq backup-by-copying-when-mismatch nil) in the .emacs will > do the trick. D'accord. We would need another way for the user to express his wish. Maybe there shall be also other values but only than nil and t. > A simpler solution would be to change the default value of > backup-by-copying-when-mismatch to t for everyone rather than just > for root. I don't know what would the objections to this. >From my pov it would be acceptable, but I don't know how people see it. And we should check what it does mean for remote files, because they tend to "mismatch" more often. > Stefan Best regards, Michael.