From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: notbob Newsgroups: gmane.emacs.help Subject: Re: emacs lisp command to copy dir and all subdir? Date: Tue, 25 Aug 2009 15:53:54 GMT Message-ID: References: <9eca862e-3e82-4a51-b92b-6ddbe867c188@p10g2000prm.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1251218990 27062 80.91.229.12 (25 Aug 2009 16:49:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 25 Aug 2009 16:49:50 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Aug 25 18:49:44 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MfzDL-0007B8-SR for geh-help-gnu-emacs@m.gmane.org; Tue, 25 Aug 2009 18:49:44 +0200 Original-Received: from localhost ([127.0.0.1]:47007 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MfzDL-0000fj-0E for geh-help-gnu-emacs@m.gmane.org; Tue, 25 Aug 2009 12:49:43 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!news.glorb.com!news2.glorb.com!news.glorb.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post01.iad.highwinds-media.com!newsfe16.iad.POSTED!800a5453!not-for-mail Original-Newsgroups: gnu.emacs.help,comp.emacs,comp.lang.lisp User-Agent: slrn/0.9.9p1 (Linux) Original-Lines: 15 Original-X-Complaints-To: abuse@WWWSpace.net Original-NNTP-Posting-Date: Tue, 25 Aug 2009 15:53:54 UTC Original-Xref: news.stanford.edu gnu.emacs.help:172372 comp.emacs:98652 comp.lang.lisp:274363 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:67520 Archived-At: On 2009-08-25, Xah Lee wrote: > is there a emacs lisp command to copy a whole dir? like unix's cp -R? > so, am wondering if there's a pre-made solutions? I'm using emacs 22.3 and it copies recursively by default. From dired mode, simply put cursor on dir to be copied and type C (captial C for copy). The mini-buffer prompts where to copy to. If subdirectories exist, mini-buffer prompts if you want recursive copies (y/n). I just tried it and it works fine, which is cool, cuz I sure don't know much about lisp, yet. ;) nb