From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#59986: 30.0.50; Can't trash file with broken symbolic link Date: Fri, 16 Dec 2022 17:56:25 +0200 Message-ID: <837cyrjqae.fsf@gnu.org> References: <83lenbpj9o.fsf@gnu.org> <83359jpdm1.fsf@gnu.org> <837cyunp81.fsf@gnu.org> <87tu1xttgv.fsf@web.de> <83v8mdkunj.fsf@gnu.org> <83y1r8k5v2.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34918"; mail-complaints-to="usenet@ciao.gmane.io" Cc: michael_heerdegen@web.de, 59986-done@debbugs.gnu.org To: Jean Louis Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 16 16:57:14 2022 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 1p6D5G-0008rt-Be for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 16 Dec 2022 16:57:14 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p6D55-0003y3-Qq; Fri, 16 Dec 2022 10:57:03 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p6D54-0003xp-J4 for bug-gnu-emacs@gnu.org; Fri, 16 Dec 2022 10:57:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p6D54-0000v7-B0 for bug-gnu-emacs@gnu.org; Fri, 16 Dec 2022 10:57:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p6D54-0001AH-4n for bug-gnu-emacs@gnu.org; Fri, 16 Dec 2022 10:57:02 -0500 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Fri, 16 Dec 2022 15:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 59986 X-GNU-PR-Package: emacs Mail-Followup-To: 59986@debbugs.gnu.org, eliz@gnu.org, bugs@gnu.support Original-Received: via spool by 59986-done@debbugs.gnu.org id=D59986.16712061914463 (code D ref 59986); Fri, 16 Dec 2022 15:57:01 +0000 Original-Received: (at 59986-done) by debbugs.gnu.org; 16 Dec 2022 15:56:31 +0000 Original-Received: from localhost ([127.0.0.1]:50132 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p6D4Z-00019v-JW for submit@debbugs.gnu.org; Fri, 16 Dec 2022 10:56:31 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:52352) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p6D4X-00019n-Nc for 59986-done@debbugs.gnu.org; Fri, 16 Dec 2022 10:56:30 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p6D4S-0000je-7d; Fri, 16 Dec 2022 10:56:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=2sDWXQjfVOdpV17AnKAJfnArk2j16Eo/RvM6YR+JCyI=; b=WB/WJZZYSAyZ 0TwOtlq8ZPV5FGsuBsJA0ctjCE4tH4NEjDnGtZmb3JNACcbifzeTxfhIlNXbNSyxcFqoXkZClox+y ok0P7zaLBW9Xa9ASDCWL1+29dKKCtV2qq5gfSGduIhwRsK3E1P1cWQ0KmEYVMTcCRRZLL3LMmivA1 s396cDKyuEEIvHapiJe7aJsNBfpuTTz+JJaaCi398t67qnUb6/i1sbW1WN19VrGVw4VxywCRDPDFN drDLxBYeMJOB6SCB1Meb8W3tdOtiahktgdBBMYbyjvmhU4Qi9KKiVheu83Npj6RyJ+Hvyfe1fwFsd K3bmgSKN4XRBWu0OfnY8rA==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p6D4R-0000qj-Iq; Fri, 16 Dec 2022 10:56:23 -0500 In-Reply-To: (message from Jean Louis on Fri, 16 Dec 2022 09:39:31 +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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:251219 Archived-At: > Date: Fri, 16 Dec 2022 09:39:31 +0300 > From: Jean Louis > Cc: michael_heerdegen@web.de, 59986@debbugs.gnu.org > > I have manually applied that patch as I do not know how to > apply it directly. Am I supposed to use `patch' command? > > I have tested your patch and it can delete dangling symlinks > and moves them to Trash. And I could observe it adds ~N~ to > file names, so it works well. > > lrwxrwxrwx 1 9 Dec 15 17:51 more -> something > lrwxrwxrwx 1 9 Dec 16 09:37 more.~1~ -> something > lrwxrwxrwx 1 9 Dec 16 09:37 more.~2~ -> something > -rwxr-xr-x 1 1.5K Sep 15 2018 > > Thanks much. Thanks for testing. I've now installed the fix on the emacs-29 branch, and I'm therefore closing this bug.