branch: externals/greader
commit 62bf9174a2b532ded9af8094acaab21923239095
Author: Michelangelo Rodriguez <michelangelo.rodrig...@gmail.com>
Commit: Michelangelo Rodriguez <michelangelo.rodrig...@gmail.com>

    Function `greader-study-set-position' now enables `greader-study-mode' if 
it is disabled.
---
 greader.el | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/greader.el b/greader.el
index 0f08ac78b9..d3ab98b3aa 100644
--- a/greader.el
+++ b/greader.el
@@ -1729,8 +1729,11 @@ this major mode to the variable 
`greader-continuous-modes'")))
 ;;;###autoload
 (defun greader-study-set-position (pos)
   "Set the position in which reading will restart.
-When called interactively, use the current position in the buffer."
+When called interactively, use the current position in the buffer.
+If `greader-study-mode' is not enabled, enable it first."
   (interactive "d")
+  (unless greader-study-mode
+    (greader-study-mode 1))
   (cond
    ((not pos)
     (user-error "Position must be a positive integer"))

Reply via email to