Merge pull request #33 from zhangpj/fix-warnings

Stop byte-compiling modeline format functions
This commit is contained in:
Vincent Zhang 2018-10-18 01:56:43 +08:00 committed by GitHub
commit e168c719da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -286,10 +286,7 @@ active.")
(concat "Modeline:\n"
(format " %s\n %s"
(prin1-to-string lhs)
(prin1-to-string rhs))))
(unless (bound-and-true-p byte-compile-current-file)
(let (byte-compile-warnings)
(byte-compile sym)))))
(prin1-to-string rhs))))))
(defun doom-modeline (key)
"Return a mode-line configuration associated with KEY (a symbol).