summaryrefslogtreecommitdiff
path: root/lisp/dired-x.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1994-06-10 21:20:25 +0000
committerRichard M. Stallman <rms@gnu.org>1994-06-10 21:20:25 +0000
commit3432b90214dad51a30dc1ddf90ff638a7754ab7b (patch)
tree8ecbc9772837682a7b29075061b2d9fbe6d76a91 /lisp/dired-x.el
parent6bfd72d6185072fc6d70d71a1dc15efaf0ade226 (diff)
downloademacs-3432b90214dad51a30dc1ddf90ff638a7754ab7b.tar.gz
Require dired and dired-aux in the standard way.
Diffstat (limited to 'lisp/dired-x.el')
-rw-r--r--lisp/dired-x.el24
1 files changed, 4 insertions, 20 deletions
diff --git a/lisp/dired-x.el b/lisp/dired-x.el
index 01e537df0f5..c89e109f839 100644
--- a/lisp/dired-x.el
+++ b/lisp/dired-x.el
@@ -101,28 +101,12 @@
;;; here in case the user has autoloaded dired-x via the dired-jump key binding
;;; (instead of autoloading to dired as is suggested in the info-pages).
-;;; WARNING: The copy of dired.el in GNU Emacs versions earlier than 19.20 had
-;;; the `provide' *after* the `run-hooks'. In such a case, loading dired below
-;;; will cause an infinite loop. To prevent this we test the value of the GNU
-;;; Emacs major version number before requiring dired.
-
-(if (string< "19.19"
- ;; Compare with major version number (i.e., 19.22 not 19.22.11).
- (substring emacs-version 0
- (and (string-match "^[0-9]*\\.[0-9]*" emacs-version)
- (match-end 0))))
- (require 'dired))
+(require 'dired)
;;; We will redefine some functions and also need some macros so we need to
-;;; load dired stuff of GNU Emacs. Since dired-aux.el (at least up to GNU
-;;; Emacs 19.22) does not `provide' itself, we do it here. This avoids the
-;;; possibility recursive loading because of the nasty `eval-when-compile' that
-;;; is in dired-aux.el.
-
-(and (not (featurep 'dired-aux))
- (load "dired-aux" nil t)
- (not (featurep 'dired-aux))
- (provide 'dired-aux))
+;;; load dired stuff of GNU Emacs.
+
+(require 'dired-aux)
;;;; User-defined variables.