aboutsummaryrefslogtreecommitdiff
path: root/org-drill.el
diff options
context:
space:
mode:
authorPhillip Lord <phillip.lord@russet.org.uk>2019-07-26 21:04:14 +0100
committerPhillip Lord <phillip.lord@russet.org.uk>2019-07-26 21:04:14 +0100
commit60eb3aa930da1bc3de10fb88d31c7e97892cb79b (patch)
tree8435186689d41786d034a29b826722c5c9e7d524 /org-drill.el
parente7cdef81f24413f462b6027fe7a4ab48794020f1 (diff)
downloadorg-drill-60eb3aa930da1bc3de10fb88d31c7e97892cb79b.tar.gz
org-drill-60eb3aa930da1bc3de10fb88d31c7e97892cb79b.zip
Update documentation
Diffstat (limited to 'org-drill.el')
-rw-r--r--org-drill.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/org-drill.el b/org-drill.el
index 9c46a29..667a1d8 100644
--- a/org-drill.el
+++ b/org-drill.el
@@ -1832,6 +1832,7 @@ visual overlay, or with the string TEXT if it is supplied."
(overlay-put ovl 'display text))))
(defun org-drill-hide-heading-at-point (&optional text)
+ "Hide the heading at point."
(unless (org-at-heading-p)
(error "Point is not on a heading"))
(save-excursion
@@ -1840,6 +1841,7 @@ visual overlay, or with the string TEXT if it is supplied."
(org-drill-hide-region beg (point) text))))
(defun org-drill-hide-comments ()
+ "Hide comments."
(save-excursion
(while (re-search-forward "^#.*$" nil t)
(org-drill-hide-region (match-beginning 0) (match-end 0)))))