From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#49711: 27.2; Deleting a directory called ~ deletes home directory Date: Sat, 24 Jul 2021 16:18:15 +0200 Message-ID: <87eebn3ie0.fsf@gnus.org> References: <87czr9j9ns.fsf@gnus.org> <8735s43pte.fsf@gnus.org> <83h7gjzz1c.fsf@gnu.org> <87im0z3niu.fsf@gnus.org> <83fsw3zxz5.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9442"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: abdo.haji.ali@gmail.com, 49711@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jul 24 16:19:11 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m7IUg-0002Gw-N3 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 24 Jul 2021 16:19:10 +0200 Original-Received: from localhost ([::1]:47500 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m7IUf-0007V9-Ph for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 24 Jul 2021 10:19:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41088) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m7IUY-0007Uz-TS for bug-gnu-emacs@gnu.org; Sat, 24 Jul 2021 10:19:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35164) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m7IUY-0006wr-Lp for bug-gnu-emacs@gnu.org; Sat, 24 Jul 2021 10:19:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m7IUY-0002sL-Iu for bug-gnu-emacs@gnu.org; Sat, 24 Jul 2021 10:19:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 24 Jul 2021 14:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49711 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 49711-submit@debbugs.gnu.org id=B49711.162713630711000 (code B ref 49711); Sat, 24 Jul 2021 14:19:02 +0000 Original-Received: (at 49711) by debbugs.gnu.org; 24 Jul 2021 14:18:27 +0000 Original-Received: from localhost ([127.0.0.1]:46710 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m7ITz-0002rL-Ft for submit@debbugs.gnu.org; Sat, 24 Jul 2021 10:18:27 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:34218) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m7ITx-0002r8-9q for 49711@debbugs.gnu.org; Sat, 24 Jul 2021 10:18:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=j3+VTVuAPkSKi9ucuaaCE30juZvOzZPjP1uqCA/a5pM=; b=LDCetE76XEjF4DY/QRSMvwATUy KtB3daTdh76We1w1EFCty6eyRD4x4jAuZhOALGXWbvnnYEfFlo1WvRyPqnQgdrLEamf4vT+5cDRnY PR7hQ6g3iRoNdHBERilRutfABPoJowI2mv8SM/AZvsuehZJWvh4E8ieuDAxisxIxgyOk=; Original-Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m7ITn-000621-SJ; Sat, 24 Jul 2021 16:18:18 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAElBMVEUQFBg5TF1VcZBv hp3Bwr////9uWi7SAAAAAWJLR0QF+G/pxwAAAAd0SU1FB+UHGAwIKFmmWGcAAAGySURBVDjLdZMB muIwCIVh9gJA9wCFeIBJ4gXcnfufaR9J1GrdWLVf/vIID0pESh8XqwquM9CxhM8RkhH4+0/EWUzd wgLsQ3JTE/qQX8hpPwM8y2r+ITvSI4eQTGF7O5ev+5g3eFABnKuNEs3DEY8FzuxKhgMIcXhIxidg 6NL3l6R2An2CPBZPH49AOYEOkOoj94yQuxucWVWZeSRHjlVbrFXGqeC4z+osDstXNbKE/BVwgohz RIIXoZhpE3B72Z59w49sh+0sbQBHxFAqvcWO6XgAkgFKd9TEonepWAAuk4o++5Ngm4MyXMuOZBcg RYLqk+TMRMNntMfXOE7DW+mQraOfAEMjSuvROlaro20ISol+WHW0jXi3UvobQITwftymCTBKxvtz uy2ArG6uT/C97QPoG7jeSjrq94iZA4VdbigzTTRtCXBJvlby+1aGMQBR8epIvgfohF7+2gH4fDty 7H5+ZAKkSKnpU1i7Avzq8CojDPlLSZeiX/4QQHuAVXnguERb1mHmFd8NXk9QhbbSskCrcGVLL3ov /SoAfQCtqjt7DgMiGtED4LA5u/yYgi9Y8g/BjluI0nu+VwAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAy MS0wNy0yNFQxMjowODo0MCswMDowMDtJTwoAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjEtMDctMjRU MTI6MDg6NDArMDA6MDBKFPe2AAAAAElFTkSuQmCC X-Now-Playing: Depeche Mode's _Some Great Reward_: "Blasphemous Rumours" In-Reply-To: <83fsw3zxz5.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 24 Jul 2021 15:40:30 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:210637 Archived-At: Eli Zaretskii 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