-
-
Notifications
You must be signed in to change notification settings - Fork 247
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
clojure-fill-paragraph acts incorrectly in variable docstring #438
Comments
@bbatsov Thanks, it works now. However, I prefer to redefine
This seems reasonable since I'm extending Clojure in a nonstandard way. However, it is possible for me to customize |
It might make sense to apply that "fill" fix to all strings, not just doc-strings. |
Expected behavior
Given the following text in
clojure-mode
, with point represented by|
:Pressing
M-q
should yield the following:Actual behavior
The initial value of the variable is wrapped onto the same line as the docstring:
Steps to reproduce the problem
Run
emacs -Q
, installclojure-mode
, and open a Clojure file. Then see the "Expected behavior" section.Environment & Version information
clojure-mode version information
I am running revision 197298e of
clojure-mode
usingstraight.el
.Emacs version
Installed by
brew cask install emacs
, running in the terminal.Operating system
Commentary
Filling works correctly for functions. I presume that one of regexes must be tweaked in
clojure-fill-paragraph
, as the current ones apparently only recognize a vector as terminating the docstring.The text was updated successfully, but these errors were encountered: