From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jean Louis Newsgroups: gmane.emacs.bugs Subject: bug#59986: 30.0.50; Can't trash file with broken symbolic link Date: Fri, 16 Dec 2022 09:39:31 +0300 Message-ID: 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> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5040"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/2.2.9+54 (af2080d) (2022-11-21) Cc: michael_heerdegen@web.de, 59986@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 16 07:42:24 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 1p64QK-00014U-FX for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 16 Dec 2022 07:42:24 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p64Q8-00066M-O0; Fri, 16 Dec 2022 01:42:13 -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 1p64Q3-00063M-7M for bug-gnu-emacs@gnu.org; Fri, 16 Dec 2022 01:42:08 -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 1p64Pz-0007tA-38 for bug-gnu-emacs@gnu.org; Fri, 16 Dec 2022 01:42:06 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p64Py-0004ga-Cn for bug-gnu-emacs@gnu.org; Fri, 16 Dec 2022 01:42:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Jean Louis Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 16 Dec 2022 06:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59986 X-GNU-PR-Package: emacs Original-Received: via spool by 59986-submit@debbugs.gnu.org id=B59986.167117286417998 (code B ref 59986); Fri, 16 Dec 2022 06:42:02 +0000 Original-Received: (at 59986) by debbugs.gnu.org; 16 Dec 2022 06:41:04 +0000 Original-Received: from localhost ([127.0.0.1]:47458 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p64P1-0004gE-Ud for submit@debbugs.gnu.org; Fri, 16 Dec 2022 01:41:04 -0500 Original-Received: from stw1.rcdrun.com ([217.170.207.13]:33633) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p64Oz-0004fi-PA for 59986@debbugs.gnu.org; Fri, 16 Dec 2022 01:41:02 -0500 Original-Received: from localhost ([::ffff:197.239.4.25]) (AUTH: PLAIN admin, TLS: TLS1.3,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA id 0000000000103837.00000000639C12FD.000077C8; Thu, 15 Dec 2022 23:41:00 -0700 Content-Disposition: inline In-Reply-To: <83y1r8k5v2.fsf@gnu.org> 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:251183 Archived-At: 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. Jean Take action in Free Software Foundation campaigns: https://www.fsf.org/campaigns In support of Richard M. Stallman https://stallmansupport.org/