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
817d6535
Commit
817d6535
authored
Jan 14, 1993
by
Jim Blandy
Browse files
* page-ext.el (next-page): Correctly handle negative page count.
parent
faa3b11d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
lisp/textmodes/page-ext.el
lisp/textmodes/page-ext.el
+4
-1
No files found.
lisp/textmodes/page-ext.el
View file @
817d6535
...
...
@@ -341,7 +341,10 @@ With arg (prefix if interactive), move that many pages."
nil
(
goto-char
(
point-max
)))
(
setq
count
(
1-
count
)))
(
while
(
and
(
<
count
0
)
(
not
(
bobp
)))
;; If COUNT is negative, we want to go back -COUNT + 1 page boundaries.
;; The first page boundary we reach is the top of the current page,
;; which doesn't count.
(
while
(
and
(
<
count
1
)
(
not
(
bobp
)))
(
if
(
re-search-backward
page-delimiter
nil
t
)
(
goto-char
(
match-beginning
0
))
(
goto-char
(
point-min
)))
...
...
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