diff options
| author | John Paul Wallington | 2006-02-02 21:57:09 +0000 |
|---|---|---|
| committer | John Paul Wallington | 2006-02-02 21:57:09 +0000 |
| commit | 4b9ae390faf4e6ccf1c20b62c349fc1ebd901e05 (patch) | |
| tree | f13f63a8b7f8b594c93fd5f456d167e2f8737e76 | |
| parent | 9fe14abebd0e592e60fcd12d2f3b816600771236 (diff) | |
| download | emacs-4b9ae390faf4e6ccf1c20b62c349fc1ebd901e05.tar.gz emacs-4b9ae390faf4e6ccf1c20b62c349fc1ebd901e05.zip | |
(ibuffer-mark-compressed-file-buffers): New command.
| -rw-r--r-- | lisp/ibuf-ext.el | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/lisp/ibuf-ext.el b/lisp/ibuf-ext.el index 2de72547887..e5820d066e2 100644 --- a/lisp/ibuf-ext.el +++ b/lisp/ibuf-ext.el | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | ;;; ibuf-ext.el --- extensions for ibuffer | 1 | ;;; ibuf-ext.el --- extensions for ibuffer |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 2000, 2001, 2002, 2003, 2004, | 3 | ;; Copyright (C) 2000, 2001, 2002, 2003, 2004, |
| 4 | ;; 2005 Free Software Foundation, Inc. | 4 | ;; 2005, 2006 Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | ;; Author: Colin Walters <walters@verbum.org> | 6 | ;; Author: Colin Walters <walters@verbum.org> |
| 7 | ;; Maintainer: John Paul Wallington <jpw@gnu.org> | 7 | ;; Maintainer: John Paul Wallington <jpw@gnu.org> |
| @@ -1449,6 +1449,17 @@ You can then feed the file name(s) to other commands with \\[yank]." | |||
| 1449 | (memq major-mode ibuffer-help-buffer-modes))))) | 1449 | (memq major-mode ibuffer-help-buffer-modes))))) |
| 1450 | 1450 | ||
| 1451 | ;;;###autoload | 1451 | ;;;###autoload |
| 1452 | (defun ibuffer-mark-compressed-file-buffers () | ||
| 1453 | "Mark buffers whose associated file is compressed." | ||
| 1454 | (interactive) | ||
| 1455 | (ibuffer-mark-on-buffer | ||
| 1456 | #'(lambda (buf) | ||
| 1457 | (with-current-buffer buf | ||
| 1458 | (and buffer-file-name | ||
| 1459 | (string-match ibuffer-compressed-file-name-regexp | ||
| 1460 | buffer-file-name)))))) | ||
| 1461 | |||
| 1462 | ;;;###autoload | ||
| 1452 | (defun ibuffer-mark-old-buffers () | 1463 | (defun ibuffer-mark-old-buffers () |
| 1453 | "Mark buffers which have not been viewed in `ibuffer-old-time' days." | 1464 | "Mark buffers which have not been viewed in `ibuffer-old-time' days." |
| 1454 | (interactive) | 1465 | (interactive) |