Skip to content

在 termux 中 deploy 提示:expand-file-name(nil)[BUG] #223

Open
@iT-Boyer

Description

问题描述
在 termux 中通過 pkg 安裝 emacs 38.3 版本和 librime 18.5-2 版本,使用簡單的的配置。
在激活rime 時,deploy 時提示錯誤:

Debugger entered--Lisp error: (wrong-type-argument stringp nil)
  expand-file-name(nil)
  rime--load-dynamic-module()
  rime-activate("rime")
  apply(rime-activate "rime" nil)
  activate-input-method("rime")
  #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 0x10dd1a9aaf2a334b>)(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 0x10dd1a9aaf2a334b>) 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 0x10dd1a9aaf2a334b>) (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)

Emacs doom中的配置

(use-package! rime
  :config
  (setq default-input-method "rime"))

复现方式(安装遇到问题时省略)

問題描述的過程,必出現的情況。

是否可在 emacs -Q 中复现

截图

展示错误的截图或动图

环境信息

  • 操作系统:linux aarch64
  • Emacs版本:28.3
  • Librime版本:1.8.5-2
  • Librime安装方式:pkg包管理器
  • 安装方式:Straight

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions