Function: outline--restore-from-comment-regexp
outline--restore-from-comment-regexp is a byte-compiled function
defined in outline.el.gz.
Signature
(outline--restore-from-comment-regexp)
Documentation
Undo outline--setup-from-comment-regexp.
Restore outline-regexp, the variable outline-level(var)/outline-level(fun), and
outline-search-function from the values saved by
outline--setup-from-comment-regexp, and clear the internal state.
Called from outline-minor-mode(var)/outline-minor-mode(fun) when the mode is disabled. Do nothing
when comment-heading setup was not performed.
Source Code
;; Defined in /usr/src/emacs/lisp/outline.el.gz
(defun outline--restore-from-comment-regexp ()
"Undo `outline--setup-from-comment-regexp'.
Restore `outline-regexp', the variable `outline-level', and
`outline-search-function' from the values saved by
`outline--setup-from-comment-regexp', and clear the internal state.
Called from `outline-minor-mode' when the mode is disabled. Do nothing
when comment-heading setup was not performed."
(when outline--saved-outline-level
(setq-local outline-level outline--saved-outline-level
outline-regexp outline--saved-outline-regexp
outline-search-function outline--saved-outline-search-function)
(setq outline--saved-outline-level nil
outline--saved-outline-regexp nil
outline--saved-outline-search-function nil
outline--comment-regexp nil)))