]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/dired-aux.el (dired-diff): Remove (require 'diff) since
authorJuri Linkov <juri@jurta.org>
Thu, 20 Sep 2012 09:03:51 +0000 (12:03 +0300)
committerJuri Linkov <juri@jurta.org>
Thu, 20 Sep 2012 09:03:51 +0000 (12:03 +0300)
`diff-latest-backup-file' is now autoloaded.

lisp/ChangeLog
lisp/dired-aux.el

index 99d50511b880b66ed260fe5a8dfa1d55015ff12d..b2e0e7b1d49a9976c293c4603b76f187f4d446b2 100644 (file)
@@ -1,3 +1,8 @@
+2012-09-20  Juri Linkov  <juri@jurta.org>
+
+       * dired-aux.el (dired-diff): Remove (require 'diff) since
+       `diff-latest-backup-file' is now autoloaded.
+
 2012-09-20  Chong Yidong  <cyd@gnu.org>
 
        * vc/diff.el (diff-latest-backup-file): Autoload.
index 3d3fe491899742a98b238e6e89b0b7a31f4f574e..afa0e32b3af59fbc474713df66e75e05624f56f0 100644 (file)
@@ -51,8 +51,6 @@ into this list; they also should call `dired-log' to log the errors.")
 (defconst dired-star-subst-regexp "\\(^\\|[ \t]\\)\\*\\([ \t]\\|$\\)")
 (defconst dired-quark-subst-regexp "\\(^\\|[ \t]\\)\\?\\([ \t]\\|$\\)")
 
-(declare-function diff-latest-backup-file "diff" (fn)) ; actually belongs into files.el
-
 ;;;###autoload
 (defun dired-diff (file &optional switches)
   "Compare file at point with file FILE using `diff'.
@@ -70,7 +68,7 @@ the string of command switches for the third argument of `diff'."
   (interactive
    (let* ((current (dired-get-filename t))
          ;; Get the latest existing backup file.
-         (oldf (progn (require 'diff) (diff-latest-backup-file current)))
+         (oldf (diff-latest-backup-file current))
          ;; Get the file at the mark.
          (file-at-mark (if (and transient-mark-mode mark-active)
                            (save-excursion (goto-char (mark t))