]> rtime.felk.cvut.cz Git - frescor/frsh.git/commitdiff
Add a comment with elisp helper function
authorMichal Sojka <sojkam1@fel.cvut.cz>
Sat, 26 Jun 2010 21:13:02 +0000 (23:13 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Sat, 26 Jun 2010 21:13:02 +0000 (23:13 +0200)
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.

fres/contract/fres_error.h

index 690895c35fb5a533a352d7365aefd951d5a6fb1f..9705a4553020b64a278f013b14c77222008a6e7a 100644 (file)
@@ -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);