clojure-emacs / clojure-emacs/clojure-mode
Indentation of `clojure.test/are`
- Langage dominant
- Emacs Lisp
- Étoiles
- 1k
- Forks
- 249
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
## Expected behavior
I was expecting `clojure-mode`'s indentation to behave similar to `cider-format` and `lein cljfmt`. Is there some way to configure `clojure-mode` to indent the same way as `cider-format`?
## Actual behavior
The macro `clojure.test/are` is indented one way with `M-x cider-format` (and `lein cljfmt`), but another way when using `clojure-mode`'s indentation rules (with `aggressive-indent-mode`). The latter uses one space less than the former for the second argument to `are` (when it is on a new line).
## Steps to reproduce the problem
The code is formatted as following using `clojure-mode` indentation:
```clojure
(deftest are-test
(are [x y]
(= x y)
1 1
2 2))
```
And as following when using `cider-format` indentation (note the extra space on line 3):
```clojure
((deftest are-test
(are [x y]
(= x y)
1 1
2 2))
```
## Environment & Version information
### clojure-mode version information
```
clojure-mode (version 5.11.0)
```
### Emacs version
```
GNU Emacs 27.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.12, cairo version 1.17.3) of 2019-11-26
```
### Operating system
Arch Linux
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Reproduisez les exemples de `clojure.test/are` en utilisant les règles d'indentation de clojure-mode avec aggressive-indent-mode, puis comparez-les avec `M-x cider-format` et `lein cljfmt`. Suivez les points d'entrée de l'indentation de clojure-mode et déterminez si l'espace supplémentaire peut être configuré ou rendu cohérent ; le travail est terminé lorsque les formes affichées utilisent une indentation correspondante.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- clojure, emacs-lisp
- Domaine
- tooling
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 35/100