clojure-fill-paragraph won't break lines at the space in `word :word`
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 45/100
調査の方向性
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時間
- マージ済み PR(30日)
- 6
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- 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時間未満 初心者へのやさしさ 62/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
clojure-emacs/cider#4235 ·
メンテナーはふだん 1 日以内に返信
-
[Request]: Winc対応中かも @chenyme が今日担当しました。 オープンpackage-request
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
ScoopInstaller/Extras#19476 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
promplate/code-review#158 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
メンテナーはふだん 1 日以内に返信