summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeon Rische <leon.rische@me.com>2020-07-02 11:59:54 +0200
committerLeon Rische <leon.rische@me.com>2020-07-02 11:59:54 +0200
commite0758469251b6709ff4d2dfd77c24dbde866eecc (patch)
tree023cfa66ca75f10c29bab8f3339f80b97377d8e0
parent547e7b20d02a9ab32b2684be54efc3b7fd511e2c (diff)
Rename `org-fc-review-rate-card` to `org-fc-review-rate`
-rw-r--r--Changelog.org7
-rw-r--r--org-fc.el13
2 files changed, 14 insertions, 6 deletions
diff --git a/Changelog.org b/Changelog.org
index f3b3f03..baa7d26 100644
--- a/Changelog.org
+++ b/Changelog.org
@@ -5,6 +5,13 @@ upcoming changes.
In case a update to the org sources is needed, I'll add a changelog
entry with updating instructions.
+** [2020-07-02 Thu]
+*** Changed
+- ~org-fc-review-rate-card~ was renamed to ~org-fc-review-rate~
+** [2020-07-01 Wed]
+*** Changed
+- The review history file is only written once per review,
+ as a first step towards implementing a "undo-rating" command
** [2020-06-29 Mon]
*** Added
- Shuffling of positions for the review can be disabled
diff --git a/org-fc.el b/org-fc.el
index fce30f2..075f507 100644
--- a/org-fc.el
+++ b/org-fc.el
@@ -1866,8 +1866,7 @@ same ID as the current card in the session."
(org-fc-review-quit)
(signal (car err) (cdr err)))))
-;; TODO: Remove -card suffix
-(defun org-fc-review-rate-card (rating)
+(defun org-fc-review-rate (rating)
"Rate the card at point with RATING."
(interactive)
(condition-case err
@@ -1888,25 +1887,27 @@ same ID as the current card in the session."
(org-fc-review-quit)
(signal (car err) (cdr err)))))
+(define-obsolete-function-alias 'org-fc-review-rate-card 'org-fc-review-rate)
+
(defun org-fc-review-rate-again ()
"Rate the card at point with 'again'."
(interactive)
- (org-fc-review-rate-card 'again))
+ (org-fc-review-rate 'again))
(defun org-fc-review-rate-hard ()
"Rate the card at point with 'hard'."
(interactive)
- (org-fc-review-rate-card 'hard))
+ (org-fc-review-rate 'hard))
(defun org-fc-review-rate-good ()
"Rate the card at point with 'good'."
(interactive)
- (org-fc-review-rate-card 'good))
+ (org-fc-review-rate 'good))
(defun org-fc-review-rate-easy ()
"Rate the card at point with 'easy'."
(interactive)
- (org-fc-review-rate-card 'easy))
+ (org-fc-review-rate 'easy))
(defun org-fc-review-suspend-card ()
"Suspend card and proceed to next."