[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/pyim 855e2b7 2/4: Fix compile warn
From: |
ELPA Syncer |
Subject: |
[elpa] externals/pyim 855e2b7 2/4: Fix compile warn |
Date: |
Thu, 22 Apr 2021 23:57:10 -0400 (EDT) |
branch: externals/pyim
commit 855e2b7be92fe92b1bbf79d4ec2fbd128aa1f27d
Author: Feng Shu <tumashu@163.com>
Commit: Feng Shu <tumashu@163.com>
Fix compile warn
---
pyim-autoselector.el | 10 +++++++---
pyim-dcache.el | 3 +++
2 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/pyim-autoselector.el b/pyim-autoselector.el
index f5a2d3c..125f7e3 100644
--- a/pyim-autoselector.el
+++ b/pyim-autoselector.el
@@ -43,9 +43,13 @@
那么当前entered 就是 \"nihaom\". 上次 entered 是 \"nihao\". 那么
返回值有3种情况(优先级按照下面的顺序):
-1. (:select last :replace-with \"xxx\") 自动上屏上次 entered (nihao) 的第一个候选词,m
键下一轮处理。
-3. (:select current :replace-with \"xxx\") 自动上屏当前 entered (nihaom) 的第一个候选词。
-4. nil 不自动上屏。
+1. (:select last :replace-with \"xxx\") 自动上屏上次
+entered (nihao) 的第一个候选词,m 键下一轮处理。
+
+2. (:select current :replace-with \"xxx\") 自动上屏当前
+entered (nihaom) 的第一个候选词。
+
+3. nil 不自动上屏。
如果 :replace-with 设置为一个字符串,则选择最终会被这个字符串替代。
diff --git a/pyim-dcache.el b/pyim-dcache.el
index 0a5399c..286a8fd 100644
--- a/pyim-dcache.el
+++ b/pyim-dcache.el
@@ -29,6 +29,7 @@
;; * 代码 :code:
(require 'cl-lib)
(require 'pyim-common)
+(require 'pyim-dict)
(defgroup pyim-dcache nil
"Dcache for pyim."
@@ -233,6 +234,8 @@ code 对应的中文词条了."
(pyim-dcache-call-api 'export-personal-words file confirm)
(message "Pyim export finished."))
+(declare-function pyim-create-word "pyim")
+
(defalias 'pyim-import 'pyim-dcache-import)
(defun pyim-dcache-import (file &optional merge-method)
"从 FILE 中导入词条以及词条对应的词频信息。