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

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

[elpa] externals/pyim b79026ab38 54/58: pyim-pymap-py2cchar-cache1 -> py


From: ELPA Syncer
Subject: [elpa] externals/pyim b79026ab38 54/58: pyim-pymap-py2cchar-cache1 -> pyim-pymap--py2cchar-cache1
Date: Fri, 24 Jun 2022 06:57:56 -0400 (EDT)

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

    pyim-pymap-py2cchar-cache1 -> pyim-pymap--py2cchar-cache1
---
 pyim-pymap.el | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/pyim-pymap.el b/pyim-pymap.el
index 8b6a03789a..9ac5d7cdc3 100644
--- a/pyim-pymap.el
+++ b/pyim-pymap.el
@@ -40,7 +40,7 @@
 ;; * 代码                                                                 :code:
 (require 'pyim-common)
 
-(defvar pyim-pymap-py2cchar-cache1 nil
+(defvar pyim-pymap--py2cchar-cache1 nil
   "拼音查汉字功能需要的变量.
 
 类似: \"a\" -> (\"阿啊呵腌|嗄吖锕||錒\")")
@@ -490,14 +490,14 @@
 用于加快搜索速度,这个函数将缓存保存到 `pyim-pymap-py2cchar-cache' 变量中,
 如果 FORCE 设置为 t, 强制更新索引。"
   (when (or force
-            (not pyim-pymap-py2cchar-cache1)
+            (not pyim-pymap--py2cchar-cache1)
             (not pyim-pymap-py2cchar-cache2)
             ;; FIXME: 我偶尔会遇到一个奇怪的问题,创建的缓存没有包含所有的汉字拼
             ;; 音,原因未知,所以这里测试一下,看排在最后面的一个汉字拼音是否包
             ;; 含在缓存中,如果不包含,就重新创建缓存。
-            (and pyim-pymap-py2cchar-cache1
-                 (not (gethash "zuo" pyim-pymap-py2cchar-cache1))))
-    (setq pyim-pymap-py2cchar-cache1
+            (and pyim-pymap--py2cchar-cache1
+                 (not (gethash "zuo" pyim-pymap--py2cchar-cache1))))
+    (setq pyim-pymap--py2cchar-cache1
           (make-hash-table :size 50000 :test #'equal))
     (setq pyim-pymap-py2cchar-cache2
           (make-hash-table :size 50000 :test #'equal))
@@ -507,7 +507,7 @@
       (let* ((py (car x))
              (cchars (cdr x))
              (n (min (length py) 7)))
-        (puthash py cchars pyim-pymap-py2cchar-cache1)
+        (puthash py cchars pyim-pymap--py2cchar-cache1)
         (puthash py (cdr (split-string (car cchars) ""))
                  pyim-pymap-py2cchar-cache2)
         (dotimes (i n)
@@ -536,7 +536,7 @@
            (if equal-match
                (if return-list
                    (gethash pinyin pyim-pymap-py2cchar-cache2)
-                 (gethash pinyin pyim-pymap-py2cchar-cache1))
+                 (gethash pinyin pyim-pymap--py2cchar-cache1))
              (gethash pinyin pyim-pymap-py2cchar-cache3))))
       (setq output (remove "" output))
       (if include-seperator



reply via email to

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