Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
f4136d9c
Commit
f4136d9c
authored
Jul 06, 1994
by
Richard M. Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(outline-next-preface): Undo previous change: do stop before final newline.
parent
e36d00d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
lisp/textmodes/ooutline.el
lisp/textmodes/ooutline.el
+6
-5
No files found.
lisp/textmodes/ooutline.el
View file @
f4136d9c
...
...
@@ -237,13 +237,14 @@ the number of characters that `outline-regexp' matches."
(
-
(
match-end
0
)
(
match-beginning
0
))))
(
defun
outline-next-preface
()
"Skip forward to just before the next heading line."
"Skip forward to just before the next heading line.
If there's no following heading line, stop before the newline
at the end of the buffer."
(
if
(
re-search-forward
(
concat
"[\n\^M]\\("
outline-regexp
"\\)"
)
nil
'move
)
(
progn
(
goto-char
(
match-beginning
0
))
(
if
(
memq
(
preceding-char
)
'
(
?\n
?\^M
))
(
forward-char
-1
)))))
(
goto-char
(
match-beginning
0
)))
(
if
(
memq
(
preceding-char
)
'
(
?\n
?\^M
))
(
forward-char
-1
)))
(
defun
outline-next-heading
()
"Move to the next (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