Subject: bug#75126: closed (Re: bug#75126: [PATCH] Add scheme-mode indentation rules for SRFI 227 and 253)

From: [email-masked] (GNU bug Tracking System)
Date: Thu, 26 Dec 2024 21:45:02 +0000

Your bug report

#75126: [PATCH] Add scheme-mode indentation rules for SRFI 227 and 253

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
75126: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=75126
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#75126: [PATCH] Add scheme-mode indentation rules for SRFI 227 and 253
From: Stefan Kangas <[email-masked]>
To: Antero Mejr <[email-masked]>, [email-masked]
Date: Thu, 26 Dec 2024 21:43:04 +0000
List-Id: <debbugs-submit.debbugs.gnu.org>

Version: 31.1

Antero Mejr <[email-masked]> writes:

> Tags: patch
>
> Both SRFIs are finalized and introduce identifiers that need specific
> indentation rules.

Thanks for the patch.  Installed on master as commit 099e439ea99.

I'm therefore closing this bug report.

> From 183781e6b9813404f457759018f1178205bbe621 Mon Sep 17 00:00:00 2001
> From: Antero Mejr <[email-masked]>
> Date: Thu, 26 Dec 2024 15:58:24 -0500
> Subject: [PATCH] Add scheme-mode indentation rules for SRFI 227 and 253
>
> * lisp/progmodes/scheme.el: Add properties for SRFI 227 and SRFI 253
> identifiers.
> ---
>  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
> --
> 2.46.0

Subject: [PATCH] Add scheme-mode indentation rules for SRFI 227 and 253
From: Antero Mejr <[email-masked]>
To: [email-masked]
Date: Thu, 26 Dec 2024 16:14:16 -0500
List-Id: <debbugs-submit.debbugs.gnu.org>

Tags: patch

Both SRFIs are finalized and introduce identifiers that need specific
indentation rules.

>From 183781e6b9813404f457759018f1178205bbe621 Mon Sep 17 00:00:00 2001
From: Antero Mejr <[email-masked]>
Date: Thu, 26 Dec 2024 15:58:24 -0500
Subject: [PATCH] Add scheme-mode indentation rules for SRFI 227 and 253

* lisp/progmodes/scheme.el: Add properties for SRFI 227 and SRFI 253
identifiers.
---
 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
-- 
2.46.0