changeset 94503:922712402e72

(define-ibuffer-filter filename): When the major mode is `vc-dir-mode' use the buffer's default directory as filename.
author John Paul Wallington <jpw@pobox.com>
date Thu, 01 May 2008 00:07:13 +0000
parents ce541b36427b
children 63639e55e6d0
files lisp/ibuf-ext.el
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ibuf-ext.el	Wed Apr 30 23:55:05 2008 +0000
+++ b/lisp/ibuf-ext.el	Thu May 01 00:07:13 2008 +0000
@@ -1039,8 +1039,10 @@
 				       dired-directory
 				     (car dired-directory))))
 			      (and dired-dir
-				   (expand-file-name dired-dir))))))
-    (string-match qualifier it)))
+				   (expand-file-name dired-dir))))
+		       (and (eq major-mode 'vc-dir-mode)
+			    (bound-and-true-p default-directory))))
+		 (string-match qualifier it)))
 
 ;;;###autoload (autoload 'ibuffer-filter-by-size-gt  "ibuf-ext")
 (define-ibuffer-filter size-gt