From fe8d069ee3633acb660591698d9d6517b818c864 Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Sat, 26 Jun 2010 23:13:02 +0200 Subject: [PATCH] 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. --- fres/contract/fres_error.h | 1 + 1 file changed, 1 insertion(+) 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); -- 2.39.2