unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Kangas <stefankangas@gmail.com>
To: Antero Mejr <mail@antr.me>, 75126-done@debbugs.gnu.org
Subject: bug#75126: [PATCH] Add scheme-mode indentation rules for SRFI 227 and 253
Date: Thu, 26 Dec 2024 21:43:04 +0000	[thread overview]
Message-ID: <CADwFkmmEqCH9mB-d0cCUZqY0zvr8AR-Jv=mX=CcBMdQk671e2w@mail.gmail.com> (raw)
In-Reply-To: <87h66qm9jr.fsf@antr.me>

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





      reply	other threads:[~2024-12-26 21:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]

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='CADwFkmmEqCH9mB-d0cCUZqY0zvr8AR-Jv=mX=CcBMdQk671e2w@mail.gmail.com' \
    --to=stefankangas@gmail.com \
    --cc=75126-done@debbugs.gnu.org \
    --cc=mail@antr.me \
    /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).