diff options
| author | Tino Calancha | 2016-07-11 14:34:49 +0900 |
|---|---|---|
| committer | Tino Calancha | 2016-07-11 14:34:49 +0900 |
| commit | df7774be39af76d3072a0278ef815a47bf50dfe9 (patch) | |
| tree | f722a0fa5197618c29b1bee0b33ab875f97f188a /test | |
| parent | bfeda891a51178dd0032800ea4aef013c62bbe10 (diff) | |
| download | emacs-df7774be39af76d3072a0278ef815a47bf50dfe9.tar.gz emacs-df7774be39af76d3072a0278ef815a47bf50dfe9.zip | |
Dired always read file system
* dired.el (dired-always-read-filesystem): Add new option.
(dired-mark-files-containing-regexp): Use it (Bug#22694).
* doc/emacs/dired.texi: Mention it in the manual.
* test/lisp/dired-tests.el (dired-test-bug22694): Add test.
;* etc/NEWS: Add entry for this change.
Diffstat (limited to 'test')
| -rw-r--r-- | test/lisp/dired-tests.el | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/lisp/dired-tests.el b/test/lisp/dired-tests.el index 3efe2599138..d66a9caedd3 100644 --- a/test/lisp/dired-tests.el +++ b/test/lisp/dired-tests.el | |||
| @@ -31,5 +31,24 @@ | |||
| 31 | (symbol-function | 31 | (symbol-function |
| 32 | 'dired-jump)))) | 32 | 'dired-jump)))) |
| 33 | 33 | ||
| 34 | (ert-deftest dired-test-bug22694 () | ||
| 35 | "Test for http://debbugs.gnu.org/22694 ." | ||
| 36 | (let* ((dir (expand-file-name "bug22694" default-directory)) | ||
| 37 | (file "test") | ||
| 38 | (full-name (expand-file-name file dir)) | ||
| 39 | (regexp "bar") | ||
| 40 | (dired-always-read-filesystem t)) | ||
| 41 | (make-directory dir) | ||
| 42 | (with-temp-file full-name (insert "foo")) | ||
| 43 | (find-file-noselect full-name) | ||
| 44 | (dired dir) | ||
| 45 | (with-temp-file full-name (insert "bar")) | ||
| 46 | (dired-mark-files-containing-regexp regexp) | ||
| 47 | (unwind-protect | ||
| 48 | (should (equal (dired-get-marked-files nil nil nil 'distinguish-1-mark) | ||
| 49 | `(t ,full-name))) | ||
| 50 | ;; Clean up | ||
| 51 | (delete-directory dir 'recursive)))) | ||
| 52 | |||
| 34 | (provide 'dired-tests) | 53 | (provide 'dired-tests) |
| 35 | ;; dired-tests.el ends here | 54 | ;; dired-tests.el ends here |