; * lisp/outline.el: Remove unused variable.

This commit is contained in:
Juri Linkov 2024-06-10 09:39:41 +03:00
parent 1a5aa16066
commit 4d59608ec4

View file

@ -1708,8 +1708,7 @@ after reverting the buffer."
(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)
@ -1730,8 +1729,7 @@ hidden by `outline-hidden-headings-paths'."
(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)