GNU bug report logs - #11490
vc-next-action overwrites changes in non-checked-out RCS file

Previous Next

Package: emacs;

Reported by: Jonathan Kamens <jik <at> kamens.us>

Date: Wed, 16 May 2012 19:33:01 UTC

Severity: important

Tags: confirmed, help

Done: Chong Yidong <cyd <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Jonathan Kamens <jik <at> kamens.us>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 11490 <at> debbugs.gnu.org
Subject: bug#11490: vc-next-action overwrites changes in non-checked-out RCS file
Date: Wed, 16 May 2012 21:17:34 -0400
[Message part 1 (text/plain, inline)]
Try it without making the file writable.

This happens, e.g., if a file is edited as root by a user using vim, 
which doesn't care whether it's writable or not, since it's root doing 
the editing, and then by a user using Emacs, which /does/ care because 
it detects VC and thus makes the file read-only in Emacs. The user's 
first impulse will be to type C-x v v, which will overwrite the previous 
editor's changes.

The problem goes away when vc-mistrust-permissions is set to true.

I would argue that C-x v v should always check the status of a file with 
vc-mistrust-permissions set to true (or the logical equivalent) before 
overwriting its contents and potentially losing data.

  jik

[Message part 2 (text/html, inline)]

This bug report was last modified 12 years and 199 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.