From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Antero Mejr Newsgroups: gmane.emacs.bugs Subject: bug#75126: [PATCH] Add scheme-mode indentation rules for SRFI 227 and 253 Date: Thu, 26 Dec 2024 16:14:16 -0500 Message-ID: <87h66qm9jr.fsf@antr.me> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39467"; mail-complaints-to="usenet@ciao.gmane.io" To: 75126@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 26 22:15:39 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tQvCj-000A8O-Rh for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 26 Dec 2024 22:15:37 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tQvCC-00036O-FZ; Thu, 26 Dec 2024 16:15:04 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tQvCA-00035s-Ls for bug-gnu-emacs@gnu.org; Thu, 26 Dec 2024 16:15:02 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tQvCA-0002Ne-Ca for bug-gnu-emacs@gnu.org; Thu, 26 Dec 2024 16:15:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:From:To:Subject; bh=soIk30hHYOGeAfUpcvbc5YIGyU9bD+GX7bd9u+I/26g=; b=aIi2kNwvJPZAlsgxmyEpVassebgbAfr1vQDBMFIjRJxue1kg0U9K/E/ccm+l9NPMforqTRaCxCTvJXI3N5AQsBC3+PsnXPJ0uEZAFrz1yq6Yx5bTSf5ayR+RqoIohtIYqI25th9dT99Gkq4RoDmpouxjADoL2hhE8y7cye/H5nrFYauJs54N1uQKM9HcpWTieKSDopVsR6feCAWWjtpxKgqvSMTFeKzL3H8lSDgXQ53KotK5qMNWuH5AX27IrPIBbl1FXIxqcSSzLpjZB/SG32/fE8v5zrxdXu/QSZSBRBz0zUbSoJWzLGShTFjp0pUW73Nq9zcAkhtmlR7msNrIrg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tQvCA-0002MD-6V for bug-gnu-emacs@gnu.org; Thu, 26 Dec 2024 16:15:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Antero Mejr Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 26 Dec 2024 21:15:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 75126 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.17352476738979 (code B ref -1); Thu, 26 Dec 2024 21:15:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 26 Dec 2024 21:14:33 +0000 Original-Received: from localhost ([127.0.0.1]:42444 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tQvBg-0002Kl-FN for submit@debbugs.gnu.org; Thu, 26 Dec 2024 16:14:32 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:44610) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tQvBd-0002KS-Nl for submit@debbugs.gnu.org; Thu, 26 Dec 2024 16:14:30 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tQvBb-00034Q-Ev for bug-gnu-emacs@gnu.org; Thu, 26 Dec 2024 16:14:27 -0500 Original-Received: from sender4-op-o15.zoho.com ([136.143.188.15]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tQvBZ-0002Kw-G3 for bug-gnu-emacs@gnu.org; Thu, 26 Dec 2024 16:14:27 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1735247659; cv=none; d=zohomail.com; s=zohoarc; b=MW8werse92eWeZvpoNVMY25ujvhmWZ+Ga2DeQcAJe58a8+02ya1ucJ2mgtXULWvK99O3N1ycpk5UpVOaaKm1paL+9gDaBSTt7+40qrCTzWIxgBNOYtINctEjI8KRVZvKR1jExKqvZPJEbWK2kG399yyE2A34mD0BaDEnak/nSQs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1735247659; h=Content-Type:Date:Date:From:From:MIME-Version:Message-ID:Subject:Subject:To:To:Message-Id:Reply-To:Cc; bh=H4Wo9lE6J2tXi5vQuMkikpGnTSDEdqXwVC3EodKVZCU=; b=ZwLlggy4vS/2a90qTcLU1+cIFaDb8H/syZWLKQ7oqfW+ztcVLcDAiJsf33CO7IXXZuIHSHblbE1nvT8ohY84eKFESAWP8xI4wP75OIZvcmA20ANPTdb9yGJgZlvL9hrFlI/Y+SOGR/Rcoh4HWPPqIWdRmB/Gdv6DdlaD0DQ3Pkc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=antr.me; spf=pass smtp.mailfrom=mail@antr.me; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1735247659; s=zmail; d=antr.me; i=mail@antr.me; h=From:From:To:To:Subject:Subject:Date:Date:Message-ID:MIME-Version:Content-Type:Message-Id:Reply-To:Cc; bh=H4Wo9lE6J2tXi5vQuMkikpGnTSDEdqXwVC3EodKVZCU=; b=camIiRWnqgXQa8M5g3IASbwitxQXPIpvbwVKykgP5xDlZc3ZltGmKIL2c2frt2IZ NLqIv0EuSLeAYjHbs2JdVOwbBKwsJQDDm3F5W38RgfEa99W9KIegZJUxh25+p2QVp5b whRHjVcnMB8EDswmeZsjHt+oUz0mNTCD25ATyNt0= Original-Received: by mx.zohomail.com with SMTPS id 1735247657215643.093603278651; Thu, 26 Dec 2024 13:14:17 -0800 (PST) X-Zoho-Virus-Status: 1 X-Zoho-AV-Stamp: zmail-av-1.3.1/235.235.64 X-ZohoMailClient: External Received-SPF: pass client-ip=136.143.188.15; envelope-from=mail@antr.me; helo=sender4-op-o15.zoho.com X-Spam_score_int: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_SBL_A=0.1 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:297791 Archived-At: --=-=-= Content-Type: text/plain Tags: patch Both SRFIs are finalized and introduce identifiers that need specific indentation rules. --=-=-= Content-Type: text/patch Content-Disposition: attachment; filename=0001-Add-scheme-mode-indentation-rules-for-SRFI-227-and-2.patch >From 183781e6b9813404f457759018f1178205bbe621 Mon Sep 17 00:00:00 2001 From: Antero Mejr 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 --=-=-=--