GNU bug report logs -
#18125
file-precious-flag breaks symlinks
Previous Next
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.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 18125 in the body.
You can then email your comments to 18125 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#18125
; Package
emacs
.
(Mon, 28 Jul 2014 06:35:02 GMT)
Full text and
rfc822 format available.
Message #3 received at submit <at> debbugs.gnu.org (full text, mbox):
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)
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#18125
; Package
emacs
.
(Fri, 04 Dec 2020 11:41:01 GMT)
Full text and
rfc822 format available.
Message #6 received at 18125 <at> debbugs.gnu.org (full text, mbox):
Glenn Morris <rgm <at> 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
Added tag(s) confirmed.
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Fri, 04 Dec 2020 11:41:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#18125
; Package
emacs
.
(Fri, 04 Dec 2020 12:09:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 18125 <at> debbugs.gnu.org (full text, mbox):
> From: Lars Ingebrigtsen <larsi <at> gnus.org>
> Date: Fri, 04 Dec 2020 12:40:19 +0100
> Cc: 18125 <at> debbugs.gnu.org
>
> Glenn Morris <rgm <at> 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?
IMO, we could provide the alternative behavior as opt-in, conditioned
on a new option. It is not clear to me that everyone will want to
overwrite the target, so an incompatible change here must be an
opt-in.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#18125
; Package
emacs
.
(Fri, 20 Aug 2021 14:23:01 GMT)
Full text and
rfc822 format available.
Message #14 received at 18125 <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii <eliz <at> gnu.org> writes:
> IMO, we could provide the alternative behavior as opt-in, conditioned
> on a new option. It is not clear to me that everyone will want to
> overwrite the target, so an incompatible change here must be an
> opt-in.
It's a pretty specialised option (which makes it hard to explain), but I
get your point about being backwards-compatible in this area.
So I've now added the new option and adjusted the code.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
bug marked as fixed in version 28.1, send any further explanations to
18125 <at> debbugs.gnu.org and Glenn Morris <rgm <at> gnu.org>
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Fri, 20 Aug 2021 14:23:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 18 Sep 2021 11:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 3 years and 201 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.