Skip to content
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 won't break lines at the space in word :word #613

Open
oskarkv opened this issue Apr 5, 2022 · 0 comments
Open

Comments

@oskarkv
Copy link

oskarkv commented Apr 5, 2022

I noticed a, to me, weird behavior of clojure-fill-paragraph. I was listing keyword arguments in a docstrsing, and when I tried to fill it I ended up with something similar to the screenshot below. I tracked it down to the extra stuff that it is adding to paragraph-start, i.e. this code:

(let ((paragraph-start
       (concat paragraph-start
               "\\|\\s-*\\([(:\"[]\\|~@\\|`(\\|#'(\\)"))

I don't understand why the regexp is like that, but I don't like the current result.

Expected behavior

clojure-fill-paragraph can break lines at the space in word :word.

Actual behavior

image

Steps to reproduce the problem

Try to fill the docstring in

(defn some-function
  "word word word word word word word word word :word :word :word :word :word :word :word :word :word :word :word :word :word :word :word :word :word :word :word :word :word :word word word word word word word word word word word word word word word word word word word word word word word word"
[])

Environment & Version information

clojure-mode version 5.13

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

No branches or pull requests

1 participant