Subject: Re: bug#49711: 27.2; Deleting a directory called ~ deletes home directory

From: Lars Ingebrigtsen <[email-masked]>
Date: Sat, 24 Jul 2021 16:18:15 +0200

Eli Zaretskii <[email-masked]> 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