diff options
author | John Paul Wallington <jpw@pobox.com> | 2005-12-08 23:50:32 +0000 |
---|---|---|
committer | John Paul Wallington <jpw@pobox.com> | 2005-12-08 23:50:32 +0000 |
commit | 1c258d8cf50e1c4ae9455d664c69958b35529cf9 (patch) | |
tree | 4b6522c2b3d3266e298375764d636b509dbb08a9 /lisp/ibuf-ext.el | |
parent | e87aa620615b5fb036d6eb1c642f1bde94f53fb2 (diff) | |
download | emacs-1c258d8cf50e1c4ae9455d664c69958b35529cf9.tar.gz |
(define-ibuffer-filter filename): If `dired-directory' is a list then
really use its car.
Diffstat (limited to 'lisp/ibuf-ext.el')
-rw-r--r-- | lisp/ibuf-ext.el | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lisp/ibuf-ext.el b/lisp/ibuf-ext.el index 4e8f8f61221..2de72547887 100644 --- a/lisp/ibuf-ext.el +++ b/lisp/ibuf-ext.el @@ -1021,10 +1021,12 @@ currently used by buffers." (ibuffer-awhen (with-current-buffer buf (or buffer-file-name (and (boundp 'dired-directory) - (if (stringp dired-directory) - dired-directory - (car dired-directory)) - (expand-file-name dired-directory)))) + (let ((dired-dir + (if (stringp dired-directory) + dired-directory + (car dired-directory)))) + (and dired-dir + (expand-file-name dired-dir)))))) (string-match qualifier it))) ;;;###autoload (autoload 'ibuffer-filter-by-size-gt "ibuf-ext") |