emacs-diffs
[Top][All Lists]
Advanced

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

master 099e439ea99: Add scheme-mode indentation rules for SRFI 227 and 2


From: Stefan Kangas
Subject: master 099e439ea99: Add scheme-mode indentation rules for SRFI 227 and 253
Date: Thu, 26 Dec 2024 16:42:55 -0500 (EST)

branch: master
commit 099e439ea99d794502f403b6de53b8589d7b6d6e
Author: Antero Mejr <mail@antr.me>
Commit: Stefan Kangas <stefankangas@gmail.com>

    Add scheme-mode indentation rules for SRFI 227 and 253
    
    * lisp/progmodes/scheme.el: Add properties for SRFI 227 and SRFI 253
    identifiers.  (Bug#75126)
---
 lisp/progmodes/scheme.el | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/lisp/progmodes/scheme.el b/lisp/progmodes/scheme.el
index a0f922f279c..db3e0161f79 100644
--- a/lisp/progmodes/scheme.el
+++ b/lisp/progmodes/scheme.el
@@ -693,6 +693,19 @@ indentation."
 (put 'match-let* 'scheme-indent-function 1)
 (put 'match-letrec 'scheme-indent-function 1)
 
+;; SRFI-227
+(put 'opt-lambda 'scheme-indent-function 1)
+(put 'opt*-lambda 'scheme-indent-function 1)
+(put 'let-optionals 'scheme-indent-function 2)
+(put 'let-optionals* 'scheme-indent-function 2)
+;; define-optionals and define-optionals* already work
+
+;; SRFI-253
+(put 'check-case 'scheme-indent-function 1)
+(put 'lambda-checked 'scheme-indent-function 1)
+(put 'case-lambda-checked 'scheme-doc-string-elt 1)
+;; define-checked and define-record-type-checked already work
+
 ;;;; MIT Scheme specific indentation.
 
 (if scheme-mit-dialect



reply via email to

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