Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
(defun moose/test-compilation-buffer (buffer string)
"Return messages of success."
(if (and
(string-match "compilation" (buffer-name buffer))
(string-match "finished" string)
(not (search-forward "warning" nil t)))
(message "Compilation successful.")
(message "FAIL!")))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.