From: Michael Albinus <michael.albinus@gmx.de>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: 7289@debbugs.gnu.org, Jo Vermeulen <jo.vermeulen@gmail.com>
Subject: bug#7289: Tramp changes ownership of remote file when saving
Date: Mon, 01 Nov 2010 08:33:02 +0100 [thread overview]
Message-ID: <87k4kxzefl.fsf@gmx.de> (raw)
In-Reply-To: <jwv4oc2dvod.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Sun, 31 Oct 2010 15:15:08 -0400")
Stefan Monnier <monnier@iro.umontreal.ca> writes:
> 2 problems with this patch:
> - (put <var> '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.
prev parent reply other threads:[~2010-11-01 7:33 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-27 10:46 bug#7289: Tramp changes ownership of remote file when saving Jo Vermeulen
2010-10-27 13:53 ` Stefan Monnier
2010-10-27 15:21 ` Jo Vermeulen
2010-10-28 12:37 ` Michael Albinus
2010-10-29 10:42 ` Jo Vermeulen
2010-10-29 11:25 ` Michael Albinus
2010-10-29 13:28 ` Jo Vermeulen
2010-10-29 19:31 ` Michael Albinus
2010-10-31 19:15 ` Stefan Monnier
2010-11-01 7:33 ` Michael Albinus [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87k4kxzefl.fsf@gmx.de \
--to=michael.albinus@gmx.de \
--cc=7289@debbugs.gnu.org \
--cc=jo.vermeulen@gmail.com \
--cc=monnier@iro.umontreal.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).