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

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

[elpa] externals/pyim aa975a819b 1/2: pyim-page-style:minibuffer: page


From: ELPA Syncer
Subject: [elpa] externals/pyim aa975a819b 1/2: pyim-page-style:minibuffer: page 后面添加一个显眼的字符。
Date: Thu, 30 Dec 2021 16:58:06 -0500 (EST)

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

    pyim-page-style:minibuffer: page 后面添加一个显眼的字符。
    
            * pyim-page.el (pyim-page-show-with-minibuffer): Simplify.
            (pyim-page-style:minibuffer): page 后面添加一个显眼的字符。
---
 pyim-page.el | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/pyim-page.el b/pyim-page.el
index 0a580f9ef8..3c33c7bfaf 100644
--- a/pyim-page.el
+++ b/pyim-page.el
@@ -457,7 +457,9 @@ page 的概念,比如,上面的 “nihao” 的 *待选词列表* 就可以
 +------------------------------------+
 | [ni hao]: 1.你好 2.你号 ...  (1/9) |
 +------------------------------------+"
-  (format "[%-15s]: %s(%s/%s)"
+  ;; 在 minibuffer 中显示 page 的时候,page 字符串直接插入到 minibuffer 现有的内
+  ;; 容中, 为了便于区分,在 page 后面添加一个显眼的字符。
+  (format "[%-15s]: %s(%s/%s) $ "
           (pyim-page-preview-create)
           (pyim-page-menu-create
            (gethash :candidates page-info)
@@ -534,7 +536,7 @@ page 的概念,比如,上面的 “nihao” 的 *待选词列表* 就可以
                     (let* ((width (string-width (buffer-string)))
                            (n (- (* 20 (+ 1 (/ width 20))) width)))
                       (make-string n ?\ )))
-                string " $ ")))))))
+                string)))))))
 
 (declare-function 'popup-tip "popup")
 (declare-function 'popup-delete "popup")



reply via email to

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