unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Glenn Morris <rgm@gnu.org>
Cc: 18125@debbugs.gnu.org
Subject: bug#18125: file-precious-flag breaks symlinks
Date: Fri, 04 Dec 2020 12:40:19 +0100	[thread overview]
Message-ID: <87h7p1iyu4.fsf@gnus.org> (raw)
In-Reply-To: <8boawa800q.fsf@fencepost.gnu.org> (Glenn Morris's message of "Mon, 28 Jul 2014 02:34:13 -0400")

Glenn Morris <rgm@gnu.org> 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





  reply	other threads:[~2020-12-04 11:40 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-28  6:34 bug#18125: file-precious-flag breaks symlinks Glenn Morris
2020-12-04 11:40 ` Lars Ingebrigtsen [this message]
2020-12-04 12:07   ` Eli Zaretskii
2021-08-20 14:21     ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87h7p1iyu4.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=18125@debbugs.gnu.org \
    --cc=rgm@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).