From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: John Paul Wallington Newsgroups: gmane.emacs.bugs Subject: Re: dired not bold enough to move directories Date: Sat, 08 Feb 2003 02:24:37 +0000 Sender: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <874r7fse56.fsf@china.shootybangbang.com> References: <200302080137.TAA28103@eel.dms.auburn.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1044670500 13309 80.91.224.249 (8 Feb 2003 02:15:00 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 8 Feb 2003 02:15:00 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18hKWA-0003SW-00 for ; Sat, 08 Feb 2003 03:14:58 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18hKX8-0005NI-05 for gnu-bug-gnu-emacs@m.gmane.org; Fri, 07 Feb 2003 21:15:58 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18hKWy-0005Me-00 for bug-gnu-emacs@gnu.org; Fri, 07 Feb 2003 21:15:48 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18hKWx-0005MQ-00 for bug-gnu-emacs@gnu.org; Fri, 07 Feb 2003 21:15:48 -0500 Original-Received: from host217-44-221-152.range217-44.btcentralplus.com ([217.44.221.152] helo=china.shootybangbang.com) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18hKWw-0005MJ-00 for bug-gnu-emacs@gnu.org; Fri, 07 Feb 2003 21:15:47 -0500 Original-Received: from jpw by china.shootybangbang.com with local (Exim 3.36 #1 (Debian)) id 18hKfW-0004zc-00; Sat, 08 Feb 2003 02:24:38 +0000 Original-To: Luc Teirlinck In-Reply-To: <200302080137.TAA28103@eel.dms.auburn.edu> (Luc Teirlinck's message of "Fri, 7 Feb 2003 19:37:06 -0600 (CST)") X-Attribution: jpw X-Face: R(_z-rF:grdKO.*u`n); p.i$Eiz=h^CO5eDYv"4:K@#\HN09*Ykx}}B{kF/KH}%f_o^Wp X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:4413 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:4413 Luc Teirlinck wrote: > > Well, gosh, if I can move a directory like this, > > $ cd /var/tmp > > $ mv affordablehost_logs ~/tmp > > > > then why can't I remame it with R in dired? > > Because they are on separate partitions. > dired should behave like mv in such a case. > > I understand both above lines, but it is not immediately obvious to > me what your conclusion is. It seems to me that you agree with > Dan, because (from version `4.0' of the fileutils onward) mv no > longer cares about partitions. (Do I understand this correctly?) Yup. > I personally agree with Dan (and you?) too, unless there would be > some good reason for dired to behave differently from mv in this > case. (I can not think of any, but that does, of course, not mean > that there is none.) Presently Frename_file calls rename or link (and unlink) then does: if (errno == EXDEV) { Fcopy_file (file, newname, /* We have already prompted if it was an integer, so don't have copy-file prompt again. */ NILP (ok_if_already_exists) ? Qnil : Qt, Qt); Fdelete_file (file); } which deals with renaming files across file systems. Maybe it should recursively copy directories too? If not, then dired could handle it in lisp instead.