[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] /srv/bzr/emacs/trunk r102831: * dired-x.el (dired-omit-ver
From: |
Tassilo Horn |
Subject: |
[Emacs-diffs] /srv/bzr/emacs/trunk r102831: * dired-x.el (dired-omit-verbose): New defcustom that allows |
Date: |
Thu, 13 Jan 2011 16:44:41 +0100 |
User-agent: |
Bazaar (2.0.3) |
------------------------------------------------------------
revno: 102831
committer: Tassilo Horn <address@hidden>
branch nick: trunk
timestamp: Thu 2011-01-13 16:44:41 +0100
message:
* dired-x.el (dired-omit-verbose): New defcustom that allows
disabling the omit messages.
(dired-omit-expunge): Use it.
modified:
lisp/ChangeLog
lisp/dired-x.el
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog 2011-01-13 08:08:58 +0000
+++ b/lisp/ChangeLog 2011-01-13 15:44:41 +0000
@@ -1,3 +1,9 @@
+2011-01-13 Tassilo Horn <address@hidden>
+
+ * dired-x.el (dired-omit-verbose): New defcustom that allows
+ disabling the omit messages.
+ (dired-omit-expunge): Use it.
+
2011-01-13 Christian Ohler <address@hidden>
* emacs-lisp/ert.el, emacs-lisp/ert-x.el: New files.
=== modified file 'lisp/dired-x.el'
--- a/lisp/dired-x.el 2010-08-29 16:17:13 +0000
+++ b/lisp/dired-x.el 2011-01-13 15:44:41 +0000
@@ -189,6 +189,12 @@
:type 'regexp
:group 'dired-x)
+(defcustom dired-omit-verbose t
+ "When non-nil, show messages when omitting files.
+When nil, don't show messages."
+ :type 'boolean
+ :group 'dired-x)
+
(defcustom dired-find-subdir nil ; t is pretty near to DWIM...
"If non-nil, Dired always finds a directory in a buffer of its own.
If nil, Dired finds the directory as a subdirectory in some other buffer
@@ -613,8 +619,9 @@
(not dired-omit-size-limit)
(< (buffer-size) dired-omit-size-limit)
(progn
- (message "Not omitting: directory larger than %d characters."
- dired-omit-size-limit)
+ (when dired-omit-verbose
+ (message "Not omitting: directory larger than %d characters."
+ dired-omit-size-limit))
(setq dired-omit-mode nil)
nil)))
(let ((omit-re (or regexp (dired-omit-regexp)))
@@ -622,12 +629,14 @@
count)
(or (string= omit-re "")
(let ((dired-marker-char dired-omit-marker-char))
- (message "Omitting...")
+ (when dired-omit-verbose (message "Omitting..."))
(if (dired-mark-unmarked-files omit-re nil nil dired-omit-localp)
(progn
- (setq count (dired-do-kill-lines nil "Omitted %d line%s."))
+ (setq count (dired-do-kill-lines
+ nil
+ (if dired-omit-verbose "Omitted %d line%s."
"")))
(force-mode-line-update))
- (message "(Nothing to omit)"))))
+ (when dired-omit-verbose (message "(Nothing to omit)")))))
;; Try to preserve modified state of buffer. So `%*' doesn't appear
;; in mode-line of omitted buffers.
(set-buffer-modified-p (and old-modified-p
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] /srv/bzr/emacs/trunk r102831: * dired-x.el (dired-omit-verbose): New defcustom that allows,
Tassilo Horn <=