File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 7272 " Record down the symbol while executing `isearch-project-forward-symbol-at-point' command." )
7373
7474
75+ (defun isearch-project--flatten-list (l )
76+ " Flatten the multiple dimensional array, L to one dimensonal array.
77+ For instance,
78+ '(1 2 3 4 (5 6 7 8)) => '(1 2 3 4 5 6 7 8)."
79+ (cond ((null l) nil )
80+ ((atom l) (list l))
81+ (t (loop for a in l appending (isearch-project--flatten-list a)))))
82+
7583(defun isearch-project--is-contain-list-string (in-list in-str )
7684 " Check if a string contain in any string in the string list.
7785IN-LIST : list of string use to check if IN-STR in contain one of
@@ -121,15 +129,15 @@ FILEPATH : file path."
121129 (push (isearch-project--f-directories-ignore-directories dir rec) final-dirs)))
122130 (setq valid-dirs (reverse valid-dirs))
123131 (setq final-dirs (reverse final-dirs))
124- (jcs -flatten-list (append valid-dirs final-dirs))))
132+ (isearch-project- -flatten-list (append valid-dirs final-dirs))))
125133
126134(defun isearch-project--f-files-ignore-directories (path &optional fn rec )
127135 " Find all files in PATH by ignored common directories with FN and REC."
128136 (let ((dirs (append (list path) (isearch-project--f-directories-ignore-directories path rec)))
129137 (files '()))
130138 (dolist (dir dirs)
131139 (push (f-files dir fn) files ))
132- (jcs -flatten-list (reverse files ))))
140+ (isearch-project- -flatten-list (reverse files ))))
133141
134142(defun isearch-project-prepare ()
135143 " Incremental search preparation."
You can’t perform that action at this time.
0 commit comments