From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tino Calancha Newsgroups: gmane.emacs.bugs Subject: bug#28828: 27.0.50; move-file-to-trash in files.el fails on non-empty directories Date: Sat, 14 Oct 2017 18:22:53 +0900 Message-ID: <87infi3wya.fsf@gmail.com> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1507973060 26691 195.159.176.226 (14 Oct 2017 09:24:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 14 Oct 2017 09:24:20 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 28828@debbugs.gnu.org To: Geoffrey Ferrari Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 14 11:24:11 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 1e3Ifr-0005BN-RU for geb-bug-gnu-emacs@m.gmane.org; Sat, 14 Oct 2017 11:24:03 +0200 Original-Received: from localhost ([::1]:53332 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e3Ifz-0007te-66 for geb-bug-gnu-emacs@m.gmane.org; Sat, 14 Oct 2017 05:24:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49754) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e3Ift-0007sh-7z for bug-gnu-emacs@gnu.org; Sat, 14 Oct 2017 05:24:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e3Ifq-00014b-34 for bug-gnu-emacs@gnu.org; Sat, 14 Oct 2017 05:24:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:58386) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e3Ifp-00014W-Vg for bug-gnu-emacs@gnu.org; Sat, 14 Oct 2017 05:24:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e3Ifp-00041b-Pp for bug-gnu-emacs@gnu.org; Sat, 14 Oct 2017 05:24:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tino Calancha Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 14 Oct 2017 09:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28828 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 28828-submit@debbugs.gnu.org id=B28828.150797299015388 (code B ref 28828); Sat, 14 Oct 2017 09:24:01 +0000 Original-Received: (at 28828) by debbugs.gnu.org; 14 Oct 2017 09:23:10 +0000 Original-Received: from localhost ([127.0.0.1]:38831 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e3Iez-000408-V4 for submit@debbugs.gnu.org; Sat, 14 Oct 2017 05:23:10 -0400 Original-Received: from mail-pf0-f193.google.com ([209.85.192.193]:48650) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e3Iex-0003zt-RS for 28828@debbugs.gnu.org; Sat, 14 Oct 2017 05:23:08 -0400 Original-Received: by mail-pf0-f193.google.com with SMTP id b79so12191340pfk.5 for <28828@debbugs.gnu.org>; Sat, 14 Oct 2017 02:23:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=jkNgAxpgYw24aqfh1C6T+IwS23rMRwukRpZbnL6OGz0=; b=IeBsZlsElJ9O7AUEFxl/XhJc2xlO4E9doFIRwBZXpYsCLtoMBV53eWMKB12viXXE5h V5cQNcENTTZ9a+lq0SHhB24WEpp5M6sMNwMr5+LxcXiBjk0pqb4WMiK6eE2b27gRQs7A 9f1l+7qbB0dl5/ymOmVlgPQmMh/4qoU0TVvmk29wBdJMe05PR/uEZyZnIuPKnBabPYk9 Pm/zYbW++kADea8CQWlUv0IJ2YV3qxvAKAAb2oAu7QXNNTKweX+hW1JeT8fIztk0WBtI HuKV1lOxPTBv+14vdulqOZVTCofBoo6NiNZQihmzykxNk2RhMzHXlgR4SvWRXHLvtQ9O WQsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=jkNgAxpgYw24aqfh1C6T+IwS23rMRwukRpZbnL6OGz0=; b=mRJ1Y4NXncTyiwhWqnXDo24jC+Jvh6RtFZJU5Ggy7hN3dWPM+SGHOcFrNRFkH9kR0D nCGz0HKQQHn9jJzGs1o6u4QJFjaorHDa0QqZyN2SgwkJDwYc1aP3RkbIrpUkZiEUDs3O ISOg9pABx3ndu9+5axIglc62qsJOIt34fPZP7WdpA1BLLEgR8cM98N2Rz9/MIIMGw0PT kdNVteH2pHMLkMAn24CpU4bslc9jfEN7ksBooGLZPV7qqZzkQemVgp6ozg6eqxwk5XBe 9KPHNhd2MBJoJ3Z8EXJvZhlx8rY9JpAeW9nOu46TDzvKmNCfP8X2sa7Aa4ukbiHmLBQc 4bxw== X-Gm-Message-State: AMCzsaXLxPKQO/1DXUtj2ogOdM1hTM9xPAbaCb1lXT8mK8r3saZwMYsY ysDL2IvbDRrl/u3uXZPjbClahQ== X-Google-Smtp-Source: AOwi7QCKcVufnTh3AbgO07UX9rSEam2+4d3C/Jz7TgYk7eXz4haJFj46ojE4ScQ3J7NYwTUuy6gkGg== X-Received: by 10.159.218.148 with SMTP id w20mr3775014plp.398.1507972981791; Sat, 14 Oct 2017 02:23:01 -0700 (PDT) Original-Received: from calancha-pc ([103.5.140.135]) by smtp.gmail.com with ESMTPSA id m9sm5782975pgt.49.2017.10.14.02.23.00 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 14 Oct 2017 02:23:01 -0700 (PDT) In-Reply-To: (Geoffrey Ferrari's message of "Sat, 14 Oct 2017 08:20:31 +0100") 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:138395 Archived-At: Geoffrey Ferrari writes: > Start emacs with emacs -Q > > Set delete-by-moving-to trash to t > (setq delete-by-moving-to-trash t) > > In dired, try to delete a non-empty directory. > > This fails with a message: > "(file-error Non-regular file Is a directory [path]" > > The problem appears to be with the function move-file-to-trash in > files.el > > In particular, the error is raised at the end of the function when > executing (rename-file fn new-fn) . I can't trace it any further as > this is a compiled function. Thank you. I believe this is Bug#28792 which has being fixed in emacs-26 and master branches this week. > In GNU Emacs 27.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version > 3.22.21) > of 2017-10-01, unofficial emacs-snapshot build: http://emacs.secretsau > ce.net built on lilbastard I see latest snapshot at http://emacs.secretsauce.net is from 8 days ago (https://github.com/dkogan/emacs-snapshot); that means you will get the fix in the next snapshot.