From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Kaushal Modi Newsgroups: gmane.emacs.bugs Subject: bug#28792: 26.0.60; Deleting to a custom trash directory in Dired gives error Date: Thu, 12 Oct 2017 15:31:05 +0000 Message-ID: References: <83zi8wld5l.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a11488d162bf38b055b5b3b6b" X-Trace: blaine.gmane.org 1507822333 9908 195.159.176.226 (12 Oct 2017 15:32:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 12 Oct 2017 15:32:13 +0000 (UTC) Cc: self@gkayaalp.com, eggert@cs.ucla.edu, 28792@debbugs.gnu.org To: Andreas Schwab Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 12 17:32:09 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e2fSv-0001ph-Dd for geb-bug-gnu-emacs@m.gmane.org; Thu, 12 Oct 2017 17:32:05 +0200 Original-Received: from localhost ([::1]:46092 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e2fT2-0004oP-S0 for geb-bug-gnu-emacs@m.gmane.org; Thu, 12 Oct 2017 11:32:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34279) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e2fSx-0004o0-CH for bug-gnu-emacs@gnu.org; Thu, 12 Oct 2017 11:32:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e2fSs-0005iH-Ep for bug-gnu-emacs@gnu.org; Thu, 12 Oct 2017 11:32:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55817) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e2fSs-0005hv-Be for bug-gnu-emacs@gnu.org; Thu, 12 Oct 2017 11:32:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e2fSs-0002Ws-2u for bug-gnu-emacs@gnu.org; Thu, 12 Oct 2017 11:32:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Kaushal Modi Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 12 Oct 2017 15:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28792 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 28792-submit@debbugs.gnu.org id=B28792.15078222859665 (code B ref 28792); Thu, 12 Oct 2017 15:32:02 +0000 Original-Received: (at 28792) by debbugs.gnu.org; 12 Oct 2017 15:31:25 +0000 Original-Received: from localhost ([127.0.0.1]:36265 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e2fSG-0002Vp-PC for submit@debbugs.gnu.org; Thu, 12 Oct 2017 11:31:24 -0400 Original-Received: from mail-qt0-f180.google.com ([209.85.216.180]:46361) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e2fSE-0002Vd-Vn for 28792@debbugs.gnu.org; Thu, 12 Oct 2017 11:31:23 -0400 Original-Received: by mail-qt0-f180.google.com with SMTP id 1so14344061qtn.3 for <28792@debbugs.gnu.org>; Thu, 12 Oct 2017 08:31:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=P9QEC49IKrA0FsubMtOW0cDQC6mWKC3qmfJJfF2idFI=; b=Nf0xLXFv4k6MYTDmp1jZ1rVdbeMs29VLz9jVgiXQ7ZWsjoEMkc/fHtZpHpmigF6mU8 MwlmzeNhK+JVV+FoyUqFcMa4JEGRE1g0JPJp5IZGmNyRVcw4hSBS8GjihMS7tnvyAVjl rrHYTD0dSid2PqkJ8QHy9n2Ms3th+jDUj7/YHjhU+cm+xiauRI3mTIPylhAKA9fcpaSg sBeLtLvQsaSxRTvjZQvTbuVyvF0iHfiW/OATQK50LDlnfchUetm26FJpgaDgpBdNKeps CgKY2YM/NS8w2CFowuCAAUS1uI3js8z4mRQcc/04q+uRfbTcc9zOgYqIGn+/qw92g+dO ighQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=P9QEC49IKrA0FsubMtOW0cDQC6mWKC3qmfJJfF2idFI=; b=Y1qm/TuXWLPSm/d4d4XwFKN1a88UirOgf1H502QjX8nE7qoOg1KXmfsmLKGDBcOX7+ xFFBSipmpqYhTMp0vdibOXhUfefFF1tH1jeAbWXpHerZzGoZJ1FQ/QdInn8eFj5XWWm5 QrSSXk6EQybklo1aPpB5QTjCta1qOFi9lGCRdf5mIhnLfzknrnMU7yWUr88wUirIf/Iy bwc1c/ewRw3fHiuAiIQAtrtGMoEVw+CzshonBy/sjEKobjNfTO5nASZaPPg3fnXJoxmE /dc+1bY1MU1mqqA/w+niRzokFXb+kPM2gVQ1uRRIrctcGOXv8hgy4zZ3Z1Xj7+1Twc01 LhRw== X-Gm-Message-State: AMCzsaVnMRhqvSJL5B7ZolN43aOKu+5Ar8K8nhAtr0vDlCTNEdD+/DBO j5ILBe76BcA+3IIYrMr2FZyzXPi6eMYMpKNuYLI= X-Google-Smtp-Source: AOwi7QADgUjun6ttYC4MF5xBdMHMxyau4AYJ8A9WkkgRHjnP+JRJhk6xTw27OpGx5epri58PsoSTaY/nWbT+NG4gSB8= X-Received: by 10.37.114.87 with SMTP id n84mr1972795ybc.504.1507822276438; Thu, 12 Oct 2017 08:31:16 -0700 (PDT) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:138293 Archived-At: --001a11488d162bf38b055b5b3b6b Content-Type: text/plain; charset="UTF-8" On Thu, Oct 12, 2017 at 11:27 AM Andreas Schwab wrote: > On Okt 12 2017, Kaushal Modi wrote: > > > But it seems to work in some cases i.e. trashing a dir works*. See my > > recipe in my earlier message in this debbugs thread[1]. Somehow this > error > > has a correlation with relative locations of the user-set trash dir and > > to-be-deleted dir.. > > That depend on whether the trash is on the same file system as the > directory to trash. rename-file now refuses to copy directory across > file systems unless the target name ends in a slash. > That means that as dired-do-delete is a wrapper at some level over move-file-to-trash, that slash appending should be done in dired somewhere? -- Kaushal Modi --001a11488d162bf38b055b5b3b6b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Thu, Oct 12= , 2017 at 11:27 AM Andreas Schwab <sch= wab@suse.de> wrote:
On Okt 1= 2 2017, Kaushal Modi <kaushal.modi@gmail.com> wrote:

> But it seems to work in some cases i.e. trashing a dir works*. See my<= br> > recipe in my earlier message in this debbugs thread[1]. Somehow this e= rror
> has a correlation with relative locations of the user-set trash dir an= d
> to-be-deleted dir..

That depend on whether the trash is on the same file system as the
directory to trash.=C2=A0 rename-file now refuses to copy directory across<= br> file systems unless the target name ends in a slash.
<= br>
That means that as dired-do-delete is a wrapper at some level= over move-file-to-trash, that slash appending should be done in dired some= where?=C2=A0
--

Kaushal M= odi

--001a11488d162bf38b055b5b3b6b--