From: Michal Sojka Date: Sat, 26 Jun 2010 21:13:02 +0000 (+0200) Subject: Add a comment with elisp helper function X-Git-Url: http://rtime.felk.cvut.cz/gitweb/frescor/frsh.git/commitdiff_plain/fe8d069ee3633acb660591698d9d6517b818c864 Add a comment with elisp helper function I have this function defined in my .emacs and it automatically updates frsh_error.c with the current list of errors. Whenever I add a new error, I place the point after ")" and press C-x C-e to execute the function. --- diff --git a/fres/contract/fres_error.h b/fres/contract/fres_error.h index 690895c..9705a45 100644 --- a/fres/contract/fres_error.h +++ b/fres/contract/fres_error.h @@ -97,6 +97,7 @@ enum fres_error { FRES_ERR_VRES_PART_OF_TRANSACTION, FRES_ERR_SPARE_CAPACITY_NOT_SUPPORTED, FRES_ERR_TRANSACTION_NOT_FOUND, + // Elisp function to update .c: (update-fres-error-c) }; int fres_strerror (int error, char *message, size_t size);