Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
baaec43f
Commit
baaec43f
authored
Oct 25, 2002
by
Stefan Monnier
Browse files
(outline-next-heading): Make sure the match-data is correct where returning.
parent
869331ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
lisp/textmodes/outline.el
lisp/textmodes/outline.el
+4
-2
No files found.
lisp/textmodes/outline.el
View file @
baaec43f
...
...
@@ -326,9 +326,11 @@ at the end of the buffer."
(
defun
outline-next-heading
()
"Move to the next (possibly invisible) heading line."
(
interactive
)
(
if
(
re-search-forward
(
concat
"\n\\(?:"
outline-regexp
"\\)"
)
;; Make sure we don't match the heading we're at.
(
if
(
and
(
bolp
)
(
not
(
eobp
)))
(
forward-char
1
))
(
if
(
re-search-forward
(
concat
"^\\(?:"
outline-regexp
"\\)"
)
nil
'move
)
(
goto-char
(
1+
(
match-beginning
0
))))
)
(
goto-char
(
match-beginning
0
))))
(
defun
outline-previous-heading
()
"Move to the previous (possibly invisible) heading line."
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment