From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#18125: file-precious-flag breaks symlinks Date: Mon, 28 Jul 2014 02:34:13 -0400 Message-ID: <8boawa800q.fsf@fencepost.gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1406529322 27963 80.91.229.3 (28 Jul 2014 06:35:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 28 Jul 2014 06:35:22 +0000 (UTC) To: 18125@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 28 08:35:14 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XBeWe-00084Y-NF for geb-bug-gnu-emacs@m.gmane.org; Mon, 28 Jul 2014 08:35:12 +0200 Original-Received: from localhost ([::1]:37780 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XBeWe-0007aN-Av for geb-bug-gnu-emacs@m.gmane.org; Mon, 28 Jul 2014 02:35:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34911) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XBeWa-0007YD-N7 for bug-gnu-emacs@gnu.org; Mon, 28 Jul 2014 02:35:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XBeWV-0002Xq-3f for bug-gnu-emacs@gnu.org; Mon, 28 Jul 2014 02:35:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:44644) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XBeWU-0002Xa-VD for bug-gnu-emacs@gnu.org; Mon, 28 Jul 2014 02:35:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XBeWU-0008Bd-3s for bug-gnu-emacs@gnu.org; Mon, 28 Jul 2014 02:35:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Morris Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 28 Jul 2014 06:35:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 18125 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: submit@debbugs.gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.140652925931410 (code B ref -1); Mon, 28 Jul 2014 06:35:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 28 Jul 2014 06:34:19 +0000 Original-Received: from localhost ([127.0.0.1]:39909 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XBeVm-0008AX-FS for submit@debbugs.gnu.org; Mon, 28 Jul 2014 02:34:18 -0400 Original-Received: from fencepost.gnu.org ([208.118.235.10]:39265 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XBeVj-0008AI-6k for submit@debbugs.gnu.org; Mon, 28 Jul 2014 02:34:16 -0400 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1XBeVh-0004ir-IX; Mon, 28 Jul 2014 02:34:13 -0400 X-Spook: Consul plutonium Exon Shell ASLET PGP Gazprom diwn X-Ran: A]S8tW6cv!33=,4jdW}UUNFd=I!]"OQjbM2U1R7u{${;I3%1@Ib:$K$m`}QZ%ukpf];>cX X-Hue: magenta X-Attribution: GM User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:91868 Archived-At: 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)