Ce serveur Gitlab sera éteint le 30 juin 2020, pensez à migrer vos projets vers les serveurs gitlab-research.centralesupelec.fr et gitlab-student.centralesupelec.fr !

Commit 8eff9779 authored by Ryan C. Thompson's avatar Ryan C. Thompson

Adjust warning in byte-compilation subprocess

It now only warns if both the list of files to compile and the
directory to clean are *both* nil.
parent 1d8e1c6e
......@@ -133,16 +133,17 @@ whose value is a directory to be cleared of stale elc files."
(load-path (append (plist-get input-data :load-path) load-path))
(files (plist-get input-data :compile-files))
(dir-to-clean (plist-get input-data :clean-directory)))
(unless (or dir-to-clean files)
(warn "Did not get a list of files to byte-compile or a directory to clean. The input may have been corrupted."))
(when dir-to-clean
(assert (stringp dir-to-clean) nil
"The value of `:clean-directory' must be a string.")
(message "el-get-byte-compile: Cleaning stale compiled files in %s" dir-to-clean)
(el-get-clean-stale-compiled-files dir-to-clean 'recursive))
(if files
(loop for f in files
do (progn
(message "el-get-byte-compile: %s" f)
(el-get-byte-compile-file-or-directory f)))
(warn "Did not get a list of files to byte-compile. The input may have been corrupted."))))
(loop for f in files
do (progn
(message "el-get-byte-compile: %s" f)
(el-get-byte-compile-file-or-directory f)))))
(defun el-get-byte-compile-process (package buffer working-dir sync files)
"return the `el-get-start-process-list' entry to byte compile PACKAGE"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment