clojure-emacs / clojure-emacs/clojure-mode
clojure-fill-paragraph won't break lines at the space in `word :word`
- Ngôn ngữ chính
- Emacs Lisp
- Star
- 1k
- Fork
- 249
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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

## 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
Hướng dẫn đóng góp
Hướng nghiên cứu
Search for the clojure-fill-paragraph entry point and the paragraph-start customization shown in the issue. Reproduce the documented Clojure function example, then verify that filling can break at the space in `word :word` without regressing the other listed delimiters.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- clojure, emacs-lisp
- Lĩnh vực
- tooling
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 45/100