aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2005-09-10 15:22:29 +0000
committerEli Zaretskii2005-09-10 15:22:29 +0000
commit0e43543032f5cc902caaed55ac7191f586d9e74b (patch)
treea8429f907b80cfbaf03c3545646d51093163417b
parentc10b0abc3891947ffe2b56ed8228e8d1a8b7c583 (diff)
downloademacs-0e43543032f5cc902caaed55ac7191f586d9e74b.tar.gz
emacs-0e43543032f5cc902caaed55ac7191f586d9e74b.zip
(narrow-to-page): Exclude _entire_ multi-line delimiter from the region
narrowed to.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/textmodes/page.el2
2 files changed, 6 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index ba777467eb6..a019c5a9f08 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12005-09-10 Alan Mackenzie <acm@muc.de>
2
3 * page.el (narrow-to-page): Exclude _entire_ multi-line delimiter
4 from the region narrowed to.
5
12005-09-10 Magnus Henoch <mange@freemail.hu> 62005-09-10 Magnus Henoch <mange@freemail.hu>
2 7
3 * textmodes/ispell.el (ispell-check-version): Signal an error if 8 * textmodes/ispell.el (ispell-check-version): Signal an error if
diff --git a/lisp/textmodes/page.el b/lisp/textmodes/page.el
index ffb4c89f2db..3ec1eca1fb7 100644
--- a/lisp/textmodes/page.el
+++ b/lisp/textmodes/page.el
@@ -112,7 +112,7 @@ thus showing a page other than the one point was originally in."
112 (save-excursion 112 (save-excursion
113 (goto-char (match-beginning 0)) ; was (beginning-of-line) 113 (goto-char (match-beginning 0)) ; was (beginning-of-line)
114 (looking-at page-delimiter))) 114 (looking-at page-delimiter)))
115 (beginning-of-line)) 115 (goto-char (match-beginning 0))) ; was (beginning-of-line)
116 (narrow-to-region (point) 116 (narrow-to-region (point)
117 (progn 117 (progn
118 ;; Find the top of the page. 118 ;; Find the top of the page.