cute-jumper / fcitx.el

Better fcitx integration for Emacs.
129 stars 16 forks source link

fcitx clobbers spacemacs when paste-transient-state triggers. #23

Closed amosbird closed 8 years ago

amosbird commented 8 years ago

Here is the backtrace log I get by sending emacs SIGUSER2.

Debugger entered--Lisp error: (quit)
  dbus-call-method(:session "org.fcitx.Fcitx" "/inputmethod" "org.fcitx.Fcitx.InputMethod" "GetCurrentState")
  fcitx--active-p-dbus()
  fcitx--active-p()
  fcitx--evil-switch-buffer-before()
  fcitx--evil-switch-buffer( #[(buffer-or-name &optional norecord force-same-window)
    switch-to-buffer("*LV*")
  lv-window()
  lv-message(#("Pasting Transient State\n[6/6]  [C-j/C-k] cycles through yanked text, [p/P] pastes the same text  above or below. Anything else exits.\n[KEY] exits state  [KEY] will not exit" 0 23 (face spacemacs-transient-state-title-face) 32 35 (face hydra-face-red) 36 39 (face hydra-face-red) 70 71 (face hydra-face-red) 72 73 (face hydra-face-red) 134 135 (face italic) 135 138 (face (hydra-face-blue italic)) 138 154 (face italic) 154 157 (face (hydra-face-red italic)) 157 172 (face italic)))
  hydra-show-hint((concat #("Pasting Transient State\n" 0 23 (face spacemacs-transient-state-title-face)) (concat (format "[%s/%s]  [%s/%s] cycles through yanked text, [%s/%s] pastes the same text  above or below. Anything else exits." (length kill-ring-yank-pointer) (length kill-ring) #("C-j" 0 3 (face hydra-face-red)) #("C-k" 0 3 (face hydra-face-red)) #("p" 0 1 (face hydra-face-red)) #("P" 0 1 (face hydra-face-red))) "") nil #("\n[KEY] exits state  [KEY] will not exit" 1 2 (face italic) 2 5 (face (hydra-face-blue italic)) 5 21 (face italic) 21 24 (face (hydra-face-red italic)) 24 39 (face italic))) spacemacs/paste-transient-state)
  spacemacs/paste-transient-state/evil-paste-after()
  funcall-interactively(spacemacs/paste-transient-state/evil-paste-after)
  call-interactively(spacemacs/paste-transient-state/evil-paste-after nil nil)
  command-execute(spacemacs/paste-transient-state/evil-paste-after)
  execute-kbd-macro([112])
  evil-execute-repeat-info(([112]))
  evil-execute-repeat-info-with-count(nil ([112]))
  evil-repeat(nil nil)
  funcall-interactively(evil-repeat nil nil)
  call-interactively(evil-repeat nil nil)
  command-execute(evil-repeat)

I didn't activate fcitx in the first place. I don't know what causes spacemacs suspension.

cute-jumper commented 8 years ago

Thanks for reporting. I pushed a small commit that should be able to fix the problem. But I can't really test it in Spacemacs. Could you provide some feedback?

amosbird commented 8 years ago

I'm not able to reproduce this issue again. I think it probably gets fixed. Thanks!