[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#49711: 27.2; Deleting a directory called ~ deletes home directory
From: |
Lars Ingebrigtsen |
Subject: |
bug#49711: 27.2; Deleting a directory called ~ deletes home directory |
Date: |
Sat, 24 Jul 2021 16:18:15 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Eli Zaretskii <eliz@gnu.org> writes:
>> Do you mean "~/foo"? That works the same as before.
>
> Does it? And what gets recorded in the trash info -- "~/foo" or its
> expansion? If the latter, where does that expansion happen?
>
> And what about relative file names, as in "foo/bar" -- what gets
> recorded in trash info then?
Nothing has changed about the source file handling -- only the
construction of the path name in the trash can has changed.
> Btw, the implementation of directory-append is sub-optimal: it
> allocates space for the combined string twice. It is better to create
> an uninit Lisp string first, and then fill its data with the right
> contents.
Good idea.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no