[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/org-drill 66d74724d7 090/251: Turn off input method while
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/org-drill 66d74724d7 090/251: Turn off input method while reading events |
Date: |
Mon, 17 Jan 2022 18:59:04 -0500 (EST) |
branch: elpa/org-drill
commit 66d74724d7c9ad95472c046d429eac95382df550
Author: "matus goljer <"matus.goljer@gmail.com">
Commit: "matus goljer <"matus.goljer@gmail.com">
Turn off input method while reading events
---
org-drill.el | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/org-drill.el b/org-drill.el
index 7690ac3599..250cb5ff7c 100755
--- a/org-drill.el
+++ b/org-drill.el
@@ -1369,6 +1369,14 @@ of QUALITY."
intervals))
(reverse intervals)))
+(defun org-drill--read-key-sequence (prompt)
+ "Just like `read-key-sequence' but with input method turned off."
+ (let ((old-input-method current-input-method))
+ (unwind-protect
+ (progn
+ (set-input-method nil)
+ (read-key-sequence prompt))
+ (set-input-method old-input-method))))
(defun org-drill-reschedule ()
"Returns quality rating (0-5), or nil if the user quit."
@@ -1385,7 +1393,7 @@ of QUALITY."
org-drill--edit-key
7 ; C-g
?0 ?1 ?2 ?3 ?4 ?5)))
- (setq input (read-key-sequence
+ (setq input (org-drill--read-key-sequence
(if (eq ch org-drill--help-key)
(format "0-2 Means you have forgotten the item.
3-5 Means you have remembered the item.
@@ -1581,7 +1589,7 @@ Consider reformulating the item to make it easier to
remember.\n"
(format-time-string "%M:%S " elapsed))
prompt))
(sit-for 1)))
- (setq input (read-key-sequence nil))
+ (setq input (org-drill--read-key-sequence nil))
(if (stringp input) (setq ch (elt input 0)))
(if (eql ch org-drill--tags-key)
(org-set-tags-command)))
- [nongnu] elpa/org-drill 8a9192cc2f 080/251: Persistence of the optimal factor matrix across application sessions is now, (continued)
- [nongnu] elpa/org-drill 8a9192cc2f 080/251: Persistence of the optimal factor matrix across application sessions is now, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill cfe271d824 062/251: Fixed: org-drill-strip-all-data now works again (was using obsolete arguments, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill 09f7bc5c9b 083/251: Backout changeset 5d9b61ea5a181eb282e4069c17cbdf00e4325726, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill f9a217faa1 052/251: Wrapped all calls to 'org-display-inline-images' in 'ignore-errors', to prevent, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill d0405e9311 060/251: Fixed bug with scheduling failed cards, caused by changes to 'org-schedule' in, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill e43199b988 056/251: Changed permissions on some files., ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill 4114c541a7 082/251: You can now customise the keys for the 'quit', 'edit', 'tags', 'help' and, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill 8c374c0998 091/251: Merged in Fuco/org-drill/fix-input (pull request #3), ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill c62093fad3 095/251: Added tag 2.5 for changeset 97921372f286, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill 201e6991df 100/251: Added tag 2.6 for changeset f96493b0ba4a, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill 66d74724d7 090/251: Turn off input method while reading events,
ELPA Syncer <=
- [nongnu] elpa/org-drill 6fc2bfe8c3 103/251: SM2 algorithm should now actually work., ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill 615ce00d86 105/251: Fix org-drill-hide-subheadings-if, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill 941ad8c2b8 110/251: Add leitner learning, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill 355c3a602f 108/251: Merge fix/do-not-match-lockfile, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill 5e05755fdf 118/251: Update load-test name, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill d2591c4676 116/251: Dependency clean ups, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill 72c774b55d 149/251: Rename free-marker into namespace, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill 68d1e33e03 135/251: Replace overdue-entries, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill 5bc955b066 140/251: Remove overdue-data dynamic scoping, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill a45d80654e 144/251: Tweak Robot testing, ELPA Syncer, 2022/01/17