Skip to content

Instantly share code, notes, and snippets.

@ijp
Created August 28, 2014 17:34
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 ijp/93edae50da6ee72cfd1e to your computer and use it in GitHub Desktop.
Save ijp/93edae50da6ee72cfd1e to your computer and use it in GitHub Desktop.
(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