--- Begin Message ---
Subject: |
[PATCH] Define indentation behavior for a few more special Scheme forms |
Date: |
Wed, 20 Apr 2022 09:20:45 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 |
Hi,
The attached patch defines special indentation for a few more special Scheme
forms: and-let*, with-syntax, eval-when, and the pattern matching family
(match, match-lambda, match-let, etc.).
I didn't do copyright assignment, assuming that the patch is trivial enough,
but let me know if this would be desirable.
Best regards,
Jean
0001-Define-indentation-behavior-for-a-few-more-special-S.patch
Description: Text Data
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#55033: [PATCH] Define indentation behavior for a few more special Scheme forms |
Date: |
Wed, 20 Apr 2022 19:38:47 +0300 |
> Date: Wed, 20 Apr 2022 11:31:01 +0200
> Cc: 55033@debbugs.gnu.org
> From: Jean Abou Samra <jean@abou-samra.fr>
>
> > Thanks, but could you perhaps explain the rationale for each change,
> > so that they could be independently verified? I find the comment
> > above this part of code, viz.:
> >
> > ;; (put 'begin 'scheme-indent-function 0), say, causes begin to be
> > indented
> > ;; like defun if the first form is placed on the next line, otherwise
> > ;; it is indented like any other form (i.e. forms line up under first).
> >
> > too obfuscated to understand the numbers used as the values of this
> > property; in particular, the interpretation of the numerical value
> > (zero in the above example) doesn't seem to be explained, at least not
> > explicitly enough for me to understand it. I'd love to have that
> > explained better if possible.
>
>
>
> Yeah, I didn't take my understanding from code comments, but from
>
> http://community.schemewiki.org/?emacs-indentation
>
> I could easily improve the comments.
Thanks, I used this to expand the commentary there, and installed as a
followup after your changes.
And with that, I'm closing this bug report.
--- End Message ---