[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/org-drill 118e76ff9c 154/251: Replace more non-namespaced
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/org-drill 118e76ff9c 154/251: Replace more non-namespaced command |
Date: |
Mon, 17 Jan 2022 18:59:11 -0500 (EST) |
branch: elpa/org-drill
commit 118e76ff9c9020b4015348e6eabae6cef924c220
Author: Phillip Lord <phillip.lord@russet.org.uk>
Commit: Phillip Lord <phillip.lord@russet.org.uk>
Replace more non-namespaced command
---
org-drill.el | 15 ++++-----------
1 file changed, 4 insertions(+), 11 deletions(-)
diff --git a/org-drill.el b/org-drill.el
index d1885dabd0..6ccc7f1a93 100644
--- a/org-drill.el
+++ b/org-drill.el
@@ -730,25 +730,18 @@ Example: (round-float 3.56755765 3) -> 3.568"
(/ (float (round (* floatnum n))) n)))
-(defun command-keybinding-to-string (cmd)
+(defun org-drill-command-keybinding-to-string (cmd)
"Return a human-readable description of the key/keys to which the command
CMD is bound, or nil if it is not bound to a key."
(let ((key (where-is-internal cmd overriding-local-map t)))
(if key (key-description key))))
-(defun time-to-inactive-org-timestamp (time)
+(defun org-drill-time-to-inactive-org-timestamp (time)
(format-time-string
(concat "[" (substring (cdr org-time-stamp-formats) 1 -1) "]")
time))
-
-(defun time-to-active-org-timestamp (time)
- (format-time-string
- (concat "<" (substring (cdr org-time-stamp-formats) 1 -1) ">")
- time))
-
-
(defun org-map-drill-entries (func &optional scope drill-match &rest skip)
"Like `org-map-entries', but only drill entries are processed."
(let ((org-drill-scope (or scope org-drill-scope))
@@ -1549,7 +1542,7 @@ of QUALITY."
(sit-for 0.5)))))
(org-set-property "DRILL_LAST_QUALITY" (format "%d" quality))
(org-set-property "DRILL_LAST_REVIEWED"
- (time-to-inactive-org-timestamp (current-time))))
+ (org-drill-time-to-inactive-org-timestamp
(current-time))))
quality))
((= ch org-drill--edit-key)
'edit)
@@ -3098,7 +3091,7 @@ work correctly with older versions of org mode. Your org
mode version (%s) appea
(org-drill-goto-entry end-pos)
(org-reveal)
(org-show-entry))
- (let ((keystr (command-keybinding-to-string 'org-drill-resume)))
+ (let ((keystr (org-drill-command-keybinding-to-string
'org-drill-resume)))
(message
"You can continue the drill session with the command
`org-drill-resume'.%s"
(if keystr (format "\nYou can run this command by pressing %s."
keystr)
- [nongnu] elpa/org-drill 500d1475c3 120/251: Add count entries test, (continued)
- [nongnu] elpa/org-drill 500d1475c3 120/251: Add count entries test, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill c1c57adea9 133/251: Remove dormant-entry-count, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill a923ba2c90 145/251: Move exit-kind to slot, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill 9555e487d4 143/251: Fix presentation-in-buffer, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill 0286de5402 139/251: Remove unneed form, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill ba0a346583 125/251: Removed generated file, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill ffc04493f8 136/251: Remove more variables, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill d47080e3bc 121/251: Remove generated file, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill fd3efa233e 127/251: Port to cl-lib, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill c49af4a9b3 155/251: Replace more non-namespaced commands, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill 118e76ff9c 154/251: Replace more non-namespaced command,
ELPA Syncer <=
- [nongnu] elpa/org-drill 20c90836aa 169/251: Speed up robot tests with polling, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill 1801524221 178/251: Fix call to format, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill 2f056255e6 192/251: Re-namespace with-hidden-cloze-text, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill 61807adc7f 166/251: Remove spell-number.el dependency, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill 0eaacf2a2d 176/251: Remove legacy code, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill 8ebb0d27d6 194/251: package-lint cleaning, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill c59c49a4df 172/251: Remove call to cl, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill c65634b454 195/251: Remove hi-lock dependency, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill 5d4f60d49d 167/251: Silence more unused variable messages, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill 3b0f44592f 186/251: Add compatibility hacks to support org-mode 8, ELPA Syncer, 2022/01/17