0

我在https://github.com/coordinate/bingapiel维护了一个 elisp 项目。

它用于在 emacs 中使用 bing api 进行翻译。

一些用户抱怨该错误:

error in process filter: menu-bar-update-yank-menu: Wrong type argument: stringp, nil
error in process filter: Wrong type argument: stringp, nil

但我无法在我的计算机上重现该错误。

所以我在这里寻求帮助。有没有人也遇到过这个错误。有谁知道“menu-bar-update-yank-menu:错误的类型参数:stringp,nil”的含义。欢迎任何建议。

4

1 回答 1

1

可能是由于未按预期提供的钩子引起的,例如缓冲区在过程中被杀死

第 128-131 行 bing-translate.el 对我来说看起来很奇怪

    (with-current-buffer buf
      (let* ((xmldata (decode-coding-string (buffer-string) 'utf-8))
             (result nil))
        (kill-buffer (current-buffer))
        (when (equal "expired" (bingapi-check-accesstoken xmldata))
          ;; get secend time
          (setq buf (url-retrieve-synchronously
                     (bingtranslate-make-url
                      "GetLanguagesForTranslate?" nil)))
          (if buf

;;;;

即 current-buf "buf" 被杀死,稍后在 "when" 但只有 "when" 时再次设置

在不是,如果运行为空(?)

就像它第一眼看上去一样……

于 2012-08-03T15:17:07.223 回答