GNU bug report logs - #18125
file-precious-flag breaks symlinks

Previous Next

Package: emacs;

Reported by: Glenn Morris <rgm <at> gnu.org>

Date: Mon, 28 Jul 2014 06:35:01 UTC

Severity: normal

Tags: confirmed

Found in version 24.3.92

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #3 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: submit <at> debbugs.gnu.org
Subject: file-precious-flag breaks symlinks
Date: Mon, 28 Jul 2014 02:34:13 -0400
Package: emacs
Version: 24.3.92

touch foo
ln -s foo bar
emacs-24.3.92  -Q --eval '(setq file-precious-flag t)' bar
change bar and save
   -> bar is no longer a symlink

AFAICS, it has always (since at least 22.3) been like this.
Does it have to be, though? Why can't it overwrite the target of the link?

In any case, the doc only mentions breaking hardlinks.

Setting find-file-visit-truename non-nil avoids the problem.

(Cf http://debbugs.gnu.org/454)




This bug report was last modified 3 years and 334 days ago.

Previous Next


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