changeset 22688:c952205ba590

(dired-omit-expunge): Message if skipping omitting because directory is too large; also unset dired-omit-files-p. (dired-omit-size-limit): Increase default from 20000 to 30000.
author Richard M. Stallman <rms@gnu.org>
date Sat, 04 Jul 1998 21:09:49 +0000
parents d858c344ab27
children 2d69ba7d76f4
files lisp/dired-x.el
diffstat 1 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/dired-x.el	Sat Jul 04 09:44:09 1998 +0000
+++ b/lisp/dired-x.el	Sat Jul 04 21:09:49 1998 +0000
@@ -208,7 +208,7 @@
   :type 'boolean
   :group 'dired-x)
 
-(defcustom dired-omit-size-limit 20000
+(defcustom dired-omit-size-limit 30000
   "*Maximum size for the \"omitting\" feature.
 If nil, there is no maximum size."
   :type '(choice (const :tag "no maximum" nil) integer)
@@ -580,7 +580,12 @@
   (if (and dired-omit-files-p
            (or (interactive-p)
                (not dired-omit-size-limit)
-               (< (buffer-size) dired-omit-size-limit)))
+               (< (buffer-size) dired-omit-size-limit)
+	       (progn
+		 (message "Not omitting: directory larger than %d characters."
+			  dired-omit-size-limit)
+		 (setq dired-omit-files-p nil)
+		 nil)))
       (let ((omit-re (or regexp (dired-omit-regexp)))
             (old-modified-p (buffer-modified-p))
             count)