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
8105b77e
Commit
8105b77e
authored
Nov 15, 1993
by
Richard M. Stallman
Browse files
Add `provide'.
(narrow-to-page): Enable page-delimiter to span lines.
parent
98d87352
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
lisp/textmodes/page.el
lisp/textmodes/page.el
+6
-2
No files found.
lisp/textmodes/page.el
View file @
8105b77e
...
...
@@ -87,8 +87,9 @@ thus showing a page other than the one point was originally in."
;; If we stopped due to end of buffer, stay there.
;; If we stopped after a page delimiter, put end of restriction
;; at the beginning of that line.
(
if
(
save-excursion
(
beginning-of-line
)
(
looking-at
page-delimiter
))
(
if
(
save-excursion
(
goto-char
(
match-beginning
0
))
; was (beginning-of-line)
(
looking-at
page-delimiter
))
(
beginning-of-line
))
(
narrow-to-region
(
point
)
(
progn
...
...
@@ -136,5 +137,8 @@ thus showing a page other than the one point was originally in."
(
message
"Page %d, line %d"
count
(
1+
(
count-lines
(
point
)
opoint
)))))))
;;; Place `provide' at end of file.
(
provide
'page
)
;;; page.el ends here
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