summaryrefslogtreecommitdiff
path: root/lisp/ibuf-ext.el
diff options
context:
space:
mode:
authorJohn Paul Wallington <jpw@pobox.com>2008-05-01 00:08:38 +0000
committerJohn Paul Wallington <jpw@pobox.com>2008-05-01 00:08:38 +0000
commite9e198332bb13d82964e89bad1cee521c0362070 (patch)
tree6d7db6e42e945fe55a9b496691b5347242b3de7d /lisp/ibuf-ext.el
parentb4c5fc9ff1df6799c2b69a3e56de85bfb701e9d2 (diff)
downloademacs-e9e198332bb13d82964e89bad1cee521c0362070.tar.gz
(define-ibuffer-filter filename): When the major mode is `vc-dir-mode'
use the buffer's default directory as filename.
Diffstat (limited to 'lisp/ibuf-ext.el')
-rw-r--r--lisp/ibuf-ext.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/ibuf-ext.el b/lisp/ibuf-ext.el
index 82face5eccb..8be5a73b5f4 100644
--- a/lisp/ibuf-ext.el
+++ b/lisp/ibuf-ext.el
@@ -1039,8 +1039,10 @@ currently used by buffers."
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