[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/pyim 1b767c669e 40/41: * pyim-probe.el (pyim-probe-org-
From: |
ELPA Syncer |
Subject: |
[elpa] externals/pyim 1b767c669e 40/41: * pyim-probe.el (pyim-probe-org-speed-commands): Updated. |
Date: |
Sat, 4 Jun 2022 09:57:49 -0400 (EDT) |
branch: externals/pyim
commit 1b767c669ec3d988ee3589413c614ac27b1a52ea
Author: Feng Shu <tumashu@163.com>
Commit: Feng Shu <tumashu@163.com>
* pyim-probe.el (pyim-probe-org-speed-commands): Updated.
---
pyim-probe.el | 3 ++-
tests/pyim-tests.el | 21 +++++++++++----------
2 files changed, 13 insertions(+), 11 deletions(-)
diff --git a/pyim-probe.el b/pyim-probe.el
index 4d0e87bb77..aba8c32296 100644
--- a/pyim-probe.el
+++ b/pyim-probe.el
@@ -80,7 +80,8 @@
"激活这个 pyim 探针函数后,可以解决 org-speed-commands 与 pyim 冲突问题。
用于:`pyim-english-input-switch-functions' 。"
- (and (string= major-mode "org-mode")
+ (and (> emacs-major-version 25)
+ (string= major-mode "org-mode")
(bolp)
(looking-at org-heading-regexp)
org-use-speed-commands))
diff --git a/tests/pyim-tests.el b/tests/pyim-tests.el
index 66af353c9c..7c11fca835 100644
--- a/tests/pyim-tests.el
+++ b/tests/pyim-tests.el
@@ -1355,16 +1355,17 @@ Transfer-Encoding: chunked
(should (pyim-probe-isearch-mode))))
(ert-deftest pyim-tests-pyim-probe-org-speed-commands ()
- (with-temp-buffer
- (let ((org-use-speed-commands t))
- (org-mode)
- (insert "* heading")
- (goto-char (line-beginning-position))
- (should (pyim-probe-org-speed-commands))
- (forward-char 1)
- (should-not (pyim-probe-org-speed-commands))
- (forward-char 1)
- (should-not (pyim-probe-org-speed-commands)))))
+ (when (> emacs-major-version 25)
+ (with-temp-buffer
+ (let ((org-use-speed-commands t))
+ (org-mode)
+ (insert "* heading")
+ (goto-char (line-beginning-position))
+ (should (pyim-probe-org-speed-commands))
+ (forward-char 1)
+ (should-not (pyim-probe-org-speed-commands))
+ (forward-char 1)
+ (should-not (pyim-probe-org-speed-commands))))))
(ert-deftest pyim-tests-pyim-probe-org-structure-template ()
(with-temp-buffer
- [elpa] externals/pyim c5a77c3f73 05/41: Add pyim-candidate-create-async, (continued)
- [elpa] externals/pyim c5a77c3f73 05/41: Add pyim-candidate-create-async, ELPA Syncer, 2022/06/04
- [elpa] externals/pyim 0d357b5fd9 08/41: pyim-candidates-create-like-znabc, ELPA Syncer, 2022/06/04
- [elpa] externals/pyim 6ce5f49b8f 01/41: Big refactor: use cl-defstruct and cl-defgeneric., ELPA Syncer, 2022/06/04
- [elpa] externals/pyim f5300086fd 02/41: * tests/pyim-tests.el (pyim-tests-pyim-candidates-get-chief): New test., ELPA Syncer, 2022/06/04
- [elpa] externals/pyim f536e5ede3 06/41: Fix warns., ELPA Syncer, 2022/06/04
- [elpa] externals/pyim 33a0f5a9b7 09/41: Add pyim-candidates-create-like-jianpin, ELPA Syncer, 2022/06/04
- [elpa] externals/pyim b6b46a4e36 22/41: * pyim-candidates.el (pyim-candidates-create): Remove method of shuangpin., ELPA Syncer, 2022/06/04
- [elpa] externals/pyim b3868caa80 29/41: Add pyim-probe tests, ELPA Syncer, 2022/06/04
- [elpa] externals/pyim 951013539c 33/41: Add progress to commentary, ELPA Syncer, 2022/06/04
- [elpa] externals/pyim f4cc14ac64 32/41: Fix pyim-test.el, ELPA Syncer, 2022/06/04
- [elpa] externals/pyim 1b767c669e 40/41: * pyim-probe.el (pyim-probe-org-speed-commands): Updated.,
ELPA Syncer <=
- [elpa] externals/pyim 6ef8630475 11/41: pyim-candidates-create-like-znabc -> pyim-candidates-znabc-words, ELPA Syncer, 2022/06/04
- [elpa] externals/pyim 2aa48479b4 14/41: pyim-candidates-create-get-pymap-chars -> pyim-candidates-pymap-chars, ELPA Syncer, 2022/06/04
- [elpa] externals/pyim 016064e7fc 16/41: Update docstring., ELPA Syncer, 2022/06/04
- [elpa] externals/pyim 1330b436a6 27/41: Refactor pyim-page.el, ELPA Syncer, 2022/06/04
- [elpa] externals/pyim 302f1bff4b 34/41: Refactor pyim-preview.el, ELPA Syncer, 2022/06/04
- [elpa] externals/pyim 987087e515 15/41: Update pyim-candidates-create-quanpin., ELPA Syncer, 2022/06/04
- [elpa] externals/pyim 35bf05ce3e 19/41: pyim-scheme-common -> pyim-scheme, ELPA Syncer, 2022/06/04
- [elpa] externals/pyim fa9f9f4244 24/41: Update pyim-candidates-dcache-words., ELPA Syncer, 2022/06/04
- [elpa] externals/pyim aaa5f728f9 25/41: Fix compile warn., ELPA Syncer, 2022/06/04
- [elpa] externals/pyim 29a112182a 28/41: Refactor pyim-candidates.el, ELPA Syncer, 2022/06/04