From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#18125: file-precious-flag breaks symlinks Date: Fri, 04 Dec 2020 12:40:19 +0100 Message-ID: <87h7p1iyu4.fsf@gnus.org> References: <8boawa800q.fsf@fencepost.gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22552"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 18125@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 04 12:41:30 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kl9Sr-0005mY-Qz for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 04 Dec 2020 12:41:29 +0100 Original-Received: from localhost ([::1]:39588 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kl9Sq-0005EC-On for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 04 Dec 2020 06:41:28 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45188) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kl9SQ-0005Ce-0U for bug-gnu-emacs@gnu.org; Fri, 04 Dec 2020 06:41:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59804) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kl9SP-0005yU-PC for bug-gnu-emacs@gnu.org; Fri, 04 Dec 2020 06:41:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kl9SP-00037G-Ke for bug-gnu-emacs@gnu.org; Fri, 04 Dec 2020 06:41:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 04 Dec 2020 11:41:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18125 X-GNU-PR-Package: emacs Original-Received: via spool by 18125-submit@debbugs.gnu.org id=B18125.160708203111921 (code B ref 18125); Fri, 04 Dec 2020 11:41:01 +0000 Original-Received: (at 18125) by debbugs.gnu.org; 4 Dec 2020 11:40:31 +0000 Original-Received: from localhost ([127.0.0.1]:43114 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kl9Ru-00036D-Sf for submit@debbugs.gnu.org; Fri, 04 Dec 2020 06:40:31 -0500 Original-Received: from quimby.gnus.org ([95.216.78.240]:58294) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kl9Rt-00035z-D3 for 18125@debbugs.gnu.org; Fri, 04 Dec 2020 06:40:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=xBe3LxvuUcaOqS7SHwnZ4K3XCNSfoFQKf0W2RuxhpQo=; b=lk9Q2OEryHpv5ffpmLchoDyxJ4 jQx8u6adDHIkmIgtHTfE+6M5IlTVeZ7ODnx+G8Lt7Tz7uCJTBTuMT+WWvojwPDY7ju2R//BOCyirs Ak+LNLTPrE+mnxY8JYQ4S38DiLylOxP/GQyq5AfPmZeuqXSUvv74tGALRpKQ+cR7gdnI=; Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kl9Rl-00086l-2M; Fri, 04 Dec 2020 12:40:23 +0100 X-Now-Playing: The Matthew Herbert Big Band's _The State Between Us (1)_: "Be Still" In-Reply-To: <8boawa800q.fsf@fencepost.gnu.org> (Glenn Morris's message of "Mon, 28 Jul 2014 02:34:13 -0400") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:194980 Archived-At: Glenn Morris writes: > 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? This behaviour is still present in Emacs 28. > In any case, the doc only mentions breaking hardlinks. > > Setting find-file-visit-truename non-nil avoids the problem. I'm not sure whether this is a bug or whether it makes sense. I'm leaning towards... bug? Perhaps? Anybody got an opinion here? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no