Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

禁用的时候出错 #275

Closed
shuxiao9058 opened this issue May 28, 2019 · 6 comments
Closed

禁用的时候出错 #275

shuxiao9058 opened this issue May 28, 2019 · 6 comments

Comments

@shuxiao9058
Copy link

backtrace

Debugger entered--Lisp error: (void-function nil)
  nil()
  deactivate-input-method()
  #f(compiled-function (&optional arg interactive) "Enable or disable multilingual text input method for the current buffer.\nOnly one input method can be enabled at any time in a given buffer.\n\nThe normal action is to enable an input method if none was enabled,\nand disable the current one otherwise.  Which input method to enable\ncan be determined in various ways--either the one most recently used,\nor the one specified by `default-input-method', or as a last resort\nby reading the name of an input method in the minibuffer.\n\nWith a prefix argument ARG, read an input method name with the minibuffer\nand enable that one.  The default is the most recent input method specified\n(not including the currently active input method, if any).\n\nWhen called interactively, the optional argument INTERACTIVE is non-nil,\nwhich marks the variable `default-input-method' as set for Custom buffers." (interactive "P\np") #<bytecode 0x400b6a97>)(nil 1)
  ad-Advice-toggle-input-method(#f(compiled-function (&optional arg interactive) "Enable or disable multilingual text input method for the current buffer.\nOnly one input method can be enabled at any time in a given buffer.\n\nThe normal action is to enable an input method if none was enabled,\nand disable the current one otherwise.  Which input method to enable\ncan be determined in various ways--either the one most recently used,\nor the one specified by `default-input-method', or as a last resort\nby reading the name of an input method in the minibuffer.\n\nWith a prefix argument ARG, read an input method name with the minibuffer\nand enable that one.  The default is the most recent input method specified\n(not including the currently active input method, if any).\n\nWhen called interactively, the optional argument INTERACTIVE is non-nil,\nwhich marks the variable `default-input-method' as set for Custom buffers." (interactive "P\np") #<bytecode 0x400b6a97>) nil 1)
  apply(ad-Advice-toggle-input-method #f(compiled-function (&optional arg interactive) "Enable or disable multilingual text input method for the current buffer.\nOnly one input method can be enabled at any time in a given buffer.\n\nThe normal action is to enable an input method if none was enabled,\nand disable the current one otherwise.  Which input method to enable\ncan be determined in various ways--either the one most recently used,\nor the one specified by `default-input-method', or as a last resort\nby reading the name of an input method in the minibuffer.\n\nWith a prefix argument ARG, read an input method name with the minibuffer\nand enable that one.  The default is the most recent input method specified\n(not including the currently active input method, if any).\n\nWhen called interactively, the optional argument INTERACTIVE is non-nil,\nwhich marks the variable `default-input-method' as set for Custom buffers." (interactive "P\np") #<bytecode 0x400b6a97>) (nil 1))
  toggle-input-method(nil 1)
  funcall-interactively(toggle-input-method nil 1)
  call-interactively(toggle-input-method nil nil)
  command-execute(toggle-input-method)
@tumashu
Copy link
Owner

tumashu commented May 30, 2019

看起来你好像对这个函数 advice 了吧?

@shuxiao9058
Copy link
Author

我查了下代码,没在advice设置!

@shuxiao9058
Copy link
Author

是evil设置的!

@JSDurand
Copy link

我也遇到了這個問題。
我是透過 doom emacs 的 Chinese module 使用 pyim 的,本來沒什麼問題,是個很好的 package ,不過我使用 toggle-input-method 的時候就會出現如上所述的錯誤;且我無法關掉這個 input-method,在 evil-normal-state 的時候想輸入指令都會被 pyim 解釋成拼音,幾乎無法使用 emacs 。

@tumashu
Copy link
Owner

tumashu commented Apr 28, 2021

evil 启用后,好像有这个问题,今天追踪了一上网,没有头绪。。。。

@tumashu
Copy link
Owner

tumashu commented Apr 28, 2021

我试着hack了一下,也许有用

@tumashu tumashu closed this as completed Nov 21, 2021
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

No branches or pull requests

3 participants