diff options
| author | John Paul Wallington | 2008-05-13 21:09:20 +0000 |
|---|---|---|
| committer | John Paul Wallington | 2008-05-13 21:09:20 +0000 |
| commit | 1eb4b4b95f37a1a7b9aa751496625a91d2348ca9 (patch) | |
| tree | 704f80d4e75bff226a83f926fc7c9ae2e0c82374 | |
| parent | 92cb2eaf1cc0ad3389bef3c8761cd648f2e9e7a4 (diff) | |
| download | emacs-1eb4b4b95f37a1a7b9aa751496625a91d2348ca9.tar.gz emacs-1eb4b4b95f37a1a7b9aa751496625a91d2348ca9.zip | |
(define-ibuffer-filter filename): Use `ibuffer-buffer-file-name'.
| -rw-r--r-- | lisp/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/ibuf-ext.el | 11 |
2 files changed, 8 insertions, 10 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index c5297e2eaf1..47852c456e0 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2008-05-13 John Paul Wallington <jpw@pobox.com> | ||
| 2 | |||
| 3 | * ibuffer.el (ibuffer-buffer-file-name): New function. | ||
| 4 | (define-ibuffer-column filename): Use it. | ||
| 5 | |||
| 6 | * ibuf-ext.el (define-ibuffer-filter filename): Use it. | ||
| 7 | |||
| 1 | 2008-05-13 Chong Yidong <cyd@stupidchicken.com> | 8 | 2008-05-13 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 9 | ||
| 3 | * talk.el (talk): Simplify. Pass display arg to talk-add-display | 10 | * talk.el (talk): Simplify. Pass display arg to talk-add-display |
diff --git a/lisp/ibuf-ext.el b/lisp/ibuf-ext.el index 6bdaed0a334..74850a6dca1 100644 --- a/lisp/ibuf-ext.el +++ b/lisp/ibuf-ext.el | |||
| @@ -1030,16 +1030,7 @@ currently used by buffers." | |||
| 1030 | (:description "filename" | 1030 | (:description "filename" |
| 1031 | :reader (read-from-minibuffer "Filter by filename (regexp): ")) | 1031 | :reader (read-from-minibuffer "Filter by filename (regexp): ")) |
| 1032 | (ibuffer-awhen (with-current-buffer buf | 1032 | (ibuffer-awhen (with-current-buffer buf |
| 1033 | (or buffer-file-name | 1033 | (ibuffer-buffer-file-name)) |
| 1034 | (and (boundp 'dired-directory) | ||
| 1035 | (let ((dired-dir | ||
| 1036 | (if (stringp dired-directory) | ||
| 1037 | dired-directory | ||
| 1038 | (car dired-directory)))) | ||
| 1039 | (and dired-dir | ||
| 1040 | (expand-file-name dired-dir)))) | ||
| 1041 | (and (eq major-mode 'vc-dir-mode) | ||
| 1042 | (bound-and-true-p default-directory)))) | ||
| 1043 | (string-match qualifier it))) | 1034 | (string-match qualifier it))) |
| 1044 | 1035 | ||
| 1045 | ;;;###autoload (autoload 'ibuffer-filter-by-size-gt "ibuf-ext") | 1036 | ;;;###autoload (autoload 'ibuffer-filter-by-size-gt "ibuf-ext") |