Merge pull request #146 from holomorph/info-macros

Indicate macros in generated info manual
master
Matus Goljer 11 years ago
commit 66cb6f558d
  1. 7
      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

Loading…
Cancel
Save