Skip to content

Indenting deftype with metadata on method implementations is inconsistent #603

Open
@jellelicht

Description

@jellelicht

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions