projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3be0dc6
)
* lisp/emacs-lisp/lisp-mnt.el (lm-section-end): Stop at the right heading
author
Stefan Monnier
<monnier@iro.umontreal.ca>
Mon, 21 Dec 2020 04:21:51 +0000
(23:21 -0500)
committer
Stefan Monnier
<monnier@iro.umontreal.ca>
Wed, 23 Dec 2020 23:31:52 +0000
(18:31 -0500)
`lisp-outline-level` assumes the match-data is that set by
`outline-regexp`.
lisp/emacs-lisp/lisp-mnt.el
patch
|
blob
|
history
diff --git
a/lisp/emacs-lisp/lisp-mnt.el
b/lisp/emacs-lisp/lisp-mnt.el
index 0d57bc16a3af25d600916b09dfcee186fb8f367c..f190156342903b079a1d66824012d9e4ee2489e8 100644
(file)
--- a/
lisp/emacs-lisp/lisp-mnt.el
+++ b/
lisp/emacs-lisp/lisp-mnt.el
@@
-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