Skip to content

Conversation

Malabarba
Copy link
Member

Amonst other things, this addresses the issues on raised on #170 with do and recur.

@Malabarba
Copy link
Member Author

There's something wrong with the date on the commits, and they're listed out of order above. The final commit is the "Improve support for ...".

@Malabarba
Copy link
Member Author

I keep running into discrepancies between clojure-mode's indentation and cljfmt. Should I file these to the former or the latter?

@bbatsov
Copy link
Member

bbatsov commented Apr 1, 2015

I keep running into discrepancies between clojure-mode's indentation and cljfmt. Should I file these to the former or the latter?

Depends on the issue. Can you post the differences here?

@Malabarba
Copy link
Member Author

For reference, this should Close clojure-emacs/cider#1048

@Malabarba
Copy link
Member Author

Depends on the issue. Can you post the differences here?

The following snippet is indented as an fn by clojure-mode, but
it's indented as a regular function call by cljfmt.

;; cljfmt
`(~'fn [~'x]
      (~'if ...))

;; clojure-mode
`(~'fn [~'x]
   (~'if ...))

And the indentation for the are macro is different too:

;; cljfmt
(are [f] (= 1 (#'t/specifier-match-bindings f))
    '([] sherlock))

;; clojure-mode
(are [f] (= 1 (#'t/specifier-match-bindings f))
  '([] sherlock))

@bbatsov
Copy link
Member

bbatsov commented Apr 1, 2015

Regarding the indentation - the first situation is debatable, the second not so much. The indentation in clojure-mode is definitely the correct one.

@Malabarba
Copy link
Member Author

Oops. Fixed the period.
And sorry, I got all mixed up with the indentations thing. The are macro examples are swapped.

This is clojure-mode

(are [x] (#'t/listy? x)
     '()
     `()
     '(a))

This is cljfmt

(are [x] (#'t/listy? x)
  '()
  `()
  '(a))

bbatsov added a commit that referenced this pull request Apr 2, 2015
Some improvements to intrument.clj
@bbatsov bbatsov merged commit 6249eb0 into clojure-emacs:master Apr 2, 2015
@bbatsov
Copy link
Member

bbatsov commented Apr 2, 2015

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants