Emacs Part 54

2025/12/09(火) 13:26:03.75
>>852
パッチをくだされ
2025/12/09(火) 14:05:49.78
>>853
要 mozc-im

--- mozc.el 2025-12-09 13:53:28.846437999 +0900
***************
*** 745,747 ****
'("|" "|" " ")))))
! (if (and buffer-read-only (> (length text) 0))
(progn
--- 745,749 ----
'("|" "|" " ")))))
! (if (and buffer-read-only
! (not inhibit-read-only)
! (> (length text) 0))
(progn

--- mozc-im.el 2025-12-09 13:58:55.380217856 +0900
***************
*** 103,105 ****
"Consume KEY and following events by mozc."
! (if (or buffer-read-only
overriding-terminal-local-map
--- 103,106 ----
"Consume KEY and following events by mozc."
! (if (or (and buffer-read-only
! (not inhibit-read-only))
overriding-terminal-local-map
2025/12/09(火) 14:25:02.03
advice にしてみた

(advice-add 'mozc-preedit-update :around
(lambda (old-func &rest r)
(let ((buffer-read-only (and buffer-read-only
(not inhibit-read-only))))
(apply old-func r)
)))
(advice-add 'mozc-im-input-method :around
(lambda (old-func &rest r)
(let ((buffer-read-only (and buffer-read-only
(not inhibit-read-only))))
(apply old-func r))))
856853
垢版 |
2025/12/09(火) 15:38:34.58
>>854
有難うございます!
vtermはmozcでインライン入力できるようになりました!

claude codeがインライン入力になると完璧なのですが
こちらはclaude codeの問題だと思うので難しそうです
しかし入力用バッファを別に開く方法よりも良いかもしれません
857名無しさん@お腹いっぱい。
垢版 |
2025/12/10(水) 15:49:33.16
28以降はクソ!
2025/12/10(水) 20:16:11.04
>>855
ありがとうございます。
困ってたんですよね。
レスを投稿する

5ちゃんねるの広告が気に入らない場合は、こちらをクリックしてください。

ニューススポーツなんでも実況