From: Antero Mejr <mail@antr.me>
To: 75126@debbugs.gnu.org
Subject: bug#75126: [PATCH] Add scheme-mode indentation rules for SRFI 227 and 253
Date: Thu, 26 Dec 2024 16:14:16 -0500 [thread overview]
Message-ID: <87h66qm9jr.fsf@antr.me> (raw)
[-- 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
next reply other threads:[~2024-12-26 21:14 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-26 21:14 Antero Mejr [this message]
2024-12-26 21:43 ` bug#75126: [PATCH] Add scheme-mode indentation rules for SRFI 227 and 253 Stefan Kangas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87h66qm9jr.fsf@antr.me \
--to=mail@antr.me \
--cc=75126@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).