bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#18125: file-precious-flag breaks symlinks


From: Glenn Morris
Subject: bug#18125: file-precious-flag breaks symlinks
Date: Mon, 28 Jul 2014 02:34:13 -0400
User-agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)

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)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]