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
8f38189e
Commit
8f38189e
authored
Sep 16, 2009
by
Stefan Monnier
Browse files
(what-page): Make sure we don't inf-loop if
page-delimiter matches the empty string.
parent
77564fa4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
lisp/ChangeLog
lisp/ChangeLog
+5
-0
lisp/textmodes/page.el
lisp/textmodes/page.el
+2
-0
No files found.
lisp/ChangeLog
View file @
8f38189e
2009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
* textmodes/page.el (what-page): Make sure we don't inf-loop if
page-delimiter matches the empty string.
2009-09-16 Glenn Morris <rgm@gnu.org>
* emacs-lisp/bytecomp.el (byte-compile-not-obsolete-vars): Rename from
...
...
lisp/textmodes/page.el
View file @
8f38189e
...
...
@@ -153,6 +153,8 @@ thus showing a page other than the one point was originally in."
(
opoint
(
point
)))
(
goto-char
(
point-min
))
(
while
(
re-search-forward
page-delimiter
opoint
t
)
(
if
(
=
(
match-beginning
0
)
(
match-end
0
))
(
forward-char
1
))
(
setq
count
(
1+
count
)))
(
message
"Page %d, line %d"
count
...
...
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