Created
August 28, 2014 17:34
-
-
Save ijp/93edae50da6ee72cfd1e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defmacro kingpatzer/log-cmd (&rest rest) | |
"This wraps the body in error checking and prints start and stop information to the message buffer. This requires a variable named 'output' be defined in context that tells us what to print." | |
`(progn | |
(message "**** Starting %s ****" (concat output)) | |
(with-demoted-errors ,@rest) | |
(message "*** Finishing %s ****\n" (concat output)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment