Unexpected indentation of top-level string-valued def #469
Comments
Yeah, that's basically the same bug. I have a good idea where the problematic code is, but I don't have time to debug it myself either. Adding a real docstring should work as a workaround I guess. It's basically a combination of https://github.com/clojure-emacs/clojure-mode/blob/master/clojure-mode.el#L906 and https://github.com/clojure-emacs/clojure-mode/blob/master/clojure-mode.el#L1035 We mark the docstring positional statically and we probably need to make this more dynamic homehow (e.g. it's number 2 only if the form has 3 arguments). |
Thanks for the report. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Perhaps related to #405
Expected behavior
Actual behavior
Form indented as a docstring unnecessarily.
Steps to reproduce the problem
With the following
var
definition:And cursor at
|
Entering any character causes unhelpful indentation:
It appears to be because
clojure-mode
determines that the form is a docstringUnfortunately I don't have the time to debug the treatment of syntax-ppss, which I suspect is at the root of the issue.
Environment & Version information
The issues does not present with current
melpa-stable
release ofclojure-mode
:The text was updated successfully, but these errors were encountered: