Mercurial > emacs
diff lisp/ibuf-ext.el @ 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 | 4693d30bd9c1 |
children | ee5932bf781d |
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