From 4c2ba16500dd86e70bc1bd4845292f0094f5ce2f Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Mon, 6 Jun 2022 15:32:03 +0200 Subject: [PATCH] Improve scheme-mode syntax-rules indentation * lisp/progmodes/scheme.el (syntax-rules): Indent syntax-rules with a parameter better (bug#40869). --- lisp/progmodes/scheme.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/progmodes/scheme.el b/lisp/progmodes/scheme.el index cf1d3949835..9b24c2155dc 100644 --- a/lisp/progmodes/scheme.el +++ b/lisp/progmodes/scheme.el @@ -587,7 +587,7 @@ indentation." (put 'sequence 'scheme-indent-function 0) ; SICP, not r4rs (put 'let-syntax 'scheme-indent-function 1) (put 'letrec-syntax 'scheme-indent-function 1) -(put 'syntax-rules 'scheme-indent-function 1) +(put 'syntax-rules 'scheme-indent-function 'defun) (put 'syntax-case 'scheme-indent-function 2) ; not r5rs (put 'with-syntax 'scheme-indent-function 1) (put 'library 'scheme-indent-function 1) ; R6RS -- 2.39.2