all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#75126: [PATCH] Add scheme-mode indentation rules for SRFI 227 and 253
@ 2024-12-26 21:14 Antero Mejr
  2024-12-26 21:43 ` Stefan Kangas
  0 siblings, 1 reply; 2+ messages in thread
From: Antero Mejr @ 2024-12-26 21:14 UTC (permalink / raw)
  To: 75126

[-- Attachment #1: Type: text/plain, Size: 103 bytes --]

Tags: patch

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


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Add-scheme-mode-indentation-rules-for-SRFI-227-and-2.patch --]
[-- Type: text/patch, Size: 1239 bytes --]

From 183781e6b9813404f457759018f1178205bbe621 Mon Sep 17 00:00:00 2001
From: Antero Mejr <mail@antr.me>
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)
 \f
+;; 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
+\f
+;; 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
+\f
 ;;;; MIT Scheme specific indentation.
 
 (if scheme-mit-dialect
-- 
2.46.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#75126: [PATCH] Add scheme-mode indentation rules for SRFI 227 and 253
  2024-12-26 21:14 bug#75126: [PATCH] Add scheme-mode indentation rules for SRFI 227 and 253 Antero Mejr
@ 2024-12-26 21:43 ` Stefan Kangas
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Kangas @ 2024-12-26 21:43 UTC (permalink / raw)
  To: Antero Mejr, 75126-done

Version: 31.1

Antero Mejr <mail@antr.me> 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 <mail@antr.me>
> 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)
>  \f
> +;; 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
> +\f
> +;; 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
> +\f
>  ;;;; MIT Scheme specific indentation.
>
>  (if scheme-mit-dialect
> --
> 2.46.0





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-12-26 21:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-26 21:14 bug#75126: [PATCH] Add scheme-mode indentation rules for SRFI 227 and 253 Antero Mejr
2024-12-26 21:43 ` Stefan Kangas

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.