[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/org-drill 77480ae0a2 181/251: Remove arguments from presen
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/org-drill 77480ae0a2 181/251: Remove arguments from presentation-prompt |
Date: |
Mon, 17 Jan 2022 18:59:14 -0500 (EST) |
branch: elpa/org-drill
commit 77480ae0a2372305a1e6bc01dcd738d2d31d7ef3
Author: Phillip Lord <phillip.lord@russet.org.uk>
Commit: Phillip Lord <phillip.lord@russet.org.uk>
Remove arguments from presentation-prompt
The multiple arguments to the two presentation-prompt methods are
unused in org-drill.
---
org-drill.el | 48 +++++++++++++++++-------------------------------
1 file changed, 17 insertions(+), 31 deletions(-)
diff --git a/org-drill.el b/org-drill.el
index 1f50d4de30..c8d8cf5040 100644
--- a/org-drill.el
+++ b/org-drill.el
@@ -1635,9 +1635,7 @@ the current topic."
"have never reviewed."))
prompt)))
-(cl-defun org-drill-presentation-prompt (session &key prompt
- returns
- (start-time (current-time)))
+(defun org-drill-presentation-prompt (session &optional prompt)
"Create a card prompt with a timer and user-specified menu.
Arguments:
@@ -1655,32 +1653,21 @@ START-TIME: The time the card started to be displayed.
This
be convenient to override this default.
"
(if org-drill-presentation-prompt-with-typing
- (org-drill-presentation-prompt-in-buffer session)
- (org-drill-presentation-prompt-in-mini-buffer session)))
+ (org-drill-presentation-prompt-in-buffer session prompt)
+ (org-drill-presentation-prompt-in-mini-buffer session prompt)))
-(cl-defun org-drill-presentation-prompt-in-mini-buffer (session &key prompt
- returns
- (start-time
(current-time)))
- "Create a card prompt with a timer and user-specified menu.
+(defun org-drill-presentation-prompt-in-mini-buffer (session &optional prompt)
+ "Create a card prompt with a timer and user-specified if returns
+ (or (cdr (assoc ch returns)))
+ menu.
Arguments:
PROMPT: A string that overrides the standard prompt.
-
-RETURNS: An alist of the form ((<char> . <symbol>)...) where
- <char> is the character pressed and <symbol> is the
- returned value, which will normally be either a symbol,
- `t' or `nil'.
-
-START-TIME: The time the card started to be displayed. This
- defaults to (current-time), however, if the function
- is called multiple times from one card then it might
- be convenient to override this default.
"
- (let* ((item-start-time start-time)
+ (let* ((item-start-time (current-time))
(input nil)
(ch nil)
- (last-second 0)
(prompt
(or prompt
(format (concat "Press key for answer, "
@@ -1712,13 +1699,11 @@ Consider reformulating the item to make it easier to
remember.\n"
(if (stringp input) (setq ch (elt input 0)))
(if (eql ch org-drill--tags-key)
(org-set-tags-command)))
- (if returns
- (or (cdr (assoc ch returns)))
- (cond
- ((eql ch org-drill--quit-key) nil)
- ((eql ch org-drill--edit-key) 'edit)
- ((eql ch org-drill--skip-key) 'skip)
- (t t)))))
+ (cond
+ ((eql ch org-drill--quit-key) nil)
+ ((eql ch org-drill--edit-key) 'edit)
+ ((eql ch org-drill--skip-key) 'skip)
+ (t t))))
(defvar org-drill-presentation-timer nil
@@ -1796,11 +1781,12 @@ Consider reformulating the item to make it easier to
remember.\n"
(set-input-method local-current-input-method)
(current-buffer))))
-(defun org-drill-presentation-prompt-in-buffer (session)
+(defun org-drill-presentation-prompt-in-buffer (session &optional prompt)
(let* ((item-start-time (current-time))
(prompt
- (format (concat "Type answer then return, "
- "C-c e=edit, C-c t=tags, C-c s=skip, C-c q=quit.")))
+ (or prompt
+ (format (concat "Type answer then return, "
+ "C-c e=edit, C-c t=tags, C-c s=skip, C-c
q=quit."))))
(full-prompt
(org-drill--make-minibuffer-prompt session prompt)))
(setf (oref session drill-answer) nil)
- [nongnu] elpa/org-drill 644b0a5cbc 126/251: Remove org-learn as a separate package, (continued)
- [nongnu] elpa/org-drill 644b0a5cbc 126/251: Remove org-learn as a separate package, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill 9aa3e98ea0 130/251: Remove org-drill-start-time, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill b161277f82 156/251: Replace more non-namespaced commands, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill 61fe47deb8 152/251: Replace drill-answer, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill 02b507b839 151/251: Add leitner robot test and fix, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill 6533b73246 164/251: Support changing small sleep on command line, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill a949ece724 165/251: Remove more dynamic scoping errors, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill 82c2ec8b1f 189/251: Replace call to gensym with cl-gensym, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill 4300ef9d4c 168/251: Fix broken form in org-drill-resume, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill 58b353993c 158/251: Complete namespace cleanliness, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill 77480ae0a2 181/251: Remove arguments from presentation-prompt,
ELPA Syncer <=
- [nongnu] elpa/org-drill 5a405f5d08 188/251: Fix session call in org-drill-sm-or-leitner, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill c44ca7447b 199/251: Document explainer, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill 5b6bb5445c 157/251: Fix broken test, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill b2b7c3f625 175/251: Remove dynamic scoping, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill 7a7f9370fa 159/251: Fix byte compilation errors, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill d3695d66f3 173/251: Fix call to session, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill a91c6101b9 201/251: Update variable documentation, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill 037b4bfe84 223/251: Fix copyright line, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill 9e3a7952a1 205/251: Remove org-drill-free-marker, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill 4c114489e6 240/251: Release v2.7.0, ELPA Syncer, 2022/01/17