summaryrefslogtreecommitdiff
path: root/org-fc-core.el
diff options
context:
space:
mode:
authorLeon Rische <leon.rische@me.com>2021-03-07 16:20:11 +0100
committerLeon Rische <leon.rische@me.com>2021-03-07 16:20:11 +0100
commit38412f4a2fe4d05fbb5a790e778b233438d6c840 (patch)
treeebfe2cb40f49a8d51ca1700d787b04f6e7f58028 /org-fc-core.el
parent9783e5afda52e2e4d9634c7ca4cdee69f806210d (diff)
Fix remaining compiler warnings
Diffstat (limited to 'org-fc-core.el')
-rw-r--r--org-fc-core.el26
1 files changed, 1 insertions, 25 deletions
diff --git a/org-fc-core.el b/org-fc-core.el
index 0a5e733..3323f11 100644
--- a/org-fc-core.el
+++ b/org-fc-core.el
@@ -26,6 +26,7 @@
(require 'outline)
+(require 'org-id)
(require 'org-indent)
(require 'org-element)
@@ -650,31 +651,6 @@ Positions are shuffled in a way that preserves the order of the
(with-current-buffer (find-file path)
(org-fc-review-buffer))))
-;;; Header Line
-
-(defvar org-fc-original-header-line-format nil
- "`header-line-format' before it was set by org-fc.")
-
-(defun org-fc-set-header-line ()
- "Set the header-line for review."
- (let* ((remaining (1+ (length (oref org-fc--session cards))))
- (current (oref org-fc--session current-item))
- (title
- (unless (member "notitle" (plist-get current :tags))
- (plist-get current :filetitle))))
- (setq org-fc-original-header-line-format header-line-format)
- (setq-local
- header-line-format
- `((org-fc-review-flip-mode "Flip")
- (org-fc-review-rate-mode "Rate")
- (org-fc-review-edit-mode "Edit")
- ,(format " (%d) " remaining)
- ,title))))
-
-(defun org-fc-reset-header-line ()
- "Reset the header-line to its original value."
- (setq-local header-line-format org-fc-original-header-line-format))
-
;;; Contexts
(defvar org-fc-custom-contexts '()