emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/dash 3ae7335 02/14: Indicate macros in generated info m


From: Phillip Lord
Subject: [elpa] externals/dash 3ae7335 02/14: Indicate macros in generated info manual
Date: Sun, 04 Oct 2015 12:00:59 +0000

branch: externals/dash
commit 3ae7335e95ab3b2682e894d633cf2a37863b227e
Author: Mark Oteiza <address@hidden>
Commit: Mark Oteiza <address@hidden>

    Indicate macros in generated info manual
---
 dev/examples-to-info.el |    7 +++++--
 1 files 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"
-                      "@address@hidden address@hidden defun\n")
+                      "@address@hidden example\n"
+                      "@end "
+                      (if (macrop command-name) "defmac" "defun") "\n")
               command-name
               command-name
               signature



reply via email to

[Prev in Thread] Current Thread [Next in Thread]