Skip to content

Cannot pass lambdas to clojure-indent-function #383

Closed
@arichiardi

Description

@arichiardi

Expected behavior

The following should work in define-clojure-indent

(trace-handlers (lambda (&rest _) 0))

Actual behavior

It fails to trigger the right case branch.

Steps to reproduce the problem

(define-clojure-indent
  (trace-handlers (lambda (&rest _) 0)))

clojure-mode version information

clojure-mode (version 5.3.0)

The problem seems here where functionp returns nil as lambda is a special form.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions