diff options
author | Leon Rische <leon.rische@me.com> | 2020-05-04 14:03:17 +0200 |
---|---|---|
committer | Leon Rische <leon.rische@me.com> | 2020-05-04 14:03:17 +0200 |
commit | 3cef1c6bef3fcec3fc01342b776a51644282090b (patch) | |
tree | 4507c7bff94a563bc0dcd069770228be87ce2eac | |
parent | 6fe9aeee39ff3edfb4e5f3b66ee49c9cbe6ede16 (diff) |
Fix -buffer & -all review functions
-rw-r--r-- | org-fc.el | 17 |
1 files changed, 9 insertions, 8 deletions
@@ -1512,15 +1512,16 @@ removed." (defvar org-fc-custom-contexts '() "User-defined review contexts.") -(defvar org-fc-default-contexts - '((all . (:paths all)) - (buffer . (:paths buffer))) - "Default review contexts.") +(defvar org-fc-context-all '(:paths all) + "Default context for all cards.") +(defvar org-fc-context-buffer '(:paths buffer) + "Default context for the current buffer.") (defun org-fc-contexts () "List of all contexts." - (append - org-fc-default-contexts + (list* + (cons 'all org-fc-context-all) + (cons 'buffer org-fc-context-buffer) org-fc-custom-contexts)) (defun org-fc-select-context () @@ -1558,13 +1559,13 @@ Valid contexts: (defun org-fc-review-buffer () "Review due cards in the current buffer." (interactive) - (org-fc-review 'buffer)) + (org-fc-review org-fc-context-buffer)) ;;;###autoload (defun org-fc-review-all () "Review all due cards." (interactive) - (org-fc-review 'all)) + (org-fc-review org-fc-context-all)) (defun org-fc-review-next-card () "Review the next card of the current session." |