diff options
author | John Paul Wallington <jpw@pobox.com> | 2008-05-01 00:08:38 +0000 |
---|---|---|
committer | John Paul Wallington <jpw@pobox.com> | 2008-05-01 00:08:38 +0000 |
commit | e9e198332bb13d82964e89bad1cee521c0362070 (patch) | |
tree | 6d7db6e42e945fe55a9b496691b5347242b3de7d /lisp/ibuf-ext.el | |
parent | b4c5fc9ff1df6799c2b69a3e56de85bfb701e9d2 (diff) | |
download | emacs-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.el | 6 |
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 |