diff options
| author | Sam Steingold | 2008-06-20 15:50:16 +0000 |
|---|---|---|
| committer | Sam Steingold | 2008-06-20 15:50:16 +0000 |
| commit | 424ce3bd4685791ef527976cd3d4b457c45709c1 (patch) | |
| tree | 953bce459a4f0dd8ea75ff11393fc490e51bb771 | |
| parent | d2373df5d7ab0e3bc0d55938c3bd245d4920ba7e (diff) | |
| download | emacs-424ce3bd4685791ef527976cd3d4b457c45709c1.tar.gz emacs-424ce3bd4685791ef527976cd3d4b457c45709c1.zip | |
(vc-dir-hide-up-to-date): Accept a prefix argument to also remove DIRECTORY entries.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/vc.el | 13 |
2 files changed, 14 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 4e50b09539e..b5f5e1684b9 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2008-06-20 Sam Steingold <sds@gnu.org> | ||
| 2 | |||
| 3 | * vc.el (vc-dir-hide-up-to-date): Accept a prefix argument to also | ||
| 4 | remove DIRECTORY entries. | ||
| 5 | |||
| 1 | 2008-06-20 Eli Zaretskii <eliz@gnu.org> | 6 | 2008-06-20 Eli Zaretskii <eliz@gnu.org> |
| 2 | 7 | ||
| 3 | * makefile.w32-in (distclean): Depend on `clean'. | 8 | * makefile.w32-in (distclean): Depend on `clean'. |
diff --git a/lisp/vc.el b/lisp/vc.el index 0507bf72130..c8a5c9785a4 100644 --- a/lisp/vc.el +++ b/lisp/vc.el | |||
| @@ -2014,12 +2014,17 @@ outside of VC) and one wants to do some operation on it." | |||
| 2014 | (interactive "fShow file: ") | 2014 | (interactive "fShow file: ") |
| 2015 | (vc-dir-update (list (list (file-relative-name file) (vc-state file))) (current-buffer))) | 2015 | (vc-dir-update (list (list (file-relative-name file) (vc-state file))) (current-buffer))) |
| 2016 | 2016 | ||
| 2017 | (defun vc-dir-hide-up-to-date () | 2017 | (defun vc-dir-hide-up-to-date (&optional drop-directory) |
| 2018 | "Hide up-to-date items from display." | 2018 | "Hide up-to-date items from display. |
| 2019 | (interactive) | 2019 | With a prefix argument, also drop DIRECTORY entries." |
| 2020 | (interactive "P") | ||
| 2020 | (ewoc-filter | 2021 | (ewoc-filter |
| 2021 | vc-ewoc | 2022 | vc-ewoc |
| 2022 | (lambda (crt) (not (eq (vc-dir-fileinfo->state crt) 'up-to-date))))) | 2023 | (if drop-directory |
| 2024 | (lambda (crt) | ||
| 2025 | (not (or (eq (vc-dir-fileinfo->state crt) 'up-to-date) | ||
| 2026 | (vc-dir-fileinfo->directory crt)))) | ||
| 2027 | (lambda (crt) (not (eq (vc-dir-fileinfo->state crt) 'up-to-date)))))) | ||
| 2023 | 2028 | ||
| 2024 | (defun vc-default-status-fileinfo-extra (backend file) | 2029 | (defun vc-default-status-fileinfo-extra (backend file) |
| 2025 | "Default absence of extra information returned for a file." | 2030 | "Default absence of extra information returned for a file." |