aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/calendar/icalendar-macs.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/calendar/icalendar-macs.el')
-rw-r--r--lisp/calendar/icalendar-macs.el11
1 files changed, 10 insertions, 1 deletions
diff --git a/lisp/calendar/icalendar-macs.el b/lisp/calendar/icalendar-macs.el
index fe99cef14bc..852b48012a7 100644
--- a/lisp/calendar/icalendar-macs.el
+++ b/lisp/calendar/icalendar-macs.el
@@ -830,7 +830,8 @@ Each binding in BINDINGS should be a list of one of the following forms:
830 nodes), or the :value-nodes themselves (if they are not). 830 nodes), or the :value-nodes themselves (if they are not).
831 It is a compile-time error to use the singular keywords with a TYPE that 831 It is a compile-time error to use the singular keywords with a TYPE that
832 takes multiple values, or the plural keywords with a TYPE that does not." 832 takes multiple values, or the plural keywords with a TYPE that does not."
833 (declare (indent 2)) 833 (declare (debug (symbolp form form &rest form))
834 (indent 2))
834 ;; Static checks on the bindings prevent various annoying bugs: 835 ;; Static checks on the bindings prevent various annoying bugs:
835 (dolist (b bindings) 836 (dolist (b bindings)
836 (let ((type (car b)) 837 (let ((type (car b))
@@ -1003,6 +1004,8 @@ is equivalent to
1003 1004
1004BINDINGS are passed on to `icalendar-with-node-children' and will be 1005BINDINGS are passed on to `icalendar-with-node-children' and will be
1005available in BODY; see its docstring for their form." 1006available in BODY; see its docstring for their form."
1007 (declare (debug (symbolp form &optional form &rest form))
1008 (indent 2))
1006 (let ((vn (gensym "icalendar-node")) 1009 (let ((vn (gensym "icalendar-node"))
1007 (val (gensym "icalendar-value")) 1010 (val (gensym "icalendar-value"))
1008 (is-list (gensym "is-list"))) 1011 (is-list (gensym "is-list")))
@@ -1066,6 +1069,8 @@ node's value.
1066If PARAMETER's value is not a syntax node, then `value' is bound 1069If PARAMETER's value is not a syntax node, then `value' is bound
1067directly to PARAMETER's value, and `value-type' and `value-node' are 1070directly to PARAMETER's value, and `value-type' and `value-node' are
1068bound to nil." 1071bound to nil."
1072 (declare (debug (symbolp form &rest form))
1073 (indent 1))
1069 `(ical:with-node-value ,parameter nil ,@body)) 1074 `(ical:with-node-value ,parameter nil ,@body))
1070 1075
1071(defmacro ical:with-child-of (node type &optional bindings &rest body) 1076(defmacro ical:with-child-of (node type &optional bindings &rest body)
@@ -1084,6 +1089,8 @@ is equivalent to
1084 (icalendar-with-child-of some-node some-type nil value) 1089 (icalendar-with-child-of some-node some-type nil value)
1085 1090
1086See `icalendar-with-node-children' for the form of BINDINGS." 1091See `icalendar-with-node-children' for the form of BINDINGS."
1092 (declare (debug (symbolp form form &optional form &rest form))
1093 (indent 3))
1087 (let ((child (gensym "icalendar-node"))) 1094 (let ((child (gensym "icalendar-node")))
1088 `(let ((,child (ical:ast-node-first-child-of ,type ,node))) 1095 `(let ((,child (ical:ast-node-first-child-of ,type ,node)))
1089 (ical:with-node-value ,child ,bindings ,@body)))) 1096 (ical:with-node-value ,child ,bindings ,@body))))
@@ -1116,6 +1123,8 @@ symbol `value'; thus
1116 (icalendar-with-param-of some-property some-type) 1123 (icalendar-with-param-of some-property some-type)
1117is equivalent to 1124is equivalent to
1118 (icalendar-with-param-of some-property some-type nil value)" 1125 (icalendar-with-param-of some-property some-type nil value)"
1126 (declare (debug (symbolp form form &rest form))
1127 (indent 2))
1119 `(ical:with-child-of ,node ,type nil ,@body)) 1128 `(ical:with-child-of ,node ,type nil ,@body))
1120 1129
1121(provide 'icalendar-macs) 1130(provide 'icalendar-macs)