emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lisp/dired-aux.el


From: Juri Linkov
Subject: [Emacs-diffs] Changes to emacs/lisp/dired-aux.el
Date: Thu, 24 Mar 2005 14:47:36 -0500

Index: emacs/lisp/dired-aux.el
diff -c emacs/lisp/dired-aux.el:1.127 emacs/lisp/dired-aux.el:1.128
*** emacs/lisp/dired-aux.el:1.127       Mon Nov 22 16:56:15 2004
--- emacs/lisp/dired-aux.el     Thu Mar 24 19:47:35 2005
***************
*** 91,103 ****
        nil))
    (diff-backup (dired-get-filename) switches))
  
  (defun dired-compare-directories (dir2 predicate)
    "Mark files with different file attributes in two dired buffers.
  Compare file attributes of files in the current directory
  with file attributes in directory DIR2 using PREDICATE on pairs of files
  with the same name.  Mark files for which PREDICATE returns non-nil.
  Mark files with different names if PREDICATE is nil (or interactively
! when the user enters empty input at the predicate prompt).
  
  PREDICATE is a Lisp expression that can refer to the following variables:
  
--- 91,104 ----
        nil))
    (diff-backup (dired-get-filename) switches))
  
+ ;;;###autoload
  (defun dired-compare-directories (dir2 predicate)
    "Mark files with different file attributes in two dired buffers.
  Compare file attributes of files in the current directory
  with file attributes in directory DIR2 using PREDICATE on pairs of files
  with the same name.  Mark files for which PREDICATE returns non-nil.
  Mark files with different names if PREDICATE is nil (or interactively
! with empty input at the predicate prompt).
  
  PREDICATE is a Lisp expression that can refer to the following variables:
  
***************
*** 117,125 ****
      (not (and (= (nth 2 fa1) (nth 2 fa2))   - mark files with different UID
                (= (nth 3 fa1) (nth 3 fa2))))   and GID."
    (interactive
!    (list (read-file-name (format "Compare %s with: "
!                                (dired-current-directory))
!                        (dired-dwim-target-directory))
           (read-from-minibuffer "Mark if (lisp expr or RET): " nil nil t nil 
"nil")))
    (let* ((dir1 (dired-current-directory))
           (file-alist1 (dired-files-attributes dir1))
--- 118,127 ----
      (not (and (= (nth 2 fa1) (nth 2 fa2))   - mark files with different UID
                (= (nth 3 fa1) (nth 3 fa2))))   and GID."
    (interactive
!    (list (read-directory-name (format "Compare %s with: "
!                                     (dired-current-directory))
!                             (dired-dwim-target-directory)
!                             (dired-dwim-target-directory))
           (read-from-minibuffer "Mark if (lisp expr or RET): " nil nil t nil 
"nil")))
    (let* ((dir1 (dired-current-directory))
           (file-alist1 (dired-files-attributes dir1))




reply via email to

[Prev in Thread] Current Thread [Next in Thread]