From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Michael Albinus <michael.albinus@gmx.de>
Cc: Jo Vermeulen <jo.vermeulen@gmail.com>, emacs-devel@gnu.org
Subject: backup-by-copying-when-mismatch (was: bug#7289: Tramp changes ownership of remote file when saving)
Date: Mon, 01 Nov 2010 10:12:31 -0400 [thread overview]
Message-ID: <jwvsjzlf87y.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <87k4kxzefl.fsf@gmx.de> (Michael Albinus's message of "Mon, 01 Nov 2010 08:33:02 +0100")
[ Moving this to emacs-devel. ]
>> 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?
You could place the `put' in files.el at toplevel, right next to the
definition of backup-by-copying-when-mismatch.
>> - 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.
That would be an option, indeed.
>> 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.
Neither do I.
> And we should check what it does mean for remote files, because they
> tend to "mismatch" more often.
That's a very good point.
Stefan
next prev parent reply other threads:[~2010-11-01 14:12 UTC|newest]
Thread overview: 15+ 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
2010-11-01 14:12 ` Stefan Monnier [this message]
2010-11-04 14:51 ` backup-by-copying-when-mismatch Michael Albinus
2010-11-20 10:49 ` backup-by-copying-when-mismatch Michael Albinus
2010-11-21 17:16 ` backup-by-copying-when-mismatch Stefan Monnier
2010-11-21 19:48 ` backup-by-copying-when-mismatch Michael Albinus
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvsjzlf87y.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
--cc=jo.vermeulen@gmail.com \
--cc=michael.albinus@gmx.de \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.