Disable the mozc fixes
This commit is contained in:
parent
2313ad1b25
commit
173178313e
35
init.el
35
init.el
@ -569,23 +569,24 @@ With NO-EWW, don't update eww's state."
|
|||||||
(my/-set-fcitx-enabled t)
|
(my/-set-fcitx-enabled t)
|
||||||
(my/-set-eww-fcitx-state t))))
|
(my/-set-eww-fcitx-state t))))
|
||||||
(add-function :after after-focus-change-function #'my/-normalize-mozc-state)
|
(add-function :after after-focus-change-function #'my/-normalize-mozc-state)
|
||||||
(with-eval-after-load 'mozc
|
;; fix the helper process failing if mozc is built with debug flags
|
||||||
(defun my/-fixed-mozc-helper-process-filter (proc output-string)
|
;; (with-eval-after-load 'mozc
|
||||||
;; NOTE this is just a modified version of the origial in mozc.el
|
;; (defun my/-fixed-mozc-helper-process-filter (proc output-string)
|
||||||
;; If proc is no longer active, just throw away the data.
|
;; ;; NOTE this is just a modified version of the origial in mozc.el
|
||||||
(when (eq proc mozc-helper-process)
|
;; ;; If proc is no longer active, just throw away the data.
|
||||||
(with-temp-buffer
|
;; (when (eq proc mozc-helper-process)
|
||||||
(insert (concat mozc-helper-process-string-buf output-string))
|
;; (with-temp-buffer
|
||||||
(goto-char (point-min))
|
;; (insert (concat mozc-helper-process-string-buf output-string))
|
||||||
(unwind-protect
|
;; (goto-char (point-min))
|
||||||
(while-let ((pos (scan-sexps (point) 1)))
|
;; (unwind-protect
|
||||||
(let* ((msg (buffer-substring-no-properties (point) pos)))
|
;; (while-let ((pos (scan-sexps (point) 1)))
|
||||||
(push msg mozc-helper-process-message-queue)
|
;; (let* ((msg (buffer-substring-no-properties (point) pos)))
|
||||||
(goto-char pos)))
|
;; (push msg mozc-helper-process-message-queue)
|
||||||
(setq mozc-helper-process-string-buf (buffer-substring-no-properties
|
;; (goto-char pos)))
|
||||||
(point) (point-max)))))))
|
;; (setq mozc-helper-process-string-buf (buffer-substring-no-properties
|
||||||
(advice-add 'mozc-helper-process-filter :override
|
;; (point) (point-max)))))))
|
||||||
#'my/-fixed-mozc-helper-process-filter))
|
;; (advice-add 'mozc-helper-process-filter :override
|
||||||
|
;; #'my/-fixed-mozc-helper-process-filter))
|
||||||
|
|
||||||
;; migemo
|
;; migemo
|
||||||
(use-package migemo
|
(use-package migemo
|
||||||
|
Loading…
x
Reference in New Issue
Block a user