and end of hl-line-range-function.
+2013-05-13 Stephen Berman <stephen.berman@gmx.net>
+
+ * todos.el (todos-modes-set-2): Restore point after finding start
+ and end of hl-line-range-function.
+
2013-05-13 Stephen Berman <stephen.berman@gmx.net>
* todos.el: Fixes for item marking and marked items.
(add-to-invisibility-spec 'todos)
(setq buffer-read-only t)
(set (make-local-variable 'hl-line-range-function)
- (lambda() (when (todos-item-end)
- (cons (todos-item-start) (todos-item-end))))))
+ (lambda() (save-excursion
+ (when (todos-item-end)
+ (cons (todos-item-start) (todos-item-end)))))))
(defun todos-modes-set-3 ()
""