Function: tutorial--remove-remarks
tutorial--remove-remarks is a byte-compiled function defined in
tutorial.el.gz.
Signature
(tutorial--remove-remarks)
Documentation
Remove the remark lines that was added to the tutorial buffer.
Source Code
;; Defined in /usr/src/emacs/lisp/tutorial.el.gz
(defun tutorial--remove-remarks ()
"Remove the remark lines that was added to the tutorial buffer."
(save-excursion
(goto-char (point-min))
(let (prop-start
prop-end
prop-val)
;; Catch the case when we already are on a remark line
(while (if (get-text-property (point) 'tutorial-remark)
(setq prop-start (point))
(setq prop-start (next-single-property-change (point) 'tutorial-remark)))
(setq prop-end (next-single-property-change prop-start 'tutorial-remark))
(setq prop-val (get-text-property prop-start 'tutorial-remark))
(unless prop-end
(setq prop-end (point-max)))
(goto-char prop-end)
(unless (eq prop-val 'key-sequence)
(delete-region prop-start prop-end))))))