emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/pyim 490ba8a 1/5: Move pyim-export* to pyim.el


From: ELPA Syncer
Subject: [elpa] externals/pyim 490ba8a 1/5: Move pyim-export* to pyim.el
Date: Thu, 23 Dec 2021 01:57:35 -0500 (EST)

branch: externals/pyim
commit 490ba8ab7bd52c20fb68f4ba3729cb4ee8783ec0
Author: Feng Shu <tumashu@163.com>
Commit: Feng Shu <tumashu@163.com>

    Move pyim-export* to pyim.el
    
        * pyim-dcache.el (pyim-export-words-and-counts, pyim-export)
        (pyim-export-personal-words): move to pyim.el
---
 pyim-dcache.el | 4 ----
 pyim.el        | 5 +++++
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/pyim-dcache.el b/pyim-dcache.el
index eb1e295..5a0e8ca 100644
--- a/pyim-dcache.el
+++ b/pyim-dcache.el
@@ -193,9 +193,6 @@ AUTO-BACKUP-THRESHOLD 倍, 那么原值将自动备份到 FILE 对应的备份
   t)
 
 ;; ** Dcache 导出功能
-(define-obsolete-function-alias 'pyim-export 'pyim-export-words-and-counts 
"4.0")
-
-(defalias 'pyim-export-words-and-counts 'pyim-dcache-export-words-and-counts)
 (defun pyim-dcache-export-words-and-counts (file &optional confirm)
   "将个人词条以及词条对应的词频信息导出到文件 FILE.
 
@@ -206,7 +203,6 @@ non-nil,文件存在时将会提示用户是否覆盖,默认为覆盖模式"
   (pyim-dcache-call-api 'export-words-and-counts file confirm)
   (message "PYIM: 词条和词频信息导出完成。"))
 
-(defalias 'pyim-export-personal-words 'pyim-dcache-export-personal-words)
 (defun pyim-dcache-export-personal-words (file &optional confirm)
   "将用户的个人词条导出为 pyim 词库文件.
 
diff --git a/pyim.el b/pyim.el
index 58ec453..bf46ead 100644
--- a/pyim.el
+++ b/pyim.el
@@ -439,6 +439,11 @@ MERGE-METHOD 是一个函数,这个函数需要两个数字参数,代表词
 
     (message "PYIM: 词条和词频信息导入完成!")))
 
+;; ** 导出功能
+(define-obsolete-function-alias 'pyim-export 'pyim-export-words-and-counts 
"4.0")
+(defalias 'pyim-export-words-and-counts 'pyim-dcache-export-words-and-counts)
+(defalias 'pyim-export-personal-words 'pyim-dcache-export-personal-words)
+
 ;; ** 删词功能
 (defun pyim-delete-words-in-file (file)
   "从个人词库缓存中批量删除 FILE 文件中列出的词条.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]