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#44217: bug#44216: 28.0.50; Incorret during delete in Tramp: Trashing...done Date: Mon, 26 Oct 2020 12:14:29 +0100 Message-ID: <87eell2q96.fsf@gnus.org> References: <86mu0ayu2b.fsf@protected.rcdrun.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14964"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Michael Albinus , 44217@debbugs.gnu.org To: Jean Louis Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 26 12:27:11 2020 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 1kX0ed-0003lC-Fy for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 26 Oct 2020 12:27:11 +0100 Original-Received: from localhost ([::1]:46706 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kX0ec-0005EW-GZ for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 26 Oct 2020 07:27:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57410) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kX0Su-0006gn-SN for bug-gnu-emacs@gnu.org; Mon, 26 Oct 2020 07:15:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55349) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kX0Ss-0006lE-S6 for bug-gnu-emacs@gnu.org; Mon, 26 Oct 2020 07:15:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kX0Ss-0000yb-Na for bug-gnu-emacs@gnu.org; Mon, 26 Oct 2020 07:15: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: Mon, 26 Oct 2020 11:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44217 X-GNU-PR-Package: emacs Original-Received: via spool by 44217-submit@debbugs.gnu.org id=B44217.16037108853699 (code B ref 44217); Mon, 26 Oct 2020 11:15:02 +0000 Original-Received: (at 44217) by debbugs.gnu.org; 26 Oct 2020 11:14:45 +0000 Original-Received: from localhost ([127.0.0.1]:38660 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kX0Sa-0000xa-T2 for submit@debbugs.gnu.org; Mon, 26 Oct 2020 07:14:45 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:41598) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kX0SX-0000xL-Pa for 44217@debbugs.gnu.org; Mon, 26 Oct 2020 07:14:42 -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=oGaI7R6xUkslwWFvL1F5Fo5e1m5RpvlUyrjUGxK75ls=; b=ddtFgagKi7lQz7d9pa3e1Nh96m uTt4u6sZzsu3lIx9GW3B+62vP9cZkFk2UlOS9yT5XPzXqra1bg32qd8Y4fhwc99TIa1FZqD6tXEyA 6MwxAOJ8p6e9YPqXY9QNX9dc/fhX1Xsctev4YZAKk/NlYcN8hMWNM7ctreC0KbdfOC9g=; Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kX0SM-00008A-E1; Mon, 26 Oct 2020 12:14:35 +0100 X-Now-Playing: Sly & The Family Stone's _There's a Riot Goin' On_: "Family Affair" In-Reply-To: <86mu0ayu2b.fsf@protected.rcdrun.com> (Jean Louis's message of "Sun, 25 Oct 2020 22:38:52 +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:191566 Archived-At: Jean Louis writes: > I have the variable trash-directory set and files go to ~/tmp/Trash > > During Tramp ssh://example.com:~/ session I have delete a file and I can > see the message: Trashing...done which should not be during Tramp > session, as it gave me impression that file will be now transferred in > background to my local Trash directory which not the case. Not that I > have seen the file in Trash. Please try to give more detailed bug reports with recipes starting from "emacs -Q". I reproduced this bug by setting: (setq delete-by-moving-to-trash t trash-directory "~/Trash/") and then going to "/ssh:other-host:/tmp/" and deleting a file. As you say, the file isn't moved to ~/Trash. This is because: (defun tramp-get-remote-trash (vec) "Determine remote `trash' command. This command is returned only if `delete-by-moving-to-trash' is non-nil." (and delete-by-moving-to-trash (with-tramp-connection-property vec "trash" (tramp-message vec 5 "Finding a suitable `trash' command") (tramp-find-executable vec "trash" (tramp-get-remote-path vec))))) Tramp is looking for an executable on the remote host called "trash"? Which doesn't exist. Shouldn't Tramp then move the file to `trash-directory' instead of giving up and just deleting the file? If this is working as designed, it should at least be mentioned in the doc string(s) and the manual. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no