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