summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2015-06-11 13:02:55 -0500
committerDavid Thompson <davet@gnu.org>2015-06-12 08:10:39 -0400
commit0ec98c95075e09567ef05a84dae8f6de40920202 (patch)
tree6943a68d5319c87365161c915184df23f8a5c10b
parent8ee10f0726a60d187ae5c5e42b807113a5295b82 (diff)
signal: Add comments specifying emacs indentation for macros.
* sly/signal.scm: Add comments specifying emacs indentation level for signal-let and signal-let* syntax.
-rw-r--r--sly/signal.scm4
1 files changed, 4 insertions, 0 deletions
diff --git a/sly/signal.scm b/sly/signal.scm
index 9547f17..0ddda2a 100644
--- a/sly/signal.scm
+++ b/sly/signal.scm
@@ -183,11 +183,15 @@ be coerced into one."
((_ name value)
#'(define name (make-signal-maybe value))))))
+;; emacs: (put 'signal-let 'scheme-indent-function 1)
+
(define-syntax-rule (signal-let ((var signal) ...) body ...)
"Similar to 'let', but produces a signal whose value is dependent
upon all signals in the bindings list."
(signal-map (lambda (var ...) body ...) signal ...))
+;; emacs: (put 'signal-let* 'scheme-indent-function 1)
+
(define-syntax-rule (signal-let* ((var signal) ...) body ...)
"Similar to 'signal-let', but the signal variable bindings are
performed sequentially."