[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/pyim 68289b9 1/6: * pyim-common.el (pyim-dcache-get-val
From: |
ELPA Syncer |
Subject: |
[elpa] externals/pyim 68289b9 1/6: * pyim-common.el (pyim-dcache-get-value-from-file): Do not use eval. |
Date: |
Sun, 28 Feb 2021 01:57:10 -0500 (EST) |
branch: externals/pyim
commit 68289b9c5f0fcfdf1cebe565702986cff5bd8c35
Author: Feng Shu <tumashu@163.com>
Commit: Feng Shu <tumashu@163.com>
* pyim-common.el (pyim-dcache-get-value-from-file): Do not use eval.
---
pyim-common.el | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/pyim-common.el b/pyim-common.el
index f706ad8..62a6e72 100644
--- a/pyim-common.el
+++ b/pyim-common.el
@@ -55,12 +55,7 @@ pyim 总是使用 emacs-async 包来生成 dcache.
(insert-file-contents file)
(let ((output
(condition-case nil
- ;; FIXME: Why `eval'? AFAICT, the file was created
- ;; by `pyim-dcache-save-variable' where we just write the
- ;; value (i.e. something already evaluated) held in the
- ;; variable, and not some ELisp expression that still needs to
- ;; be evaluated.
- (eval (read (current-buffer)) t)
+ (read (current-buffer))
(error nil))))
(unless output
;; 有时候词库缓存会发生错误,这时候,就将词库缓存转存到一个
- [elpa] externals/pyim updated (789c7eb -> e55fd0d), ELPA Syncer, 2021/02/28
- [elpa] externals/pyim 68289b9 1/6: * pyim-common.el (pyim-dcache-get-value-from-file): Do not use eval.,
ELPA Syncer <=
- [elpa] externals/pyim c9aaf72 2/6: * pyim.el (pyim-start): Update comment about kill-emacs-hook., ELPA Syncer, 2021/02/28
- [elpa] externals/pyim cf3f2e3 5/6: * pyim.el (pyim-cstring-split-to-string-1): use pyim-cstring-split-to-list delete-dups argument., ELPA Syncer, 2021/02/28
- [elpa] externals/pyim d8e6a5b 4/6: * pyim.el (pyim-cstring-split-to-list): Add delete-dups and prefer-short-word arguments., ELPA Syncer, 2021/02/28
- [elpa] externals/pyim 6a3f0e0 3/6: * pyim.el (pyim-exit-from-minibuffer): Call quail-exit-from-minibuffer., ELPA Syncer, 2021/02/28
- [elpa] externals/pyim e55fd0d 6/6: * pyim.el (pyim-ivy-cregexp): New function., ELPA Syncer, 2021/02/28