emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bug in copy-directory


From: Thierry Volpiatto
Subject: Re: bug in copy-directory
Date: Mon, 14 Feb 2011 12:40:33 +0100
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.2.93 (gnu/linux)

Chong Yidong <address@hidden> writes:

> Thierry Volpiatto <address@hidden> writes:
>
>>> 1. I didn't apply the change to dired-aux.el.  It doesn't seem to do the
>>> right thing.  With that change patch, if I try to use the `C' command in
>>> Dired, I get an error.
>>>
>>>    mkdir ~/a
>>>    emacs ~/
>>>    [move point to a]
>>>    C
>>>    ~/b RET  => error.
>>
>> To be sure:
>> b is a non--existing directory, right?
>
> Yep.
Ok now it is fixed and applied on emacs, just a final note:
The changes i made to dired-create-files could go to dired-copy-file,
(not tested though) maybe they fit better there than in
dired-create-files.
It would be even simpler:

(when (and (file-directory-p from)
            (file-directory-p to)
            (eq file-creator 'dired-copy-file)) <<<< can be removed
   (setq to (file-name-directory to)))


-- 
A+ Thierry
Get my Gnupg key:
gpg --keyserver pgp.mit.edu --recv-keys 59F29997 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]