GNU bug report logs - #49711
27.2; Deleting a directory called ~ deletes home directory

Previous Next

Package: emacs;

Reported by: Al Haji-Ali <abdo.haji.ali <at> gmail.com>

Date: Fri, 23 Jul 2021 15:08:02 UTC

Severity: normal

Tags: moreinfo

Found in version 27.2

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: abdo.haji.ali <at> gmail.com, 49711 <at> debbugs.gnu.org
Subject: bug#49711: 27.2; Deleting a directory called ~ deletes home directory
Date: Sat, 24 Jul 2021 16:18:15 +0200
Eli Zaretskii <eliz <at> 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




This bug report was last modified 3 years and 301 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.