branch: master
commit dc4df881c083606b1855e84297b47d8bb8ca12fb
Author: Syohei YOSHIDA <[email protected]>
Commit: Syohei YOSHIDA <[email protected]>
Fix about cl-lib
- Use cl-lib function instead of cl.el
- Remove eval-when-compile for using cl-lib function
---
ztree-dir.el | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/ztree-dir.el b/ztree-dir.el
index 7d866ff..600d965 100644
--- a/ztree-dir.el
+++ b/ztree-dir.el
@@ -45,7 +45,7 @@
(require 'ztree-util)
(require 'ztree-view)
-(eval-when-compile (require 'cl-lib))
+(require 'cl-lib)
;;
;; Constants
@@ -149,8 +149,8 @@ Otherwise, the ztree window is used to find the file."
"Returns the list of files/directories for the given PATH"
;; remove . and .. from the list of files to avoid infinite
;; recursion
- (remove-if (lambda (x) (string-match-p "/\\.\\.?$" x))
- (directory-files path 'full)))
+ (cl-remove-if (lambda (x) (string-match-p "/\\.\\.?$" x))
+ (directory-files path 'full)))