Function: foldout-widen-to-current-fold
foldout-widen-to-current-fold is an interactive and byte-compiled
function defined in foldout.el.gz.
Signature
(foldout-widen-to-current-fold)
Documentation
Widen to the current fold level.
If in a fold, widen to that fold's boundaries.
If not in a fold, acts like widen.
Probably introduced at or before Emacs version 31.1.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/foldout.el.gz
(defun foldout-widen-to-current-fold ()
"Widen to the current fold level.
If in a fold, widen to that fold's boundaries.
If not in a fold, acts like `widen'."
(interactive)
(if foldout-fold-list
(let* ((last-fold (car foldout-fold-list))
(start (car last-fold))
(end (cdr last-fold)))
(widen)
(narrow-to-region start
(if end (1- (marker-position end)) (point-max))))
(widen)))