From 3ae7335e95ab3b2682e894d633cf2a37863b227e Mon Sep 17 00:00:00 2001 From: Mark Oteiza Date: Sun, 14 Jun 2015 01:15:44 -0400 Subject: [PATCH] Indicate macros in generated info manual --- dev/examples-to-info.el | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/dev/examples-to-info.el b/dev/examples-to-info.el index 8c67382..1e6f4b2 100644 --- a/dev/examples-to-info.el +++ b/dev/examples-to-info.el @@ -86,9 +86,12 @@ FUNCTION may reference an elisp function, alias, macro or a subr." (s-replace "### " "@section " function)) "\n") (-let [(command-name signature docstring examples) function] (format (concat "@anchor{%s}\n" - "@defun %s %s\n" + (if (macrop command-name) "@defmac" "@defun") + " %s %s\n" "%s\n\n" - "@example\n%s\n@end example\n@end defun\n") + "@example\n%s\n@end example\n" + "@end " + (if (macrop command-name) "defmac" "defun") "\n") command-name command-name signature