mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-06 06:20:55 -08:00
* lisp/emacs-lisp/lisp-mnt.el (lm-section-end): Stop at the right heading
`lisp-outline-level` assumes the match-data is that set by `outline-regexp`.
This commit is contained in:
parent
3be0dc659f
commit
b68d52c81b
1 changed files with 2 additions and 0 deletions
|
|
@ -208,6 +208,7 @@ a section."
|
|||
(when start
|
||||
(save-excursion
|
||||
(goto-char start)
|
||||
(looking-at outline-regexp)
|
||||
(let ((level (lisp-outline-level))
|
||||
(case-fold-search t)
|
||||
next-section-found)
|
||||
|
|
@ -218,6 +219,7 @@ a section."
|
|||
nil t))
|
||||
(> (save-excursion
|
||||
(beginning-of-line)
|
||||
(looking-at outline-regexp)
|
||||
(lisp-outline-level))
|
||||
level)))
|
||||
(min (if next-section-found
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue