Skip to content

Register correct word after force registration - #258

Open
taku0 wants to merge 2 commits into
skk-dev:masterfrom
taku0:fix-force-registration-mode-229
Open

taku0 wants to merge 2 commits into
skk-dev:masterfrom
taku0:fix-force-registration-mode-229

Conversation

@taku0

@taku0 taku0 commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

#229 を修正します。

ユーザが空でない文字列を辞書登録用にミニバッファで入力した場合、skk-henkan-countが新しく追加された単語を指すようにします。

skk-henkan-show-candidates内で.の入力を処理する際にskk-henkan-countを調整する案も考えたのですが、再帰的に辞書登録するときなどの挙動が読み切れなかったため、確実な方法(ユーザが空でない文字列を辞書登録用にミニバッファで入力した時点で設定する)としました。

skk-dev#229

When a word is registered with `skk-force-registration-mode-char`, a wrong
entry is registered to the dictionary.

This patch adjusts `skk-henkan-count` when the user enter non-empty string,
so that it points to the new word.
@taku0
taku0 marked this pull request as draft July 29, 2026 15:38
@taku0

taku0 commented Jul 29, 2026

Copy link
Copy Markdown
Contributor Author

Emacs 28以前で上手く動いてないようなので確認します。

We must do `(setq list (sort list))` for Emacs 28 and earlier.
@taku0
taku0 marked this pull request as ready for review July 30, 2026 11:54
@taku0

taku0 commented Jul 30, 2026

Copy link
Copy Markdown
Contributor Author

Emacs 28以前でテストが通らない問題を解決しました。テスト用のユーティリティ関数の問題で、同じ原因でスキップしていたテストも通るようになりました。

This branch has not been deployed

No deployments
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

Successfully merging this pull request may close these issues.

1 participant