From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#14083: 24.3.50; Dired error deleting directory Date: Fri, 29 Mar 2013 00:09:04 +0200 Message-ID: <83k3orw51b.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1364508575 26024 80.91.229.3 (28 Mar 2013 22:09:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 28 Mar 2013 22:09:35 +0000 (UTC) Cc: 14083@debbugs.gnu.org To: nyc4bos@aol.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Mar 28 23:10:02 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ULL1F-0005Za-BO for geb-bug-gnu-emacs@m.gmane.org; Thu, 28 Mar 2013 23:10:01 +0100 Original-Received: from localhost ([::1]:60998 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ULL0r-0002cu-57 for geb-bug-gnu-emacs@m.gmane.org; Thu, 28 Mar 2013 18:09:37 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:33119) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ULL0n-0002cn-H8 for bug-gnu-emacs@gnu.org; Thu, 28 Mar 2013 18:09:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ULL0k-00009O-L3 for bug-gnu-emacs@gnu.org; Thu, 28 Mar 2013 18:09:33 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45961) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ULL0k-00009J-Gt for bug-gnu-emacs@gnu.org; Thu, 28 Mar 2013 18:09:30 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1ULL3C-0003mY-9k for bug-gnu-emacs@gnu.org; Thu, 28 Mar 2013 18:12:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 28 Mar 2013 22:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14083 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 14083-submit@debbugs.gnu.org id=B14083.136450868114484 (code B ref 14083); Thu, 28 Mar 2013 22:12:02 +0000 Original-Received: (at 14083) by debbugs.gnu.org; 28 Mar 2013 22:11:21 +0000 Original-Received: from localhost ([127.0.0.1]:50070 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1ULL2X-0003lZ-Lj for submit@debbugs.gnu.org; Thu, 28 Mar 2013 18:11:21 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:46185) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1ULL2V-0003lO-Il for 14083@debbugs.gnu.org; Thu, 28 Mar 2013 18:11:20 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0MKE00K005HOE300@a-mtaout22.012.net.il> for 14083@debbugs.gnu.org; Fri, 29 Mar 2013 00:08:45 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MKE00K8Z5IL6550@a-mtaout22.012.net.il>; Fri, 29 Mar 2013 00:08:45 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:72973 Archived-At: > From: nyc4bos@aol.com > Date: Thu, 28 Mar 2013 17:49:12 -0400 > > After invoking Dired and marking a directory (recursively) and executing > `(dired-do-flagged-delete)' I got the following message: > > (file-error Removing directory permission denied > c:/Users/tempuser/AppData/Local/Temp/temp-dir) > > Trying to delete the directory from the command line I got: > > The process cannot access the file because it is being used by another > process. > > Is there any way for Emacs to display this message rather than the > generic "(file-error Removing directory permission denied)" Not easily. Emacs uses Posix errno variable values to produce the text of the error messages. Windows has a much richer set of possible error values (this one is ERROR_SHARING_VIOLATION), but the Windows runtime and sometimes Emacs code itself map them to the Posix errno values, in this case EPERM, and only those errno values are exposed to the Emacs primitives.