From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eduardo Ochs Newsgroups: gmane.emacs.bugs Subject: dired-aux.el needs "(require 'dired)" Date: Mon, 17 Dec 2007 11:51:50 -0200 Message-ID: <87k5ndctu1.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1197899563 22959 80.91.229.12 (17 Dec 2007 13:52:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 17 Dec 2007 13:52:43 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Dec 17 14:52:55 2007 Return-path: Envelope-to: geb-bug-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 1J4GOp-0005X2-CY for geb-bug-gnu-emacs@m.gmane.org; Mon, 17 Dec 2007 14:52:52 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J4GOV-0002Bc-7N for geb-bug-gnu-emacs@m.gmane.org; Mon, 17 Dec 2007 08:52:31 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J4GOO-00026D-2k for bug-gnu-emacs@gnu.org; Mon, 17 Dec 2007 08:52:24 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J4GOL-000211-UP for bug-gnu-emacs@gnu.org; Mon, 17 Dec 2007 08:52:23 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J4GOL-00020Y-N4 for bug-gnu-emacs@gnu.org; Mon, 17 Dec 2007 08:52:21 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1J4GOL-00007b-3q for bug-gnu-emacs@gnu.org; Mon, 17 Dec 2007 08:52:21 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1J4GO3-00075v-DV for bug-gnu-emacs@gnu.org; Mon, 17 Dec 2007 13:52:03 +0000 Original-Received: from 189.25.141.52 ([189.25.141.52]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 17 Dec 2007 13:52:03 +0000 Original-Received: from eduardoochs by 189.25.141.52 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 17 Dec 2007 13:52:03 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 32 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 189.25.141.52 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux) Cancel-Lock: sha1:wzmLJvxTVb9kPf4qHeOZvuh2oBQ= X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:17178 Archived-At: The definition of `dired-copy-file' is this, in dired-aux.el: ;;;###autoload (defun dired-copy-file (from to ok-flag) (dired-handle-overwrite to) (dired-copy-file-recursive from to ok-flag dired-copy-preserve-time t dired-recursive-copies)) but if we run just (write-region "contents" nil "/tmp/o") (dired-copy-file "/tmp/o" "/tmp/o2" 'ok-flag) we get an error: Symbol's value as variable is void: dired-recursive-copies dired-aux.el starts with (eval-when-compile (require 'dired)) but that's not enough - it should have a "(require 'dired)". Cheers, Eduardo Ochs http://angg.twu.net/ eduardoochs@gmail.com P.S.: the result of running (emacs-version) at my machine is this: "GNU Emacs 23.0.50.1 (i686-pc-linux-gnu, GTK+ Version 2.8.20) of 2007-12-13 on persephone".