Subject: bug#10489: 24.0.92; dired-do-copy may create infinite directory hierarchy

From: Thierry Volpiatto <[email-masked]>
Date: Thu, 12 Jan 2012 22:33:38 +0100

Hi, here a patch tha should fix this.
I resent it because I am not sure precedent post have been sent.

Michael Heerdegen <[email-masked]> writes:

> Hello,
>
> start emacs -Q.
>
> Suppose you have a directory "~/Test".  Do C-x d ~ RET.  Jump to the
> line showing "Test".  Hit C and enter "~/Test".  Answer "yes" to the
>
>  Recursive copies of /home/micha/Test? (yes or no) 
>
> question.
>
> This creates an huge recursive hierarchy of "Test" directories
>
>   ~/Test/Test/Test/Test/Test/Test/Test/Test/Test/Test/Test/Test/...
>
> The error
>
>   copy-directory: Variable binding depth exceeds max-specpdl-size
>
> finally stops that.
>
> The user may do something like that per accident.  Emacs should IMHO not
> behave like that.
>
> The problem also appears in Emacs 23.

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