[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/pyim 09fd273 07/36: Sort pyim-common.el
From: |
ELPA Syncer |
Subject: |
[elpa] externals/pyim 09fd273 07/36: Sort pyim-common.el |
Date: |
Thu, 22 Apr 2021 22:57:15 -0400 (EDT) |
branch: externals/pyim
commit 09fd2737d7973dfb62d654b2debd60579d12ff28
Author: Feng Shu <tumashu@163.com>
Commit: Feng Shu <tumashu@163.com>
Sort pyim-common.el
---
pyim-common.el | 27 ++++++++++++++-------------
1 file changed, 14 insertions(+), 13 deletions(-)
diff --git a/pyim-common.el b/pyim-common.el
index 16c0860..b52cea9 100644
--- a/pyim-common.el
+++ b/pyim-common.el
@@ -143,10 +143,6 @@ VARIABLE 变量,FORCE-RESTORE 设置为 t 时,强制恢复,变量原来的
seperaters)))
items))
-(defun pyim-exwm-enable-p ()
- "测试当前是否是 exwm 环境。"
- (string-match-p " \\*temp\\*" (buffer-name)))
-
(defun pyim-permutate-list (list)
"使用排列组合的方式重新排列 LIST.
这个函数由 ‘二中’ 提供,`pyim-hanzi2pinyin' 没有使用这个函数
@@ -188,6 +184,16 @@ VARIABLE 变量,FORCE-RESTORE 设置为 t 时,强制恢复,变量原来的
(t (append (pyim-flatten-list (car my-list))
(pyim-flatten-list (cdr my-list))))))
+(defun pyim-list-merge (a b)
+ "Join list A and B to a new list, then delete dups."
+ (let ((a (if (listp a)
+ a
+ (list a)))
+ (b (if (listp b)
+ b
+ (list b))))
+ (delete-dups `(,@a ,@b))))
+
(defun pyim-char-before-to-string (num)
"得到光标前第 `num' 个字符,并将其转换为字符串。"
(let* ((point (point))
@@ -211,15 +217,10 @@ VARIABLE 变量,FORCE-RESTORE 设置为 t 时,强制恢复,变量原来的
emacs-basic-display
(not (display-graphic-p))))))
-(defun pyim-list-merge (a b)
- "Join list A and B to a new list, then delete dups."
- (let ((a (if (listp a)
- a
- (list a)))
- (b (if (listp b)
- b
- (list b))))
- (delete-dups `(,@a ,@b))))
+(defun pyim-exwm-enable-p ()
+ "测试当前是否是 exwm 环境。"
+ (string-match-p " \\*temp\\*" (buffer-name)))
+
;; * Footer
(provide 'pyim-common)
- [elpa] externals/pyim updated (c16ca2b -> aa8dbd9), ELPA Syncer, 2021/04/22
- [elpa] externals/pyim f744469 01/36: Move code to pyim-pymap.el, ELPA Syncer, 2021/04/22
- [elpa] externals/pyim 900071a 02/36: Add pyim-pinyin.el, ELPA Syncer, 2021/04/22
- [elpa] externals/pyim c13c2a6 06/36: Move code to pyim-common.el, ELPA Syncer, 2021/04/22
- [elpa] externals/pyim 09fd273 07/36: Sort pyim-common.el,
ELPA Syncer <=
- [elpa] externals/pyim 6dfe546 08/36: New pyim-punctuation.el file., ELPA Syncer, 2021/04/22
- [elpa] externals/pyim 6cc63e8 09/36: New file: pyim-dict.el, ELPA Syncer, 2021/04/22
- [elpa] externals/pyim 8ae9ad9 10/36: New file pyim-cstring.el, ELPA Syncer, 2021/04/22
- [elpa] externals/pyim 678240a 16/36: Add pyim-candidates.el, ELPA Syncer, 2021/04/22
- [elpa] externals/pyim fa9a82a 17/36: pyim-posframe-* -> pyim-page-posframe-*, ELPA Syncer, 2021/04/22
- [elpa] externals/pyim 8023823 15/36: New file: pyim-page.el, ELPA Syncer, 2021/04/22
- [elpa] externals/pyim cfd96c6 20/36: update pyim-candidates.el, ELPA Syncer, 2021/04/22
- [elpa] externals/pyim eafaef3 22/36: update pyim-cstring.el, ELPA Syncer, 2021/04/22
- [elpa] externals/pyim c9cd6bf 27/36: Add pyim-autoselector.el, ELPA Syncer, 2021/04/22
- [elpa] externals/pyim f56d0a6 30/36: Add README.org, ELPA Syncer, 2021/04/22