unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* dired-aux.el needs "(require 'dired)"
@ 2007-12-17 13:51 Eduardo Ochs
  2007-12-17 19:03 ` martin rudalics
  0 siblings, 1 reply; 2+ messages in thread
From: Eduardo Ochs @ 2007-12-17 13:51 UTC (permalink / raw)
  To: bug-gnu-emacs

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".





^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: dired-aux.el needs "(require 'dired)"
  2007-12-17 13:51 dired-aux.el needs "(require 'dired)" Eduardo Ochs
@ 2007-12-17 19:03 ` martin rudalics
  0 siblings, 0 replies; 2+ messages in thread
From: martin rudalics @ 2007-12-17 19:03 UTC (permalink / raw)
  To: Eduardo Ochs; +Cc: bug-gnu-emacs

 > we get an error:
 >
 >   Symbol's value as variable is void: dired-recursive-copies

It's due to the following change:

2004-11-22  Richard M. Stallman  <rms@gnu.org>

     * dired.el (dired-recursive-copies): Move from dired-aux.el.
     * dired-aux.el (dired-recursive-copies): Move to dired.el.

I suppose autoloading `direct-recursive-copies' would be sufficient.





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-12-17 19:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-17 13:51 dired-aux.el needs "(require 'dired)" Eduardo Ochs
2007-12-17 19:03 ` martin rudalics

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).