Skip to content

Instantly share code, notes, and snippets.

@paxperscientiam
Created April 27, 2019 20:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paxperscientiam/9463e8099d47247aa494792346dece14 to your computer and use it in GitHub Desktop.
Save paxperscientiam/9463e8099d47247aa494792346dece14 to your computer and use it in GitHub Desktop.
(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