[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/org-drill 3c356dfc5a 179/251: Fix robot testing and refere
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/org-drill 3c356dfc5a 179/251: Fix robot testing and reference to drill-typed-answer |
Date: |
Mon, 17 Jan 2022 18:59:14 -0500 (EST) |
branch: elpa/org-drill
commit 3c356dfc5a0f99d022f4bd9c6f3a2c93863c0529
Author: Phillip Lord <phillip.lord@russet.org.uk>
Commit: Phillip Lord <phillip.lord@russet.org.uk>
Fix robot testing and reference to drill-typed-answer
---
org-drill.el | 11 +++--------
robot/all-card-run.sh | 1 -
robot/robot.el | 2 ++
robot/robot.sh | 2 +-
4 files changed, 6 insertions(+), 10 deletions(-)
diff --git a/org-drill.el b/org-drill.el
index b4f446a788..1f50d4de30 100644
--- a/org-drill.el
+++ b/org-drill.el
@@ -77,7 +77,7 @@ by `org-drill'."
(defcustom org-drill-maximum-items-per-session
30
- "Each drill session will present at most this many topics for review.
+ "Eaqch drill session will present at most this many topics for review.
Nil means unlimited."
:group 'org-drill
:type '(choice integer (const nil)))
@@ -1798,15 +1798,12 @@ Consider reformulating the item to make it easier to
remember.\n"
(defun org-drill-presentation-prompt-in-buffer (session)
(let* ((item-start-time (current-time))
- (input nil)
- (ch nil)
- (last-second 0)
(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-typed-answer) nil)
+ (setf (oref session drill-answer) nil)
(if (and (eql 'warn org-drill-leech-method)
(org-drill-entry-leech-p))
(setq full-prompt (concat
@@ -1858,7 +1855,7 @@ You seem to be having a lot of trouble memorising this
item.
Consider reformulating the item to make it easier to remember.\n"
'face '(:foreground "red"))
full-prompt)))
- (setf (oref session drill-typed-answer)
+ (setf (oref session drill-answer)
(read-string full-prompt nil nil nil t))))
@@ -3098,14 +3095,12 @@ subtree at point."
(interactive)
(org-drill 'tree))
-
(defun org-drill-directory ()
"Run an interactive drill session using drill items from all org
files in the same directory as the current file."
(interactive)
(org-drill 'directory))
-
(defun org-drill-again (&optional scope drill-match)
"Run a new drill session, but try to use leftover due items that
were not reviewed during the last session, rather than scanning for
diff --git a/robot/all-card-run.sh b/robot/all-card-run.sh
index 059f7d4a79..25d560d912 100755
--- a/robot/all-card-run.sh
+++ b/robot/all-card-run.sh
@@ -36,6 +36,5 @@ launch_emacs $this_dir/all-card-run.el $card_no
## Run once with default options
run_drill
-
wait_emacs
} || cat robot/failure.txt
diff --git a/robot/robot.el b/robot/robot.el
index a9813d975a..ef1f4c2af6 100644
--- a/robot/robot.el
+++ b/robot/robot.el
@@ -48,6 +48,8 @@
(defun robot-dump ()
(dump-buffer "*Backtrace*" "failure.txt")
(dump-buffer "*Messages*" "messages.txt")
+ (princ "Killing Emacs after error\n"
+ 'external-debugging-output)
(kill-emacs -1))
(defun robot-dump-messages ()
diff --git a/robot/robot.sh b/robot/robot.sh
index f901b6770d..12ac79e401 100644
--- a/robot/robot.sh
+++ b/robot/robot.sh
@@ -65,7 +65,7 @@ function retn {
}
function wait_emacs {
- wait $emacs_process_pid
+ wait $emacs_process_pid || exit 1
}
function find_bot {
- [nongnu] elpa/org-drill 0e0f7bcddd 242/251: Bump org-mode version to 9.3, (continued)
- [nongnu] elpa/org-drill 0e0f7bcddd 242/251: Bump org-mode version to 9.3, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill e55415221e 249/251: Fix autoloads, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill 78d3472033 246/251: add cram-mode test, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill b431634c3e 018/251: Bug fix: when drill sessions span more than one file, display items in the other files correctly., ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill eb370c7405 077/251: - Moved a line with side effects to earlier in the file, possibly fixing an, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill 0184220926 150/251: Replace drill-typed-answer, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill b7b295c80b 122/251: Update gitignore, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill 2832be1ad4 153/251: Replace more non-namespaced commands, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill b0ee414c16 177/251: Fix call to removed variable, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill 90d777bd55 183/251: Fix more byte compile errors, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill 3c356dfc5a 179/251: Fix robot testing and reference to drill-typed-answer,
ELPA Syncer <=
- [nongnu] elpa/org-drill 8c36f488e2 162/251: Spanish card fixes and full test set, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill 29b4faa174 190/251: Fix compat call, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill fdbbccad8c 218/251: Merge branch 'patch-2' into 'master', ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill 4daff57b81 161/251: Replace dynamically scoped end-pos, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill 04283a8a6c 228/251: Remove obsolete org-drill-optimal-factor-matrix, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill b61865f701 219/251: Merge branch 'patch-3' into 'master', ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill 44f66af8f7 230/251: fix argument passed to now obsoleted org-toggle-latex-fragment, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill a51c152bdb 227/251: Update documentation, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill bf8fe812d4 251/251: Update docker images, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill 3f6435d39a 085/251: Added tag 2.4.7 for changeset 552ec7292154, ELPA Syncer, 2022/01/17