(outline-map-region
(lambda ()
(let* ((level (funcall outline-level))
- (heading (buffer-substring-no-properties (pos-bol) (pos-eol)))
- path)
+ (heading (buffer-substring-no-properties (pos-bol) (pos-eol))))
(while (and current-path (>= (cdar current-path) level))
(pop current-path))
(push (cons heading level) current-path)
(outline-map-region
(lambda ()
(let* ((level (funcall outline-level))
- (heading (buffer-substring (pos-bol) (pos-eol)))
- path)
+ (heading (buffer-substring (pos-bol) (pos-eol))))
(while (and current-path (>= (cdar current-path) level))
(pop current-path))
(push (cons heading level) current-path)