This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun find-buildout-root (path) | |
"Search PATH for a buildout root. | |
If a buildout root is found return the path, othwise return | |
nil." | |
;; find the most top one, not the first one | |
(let ((dir default-directory) | |
(previous nil)) | |
(while dir | |
(let ((dir (find-parent-with-file dir "boostrap.py"))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun jone-filter (condp lst) | |
(delq nil | |
(mapcar (lambda (x) (and (funcall condp x) x)) lst))) | |
(jone-filter (lambda (e) (string= e "hans")) ("hans" "peter")) |
NewerOlder