emacs-devel
[Top][All Lists]
Advanced

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

find-dired.el


From: Luc Teirlinck
Subject: find-dired.el
Date: Wed, 2 Jun 2004 22:11:34 -0500 (CDT)

Below is my latest and probably final patch to find-dired.el.  It is a
simplified and corrected version of my previous patch.  I will install
it when I install the other patches, since it requires the updated
patches for dired.el and dired-aux.el, which I will submit shortly.

===File ~/find-dired-diff===================================
diff -c /home/teirllm/stored/find-dired.old.el 
/home/teirllm/emacscvsdir/emacs/lisp/find-dired.el
*** /home/teirllm/stored/find-dired.old.el      Sat May 29 15:55:43 2004
--- /home/teirllm/emacscvsdir/emacs/lisp/find-dired.el  Wed Jun  2 21:58:45 2004
***************
*** 55,60 ****
--- 55,70 ----
    :group 'find-dired)
  
  ;;;###autoload
+ (defcustom find-ls-subdir-switches "-al"
+   "`ls' switches for inserting subdirectories in *Find* buffers.
+ This should contain the \"-l\" switch.
+ Use the \"-F\" or \"-b\" switches if and only if you also use
+ them for `find-ls-option'."
+   :type 'string
+   :group 'find-dired
+   :version "21.4")
+ 
+ ;;;###autoload
  (defcustom find-grep-options
    (if (or (eq system-type 'berkeley-unix)
          (string-match "solaris2" system-configuration)
***************
*** 89,96 ****
    (let ((dired-buffers dired-buffers))
      ;; Expand DIR ("" means default-directory), and make sure it has a
      ;; trailing slash.
!     (setq dir (abbreviate-file-name
!              (file-name-as-directory (expand-file-name dir))))
      ;; Check that it's really a directory.
      (or (file-directory-p dir)
        (error "find-dired needs a directory: %s" dir))
--- 99,105 ----
    (let ((dired-buffers dired-buffers))
      ;; Expand DIR ("" means default-directory), and make sure it has a
      ;; trailing slash.
!     (setq dir (file-name-as-directory (expand-file-name dir)))
      ;; Check that it's really a directory.
      (or (file-directory-p dir)
        (error "find-dired needs a directory: %s" dir))
***************
*** 115,121 ****
      (setq buffer-read-only nil)
      (erase-buffer)
      (setq default-directory dir
!         find-args args                ; save for next interactive call
          args (concat find-dired-find-program " . "
                       (if (string= args "")
                           ""
--- 124,130 ----
      (setq buffer-read-only nil)
      (erase-buffer)
      (setq default-directory dir
!         find-args args              ; save for next interactive call
          args (concat find-dired-find-program " . "
                       (if (string= args "")
                           ""
***************
*** 143,148 ****
--- 152,158 ----
        ;; this does no harm)
        (set (make-local-variable 'dired-subdir-alist)
           (list (cons default-directory (point-min-marker)))))
+     (set (make-local-variable 'dired-subdir-switches) find-ls-subdir-switches)
      (setq buffer-read-only nil)
      ;; Subdir headlerline must come first because the first marker in
      ;; subdir-alist points there.
***************
*** 267,272 ****
--- 277,283 ----
              (delete-process proc)
              (force-mode-line-update)))
          (message "find-dired %s finished." (current-buffer))))))
+ 
  
  (provide 'find-dired)
  

Diff finished.  Wed Jun  2 21:59:26 2004
============================================================




reply via email to

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