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

[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
           ;; 有时候词库缓存会发生错误,这时候,就将词库缓存转存到一个



reply via email to

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