clojure-fill-paragraph won't break lines at the space in `word :word`
還沒有人認領這個 Issue。
評估
研究方向
尋找 issue 中展示的 clojure-fill-paragraph 進入點和 paragraph-start 自訂設定。重現文件中的 Clojure 函式範例,然後驗證填充可以在 word :word 中的空格處換行,同時不會讓其他列出的分隔符產生回歸。
由索引模型根據 Issue 內容生成。
描述
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
- 主要語言
- Emacs Lisp
- 星號
- 1k
- 分支
- 249
- 平均合併
- 1 天 6 小時
- 30 天內合併 PR
- 6
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
clojure-emacs/clojure-mode 的其他 Issue
-
難度 4/5 3-5 天 新手友好度 35/100
clojure-emacs/clojure-mode#699 ·
-
難度 4/5 3-5 天 新手友好度 35/100
clojure-emacs/clojure-mode#660 · 5 則留言 ·
-
難度 2/5 1-3 小時 新手友好度 35/100
clojure-emacs/clojure-mode#647 · 1 則留言 ·
-
bug help wanted indentation
難度 3/5 1-2 天 新手友好度 42/100
clojure-emacs/clojure-mode#620 ·
-
Indent very slow未關閉help wanted indentation
難度 4/5 3-5 天 新手友好度 35/100
clojure-emacs/clojure-mode#606 · 6 則留言 ·
查看 clojure-emacs/clojure-mode 的全部 Issue
相似的 Issue
-
難度 1/5 1 小時以內 新手友好度 88/100
py-econometrics/pyfixest#2114 ·
維護者通常 1 天內回覆
-
Verify the Linux Python quick start from a fresh Ubuntu checkout可能已有人在做 @romanv9 今天認領。 未關閉documentation good first issue help wanted
難度 2/5 1-3 小時 新手友好度 62/100
R0Y00/Xbox2Windows#652 · 1 則留言 ·
維護者通常 1 天內回覆
-
documentation good first issue
難度 2/5 1-3 小時 新手友好度 72/100
Haseeb-MernStack/commune#138 ·
維護者通常 1 天內回覆
-
難度 1/5 1 小時以內 新手友好度 62/100
-
難度 2/5 1-3 小時 新手友好度 70/100
clojure-emacs/cider#4235 ·
維護者通常 1 天內回覆