diff options
| author | Andreas Schwab | 2014-12-10 09:44:26 +0100 |
|---|---|---|
| committer | Andreas Schwab | 2014-12-10 09:47:36 +0100 |
| commit | 94a3f7648cfc9d1d205e69eff0beec416d30a0fe (patch) | |
| tree | b55aea637daf2bbab2a566c8840ad4eaf392cfae | |
| parent | 5c9a98bffb2c824e2fc07350ac7492a0bd9cbc18 (diff) | |
| download | emacs-94a3f7648cfc9d1d205e69eff0beec416d30a0fe.tar.gz emacs-94a3f7648cfc9d1d205e69eff0beec416d30a0fe.zip | |
* files.el (file-tree-walk): Use file-name-as-directory
unconditionally.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/files.el | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 445a4618714..454ee000c9a 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2014-12-10 Andreas Schwab <schwab@suse.de> | ||
| 2 | |||
| 3 | * files.el (file-tree-walk): Use file-name-as-directory | ||
| 4 | unconditionally. | ||
| 5 | |||
| 1 | 2014-12-10 Lars Magne Ingebrigtsen <larsi@gnus.org> | 6 | 2014-12-10 Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 2 | 7 | ||
| 3 | * files.el (directory-files-recursively): Use | 8 | * files.el (directory-files-recursively): Use |
diff --git a/lisp/files.el b/lisp/files.el index e948c745b3c..568c1bb58b1 100644 --- a/lisp/files.el +++ b/lisp/files.el | |||
| @@ -743,8 +743,7 @@ The ACTION is applied to each subdirectory before descending into | |||
| 743 | it, and if nil is returned at that point, the descent will be | 743 | it, and if nil is returned at that point, the descent will be |
| 744 | prevented. Directory entries are sorted with string-lessp." | 744 | prevented. Directory entries are sorted with string-lessp." |
| 745 | (cond ((file-directory-p dir) | 745 | (cond ((file-directory-p dir) |
| 746 | (or (char-equal ?/ (aref dir (1- (length dir)))) | 746 | (setq dir (file-name-as-directory dir)) |
| 747 | (setq dir (file-name-as-directory dir))) | ||
| 748 | (let ((lst (directory-files dir nil nil t)) | 747 | (let ((lst (directory-files dir nil nil t)) |
| 749 | fullname file) | 748 | fullname file) |
| 750 | (while lst | 749 | (while lst |