clojure-mode icon indicating copy to clipboard operation
clojure-mode copied to clipboard

Indenting deftype with metadata on method implementations is inconsistent

Open jellelicht opened this issue 4 years ago • 0 comments

Expected behavior

Indenting deftype forms should be consistent (and ideally aesthetically pleasing)

Actual behavior

Method implementations with attached metadata in deftype seem to be indented as if they were common lists, instead of method implementations

Steps to reproduce the problem

Try to indent:

(deftype MyType []
  MyProtocol
  (do-thing []
    :indented)
  (^:meta do-thing2 []
   :not-indented))

(And notice it stays as-is, with :indented and :not-indented being indented inconsistently)

Environment & Version information

clojure-mode version

clojure-mode (version 5.13.0)

Emacs version

GNU Emacs 27.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.24, cairo version 1.16.0)

Operating system

GNU Guix System

jellelicht avatar Sep 29 '21 12:09 jellelicht