Function: idlwave-expand-path
idlwave-expand-path is a byte-compiled function defined in
idlwave.el.gz.
Signature
(idlwave-expand-path PATH &optional DEFAULT-DIR)
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/idlwave.el.gz
(defun idlwave-expand-path (path &optional default-dir)
;; Expand parts of path starting with '+' recursively into directory list.
;; Relative recursive path elements are expanded relative to DEFAULT-DIR.
(message "Expanding path...")
(let (path1 dir recursive)
(while (setq dir (pop path))
(if (setq recursive (string= (substring dir 0 1) "+"))
(setq dir (substring dir 1)))
(if (and recursive
(not (file-name-absolute-p dir)))
(setq dir (expand-file-name dir default-dir)))
(if recursive
;; Expand recursively
(setq path1 (append (idlwave-recursive-directory-list dir) path1))
;; Keep unchanged
(push dir path1)))
(message "Expanding path...done")
(nreverse path1)))