branch: externals/pyim
commit 62b32bca06a412810d9916ddd9f71d5b49e9eb18
Author: Feng Shu <[email protected]>
Commit: Feng Shu <[email protected]>

    pyim-convert-string-at-point -> pyim-cregexp-convert-at-point
    
        * pyim.el (pyim-convert-string-at-point): Use 
pyim-cregexp-convert-at-point
    
        * pyim-cregexp.el (pyim-cregexp-convert-at-point): Rename from 
pyim-convert-cregexp-at-point
---
 pyim-cregexp.el | 3 ++-
 pyim.el         | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/pyim-cregexp.el b/pyim-cregexp.el
index 393d956..0f6a3a1 100644
--- a/pyim-cregexp.el
+++ b/pyim-cregexp.el
@@ -197,7 +197,8 @@
       (unless (equal regexp "")
         (concat (if match-beginning "^" "") regexp)))))
 
-(defun pyim-convert-cregexp-at-point (&optional insert-only)
+(define-obsolete-function-alias 'pyim-convert-cregexp-at-point 
'pyim-cregexp-convert-at-point "4.0")
+(defun pyim-cregexp-convert-at-point (&optional insert-only)
   "将光标前的字符串按拼音的规则转换为一个搜索中文的 regexp.
 用于实现拼音搜索中文的功能。
 
diff --git a/pyim.el b/pyim.el
index 45cdc95..40495a6 100644
--- a/pyim.el
+++ b/pyim.el
@@ -757,7 +757,7 @@ FILE 的格式与 `pyim-dcache-export' 生成的文件格式相同,
   (unless (equal input-method-function 'pyim-input-method)
     (activate-input-method 'pyim))
   (if return-cregexp
-      (pyim-convert-cregexp-at-point t)
+      (pyim-cregexp-convert-at-point t)
     (let* ((case-fold-search nil)
            (scheme-name (pyim-scheme-name))
            (first-chars (pyim-scheme-get-option scheme-name :first-chars))

Reply via email to